public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; ArrayTypes1dim obj = (ArrayTypes1dim)(obj1 != null ? obj1 : bin.onObjectCreated(new ArrayTypes1dim())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.Boolean1 = (bool[])bin.readObj(false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte1 = (byte[])bin.readObj(false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Char1 = (char[])bin.readObj(false, byps.test.api.BSerializer_1361632968.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Date1 = (DateTime[])bin.readObj(false, byps.test.api.BSerializer_1406664368.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Double1 = (double[])bin.readObj(false, byps.test.api.BSerializer_1359468275.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Float1 = (float[])bin.readObj(false, byps.test.api.BSerializer_766441794.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Int1 = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Long1 = (long[])bin.readObj(false, byps.test.api.BSerializer_1097129250.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.PrimitiveTypes1 = (byps.test.api.prim.PrimitiveTypes[])bin.readObj(false, byps.test.api.BSerializer_2053507648.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Short1 = (short[])bin.readObj(false, byps.test.api.BSerializer_2067161310.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.String1 = (String[])bin.readObj(false, byps.test.api.BSerializer_1888107655.instance); return(obj); }
public override void write(Object obj1, BOutput bout1, long version) { ArrayTypes1dim obj = (ArrayTypes1dim)obj1; BOutputBin bout = (BOutputBin)bout1; BBufferBin bbuf = bout.bbuf; // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Boolean1, false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Byte1, false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Char1, false, byps.test.api.BSerializer_1361632968.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Date1, false, byps.test.api.BSerializer_1406664368.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Double1, false, byps.test.api.BSerializer_1359468275.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Float1, false, byps.test.api.BSerializer_766441794.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Int1, false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Long1, false, byps.test.api.BSerializer_1097129250.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.PrimitiveTypes1, false, byps.test.api.BSerializer_2053507648.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.Short1, false, byps.test.api.BSerializer_2067161310.instance); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.String1, true, byps.test.api.BSerializer_1888107655.instance); }
public ArrayTypes1dim(ArrayTypes1dim rhs) { this.boolean1Value = rhs.boolean1Value; this.byte1Value = rhs.byte1Value; this.char1Value = rhs.char1Value; this.short1Value = rhs.short1Value; this.int1Value = rhs.int1Value; this.long1Value = rhs.long1Value; this.float1Value = rhs.float1Value; this.double1Value = rhs.double1Value; this.string1Value = rhs.string1Value; this.date1Value = rhs.date1Value; this.primitiveTypes1Value = rhs.primitiveTypes1Value; }
public void testRemoteArrayTypes1dim() { log.info("testRemoteArrayTypes1dim("); RemoteArrayTypes1dim remote; remote = client.RemoteArrayTypes1dim; bool[] bool1 = new bool[] {true, false, true}; byte[] byte1 = new byte[] {1,2,3}; char[] char1 = new char[] {'a', 'b', 'c' }; short[] short1 = new short[] { 55,66,77}; int[] int1 = new int[] {12,34,56}; long[] long1 = new long[] {999,88,7}; float[] float1 = new float[] {1.2f, 2.2f, 3.2f}; double[] double1 = new double[] {1e1, 1e2, 1e3}; String[] string1 = new String[] {"ôôôô"}; DateTime[] date1 = new DateTime[] { new DateTime(2012, 2, 29, 1, 2, 3, 4), new DateTime() }; PrimitiveTypes[] primitiveTypes1 = new PrimitiveTypes[] { TestUtils.createObjectPrimitiveTypes() }; Object[] object1 = new ArrayTypes1dim[] { new ArrayTypes1dim() }; remote.SetBool(bool1); TestUtils.assertEquals(log, "bool", bool1, remote.GetBool()); remote.SetByte(byte1); TestUtils.assertEquals(log, "byte", byte1, remote.GetByte()); remote.SetChar(char1); TestUtils.assertEquals(log, "char", char1, remote.GetChar()); remote.SetShort(short1); TestUtils.assertEquals(log, "short", short1, remote.GetShort()); remote.SetInt(int1); TestUtils.assertEquals(log, "int", int1, remote.GetInt()); remote.SetLong(long1); TestUtils.assertEquals(log, "long", long1, remote.GetLong()); remote.SetFloat(float1); TestUtils.assertEquals(log, "float", float1, remote.GetFloat()); remote.SetDouble(double1); TestUtils.assertEquals(log, "double", double1, remote.GetDouble()); remote.SetString(string1); TestUtils.assertEquals(log, "String", string1, remote.GetString()); remote.SetDate(date1); TestUtils.assertEquals(log, "date", date1, remote.GetDate()); remote.SetObject(object1); TestUtils.assertEquals(log, "Object", object1, remote.GetObject()); remote.SetPrimitiveTypes(primitiveTypes1); TestUtils.assertEquals(log, "PrimitiveTypes", primitiveTypes1, remote.GetPrimitiveTypes()); log.info(")testRemoteArrayTypes1dim"); }