Пример #1
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            SetTypes   obj  = (SetTypes)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Boolean1, false, byps.test.api.BSerializer_1365696060.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte1, false, byps.test.api.BSerializer_31512998.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte2, false, byps.test.api.BSerializer_2052431866.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Char1, false, byps.test.api.BSerializer_936607009.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Date1, false, byps.test.api.BSerializer_1097919350.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Double1, false, byps.test.api.BSerializer_1320560671.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Float1, false, byps.test.api.BSerializer_1898022288.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int1, false, byps.test.api.BSerializer_1493282670.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int2, false, byps.test.api.BSerializer_1406124761.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Long1, false, byps.test.api.BSerializer_1457164460.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Obj1, false, byps.BSerializer_14.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.PrimitiveTypes1, false, byps.test.api.BSerializer_673917574.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Short1, false, byps.test.api.BSerializer_2028443792.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.String1, false, byps.test.api.BSerializer_1888799711.instance);
        }
Пример #2
0
	    public void testRemoteSetTypes() {
		    log.info("testRemoteSetTypes(");
		
		    SetTypes obj = new SetTypes();
            SetTypes objR = new SetTypes();
 
            obj.Boolean1 = new HashSet<bool>(new bool[] { true, false });
		    obj.Byte1 = new HashSet<byte>(new byte[] {1,2,3});
            obj.Char1 = new HashSet<char>(new char[] { 'a', 'b' });
            obj.Double1 = new HashSet<double>(new double[] { 0.2, 0.4, 0.8 });
            obj.Float1 = new HashSet<float>(new float[] { 1f, 2f, 3f });
            obj.Int1 = new HashSet<int>(new int[] { 4, 5, 6 });
            obj.Long1 = new HashSet<long>(new long[] { 8, 9, 6 });
		    obj.PrimitiveTypes1 = new HashSet<PrimitiveTypes>(new PrimitiveTypes[] { TestUtils.createObjectPrimitiveTypes() });
            obj.Short1 = new HashSet<short>(new short[] { 1 });
            obj.String1 = new HashSet<String>(new String[] { "a", "b", "c" });
            obj.Date1 = new HashSet<DateTime>(new DateTime[] { new DateTime(3010, 8, 9, 10, 11, 12, 13) });
		    obj.Obj1 = new HashSet<Object>(new PrimitiveTypes[] { TestUtils.createObjectPrimitiveTypes() });

            for (int i = 0; i < 1; i++)
            {
                remote.SetBoolean1(obj.Boolean1);
                remote.SetByte1(obj.Byte1);
                remote.SetChar1(obj.Char1);
                remote.SetDouble1(obj.Double1);
                remote.SetFloat1(obj.Float1);
                remote.SetInt1(obj.Int1);
                remote.SetLong1(obj.Long1);
                remote.SetPrimitiveTypes1(obj.PrimitiveTypes1);
                remote.SetShort1(obj.Short1);
                remote.SetString1(obj.String1);
                remote.SetDate1(obj.Date1);
                remote.SetObj1(obj.Obj1);

                objR.Boolean1 = remote.GetBoolean1();
                objR.Byte1 = remote.GetByte1();
                objR.Char1 = remote.GetChar1();
                objR.Double1 = remote.GetDouble1();
                objR.Float1 = remote.GetFloat1();
                objR.Int1 = remote.GetInt1();
                objR.Long1 = remote.GetLong1();
                objR.PrimitiveTypes1 = remote.GetPrimitiveTypes1();
                objR.Short1 = remote.GetShort1();
                objR.String1 = remote.GetString1();
                objR.Date1 = remote.GetDate1();
                objR.Obj1 = remote.GetObj1();
            }

            TestUtils.assertEquals(log, "SetTypes", obj, objR);
		
		    log.info(")testRemoteSetTypes");
	    }
Пример #3
0
		public SetTypes(SetTypes 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.primitiveTypes1Value = rhs.primitiveTypes1Value;
			this.byte2Value = rhs.byte2Value;
			this.int2Value = rhs.int2Value;
			this.obj1Value = rhs.obj1Value;
			this.date1Value = rhs.date1Value;
		}		
Пример #4
0
 public SetTypes(SetTypes 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.primitiveTypes1Value = rhs.primitiveTypes1Value;
     this.byte2Value           = rhs.byte2Value;
     this.int2Value            = rhs.int2Value;
     this.obj1Value            = rhs.obj1Value;
     this.date1Value           = rhs.date1Value;
 }
Пример #5
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            SetTypes  obj = (SetTypes)(obj1 != null ? obj1 : bin.onObjectCreated(new SetTypes()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Boolean1 = (ISet <bool>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Byte1 = (HashSet <byte>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Byte2 = (ISet <byte[]>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Char1 = (HashSet <char>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Date1 = (ISet <DateTime>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Double1 = (ISet <double>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Float1 = (ISet <float>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int1 = (ISet <int>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int2 = (ISet <int[]>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Long1 = (ISet <long>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Obj1 = (ISet <Object>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.PrimitiveTypes1 = (ISet <byps.test.api.prim.PrimitiveTypes>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Short1 = (ISet <short>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.String1 = (ISet <String>)bin.readObj(false, null);

            return(obj);
        }