Esempio n. 1
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin      bin = (BInputBin)bin1;
            ArrayTypes4dim obj = (ArrayTypes4dim)(obj1 != null ? obj1 : bin.onObjectCreated(new ArrayTypes4dim()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Boolean4 = (bool[, , , ])bin.readObj(false, byps.test.api.BSerializer_945713488.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Byte4 = (byte[, , , ])bin.readObj(false, byps.test.api.BSerializer_1201775504.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Char4 = (char[, , , ])bin.readObj(false, byps.test.api.BSerializer_769021986.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Double4 = (double[, , , ])bin.readObj(false, byps.test.api.BSerializer_2087445849.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Float4 = (float[, , , ])bin.readObj(false, byps.test.api.BSerializer_1516687588.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int4 = (int[, , , ])bin.readObj(false, byps.test.api.BSerializer_39910537.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Long4 = (long[, , , ])bin.readObj(false, byps.test.api.BSerializer_846419204.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.PrimitiveTypes4 = (byps.test.api.prim.PrimitiveTypes[, , , ])bin.readObj(false, byps.test.api.BSerializer_758319514.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Short4 = (short[, , , ])bin.readObj(false, byps.test.api.BSerializer_1859644668.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.String4 = (String[, , , ])bin.readObj(false, byps.test.api.BSerializer_588723219.instance);

            return(obj);
        }
Esempio n. 2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            ArrayTypes4dim obj  = (ArrayTypes4dim)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Boolean4, false, byps.test.api.BSerializer_945713488.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte4, false, byps.test.api.BSerializer_1201775504.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Char4, false, byps.test.api.BSerializer_769021986.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Double4, false, byps.test.api.BSerializer_2087445849.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Float4, false, byps.test.api.BSerializer_1516687588.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int4, false, byps.test.api.BSerializer_39910537.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Long4, false, byps.test.api.BSerializer_846419204.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.PrimitiveTypes4, false, byps.test.api.BSerializer_758319514.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Short4, false, byps.test.api.BSerializer_1859644668.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.String4, true, byps.test.api.BSerializer_588723219.instance);
        }
Esempio n. 3
0
 public ArrayTypes4dim(ArrayTypes4dim rhs)
 {
     this.boolean4Value        = rhs.boolean4Value;
     this.byte4Value           = rhs.byte4Value;
     this.char4Value           = rhs.char4Value;
     this.short4Value          = rhs.short4Value;
     this.int4Value            = rhs.int4Value;
     this.long4Value           = rhs.long4Value;
     this.float4Value          = rhs.float4Value;
     this.double4Value         = rhs.double4Value;
     this.string4Value         = rhs.string4Value;
     this.primitiveTypes4Value = rhs.primitiveTypes4Value;
 }
Esempio n. 4
0
		public ArrayTypes4dim(ArrayTypes4dim rhs)
		{
			this.boolean4Value = rhs.boolean4Value;
			this.byte4Value = rhs.byte4Value;
			this.char4Value = rhs.char4Value;
			this.short4Value = rhs.short4Value;
			this.int4Value = rhs.int4Value;
			this.long4Value = rhs.long4Value;
			this.float4Value = rhs.float4Value;
			this.double4Value = rhs.double4Value;
			this.string4Value = rhs.string4Value;
			this.primitiveTypes4Value = rhs.primitiveTypes4Value;
		}		
Esempio n. 5
0
        public void testRemoteArrayTypes4dim() 
        {
		    log.info("testRemoteArrayTypes4dim(");

		    RemoteArrayTypes4dim remote;
		    remote = client.RemoteArrayTypes4dim;

		    ArrayTypes4dim obj = new ArrayTypes4dim();
		    obj.Boolean4 = new bool[,,,] {{{{true}}}};
		    obj.Byte4 = new byte[,,,] {{{{1,2,3,4}}}};
		    obj.Char4 = new char[,,,] {{{{'a','b','c'}}}};
		    obj.Double4 = new double[,,,] {{{{1},{2}}}};
		    obj.Float4 = new float[,,,] {{{{3},{4}}}};
		    obj.Int4 = new int[,,,] {{{{5},{6}}}};
		    obj.Long4 = new long[,,,] {{{{7},{8}}}};
		    obj.PrimitiveTypes4 = new PrimitiveTypes[,,,] {{{{ TestUtils.createObjectPrimitiveTypes() }}}};
		    obj.Short4 = new short[,,,] {{{{4,2,3,4,5,6,7}}}};
		    obj.String4 = new String[,,,] {{{{"a", "b", "c"}}}};
		    Object[,,,] object4 = new ArrayTypes4dim[,,,] { { { { new ArrayTypes4dim() } } } };

		    remote.SetBool(obj.Boolean4);
		    TestUtils.assertEquals(log, "bool", obj.Boolean4, remote.GetBool());
		    remote.SetByte(obj.Byte4);
		    TestUtils.assertEquals(log, "byte", obj.Byte4, remote.GetByte());
		    remote.SetChar(obj.Char4);
		    TestUtils.assertEquals(log, "char", obj.Char4, remote.GetChar());
		    remote.SetShort(obj.Short4);
		    TestUtils.assertEquals(log, "short", obj.Short4, remote.GetShort());
		    remote.SetInt(obj.Int4);
            TestUtils.assertEquals(log, "int", obj.Int4, remote.GetInt());/* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */

		    remote.SetLong(obj.Long4);
		    TestUtils.assertEquals(log, "long", obj.Long4, remote.GetLong());
		    remote.SetFloat(obj.Float4);
		    TestUtils.assertEquals(log,  "float", obj.Float4, remote.GetFloat());
		    remote.SetDouble(obj.Double4);
		    TestUtils.assertEquals(log,  "double", obj.Double4, remote.GetDouble());
		    remote.SetString(obj.String4);
		    TestUtils.assertEquals(log,  "String", obj.String4, remote.GetString());
		
		    remote.SetPrimitiveTypes(obj.PrimitiveTypes4);
		    TestUtils.assertEquals(log,  "PrimitiveTypes", obj.PrimitiveTypes4, remote.GetPrimitiveTypes());
		
		    remote.SetObject(object4);
		    TestUtils.assertEquals(log,  "Object", object4, remote.GetObject());
		
		    log.info(")testRemoteArrayTypes4dim");
        }