示例#1
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin  bin = (BInputBin)bin1;
            UsePlanets obj = (UsePlanets)(obj1 != null ? obj1 : bin.onObjectCreated(new UsePlanets()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Planet = (byps.test.api.enu.EnumPlanets)bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Planet2 = (byps.test.api.enu.EnumPlanets)bbuf.getInt();
            if (version >= 79400000000000000L)
            {
                // checkpoint byps.gen.cs.PrintContext:449
                obj.Encoding = (byps.test.api.enu.MyEncoding)bbuf.getInt();
            }
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ArrayOfPlanets = (byps.test.api.enu.EnumPlanets[])bin.readObj(false, byps.test.api.BSerializer_1441131650.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ListOfPlanets = (List <byps.test.api.enu.EnumPlanets>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.MapOfPlanets = (IDictionary <String, byps.test.api.enu.EnumPlanets>)bin.readObj(false, null);

            return(obj);
        }
示例#2
0
		public UsePlanets(UsePlanets rhs)
		{
			this.planetValue = rhs.planetValue;
			this.planet2Value = rhs.planet2Value;
			this.arrayOfPlanetsValue = rhs.arrayOfPlanetsValue;
			this.listOfPlanetsValue = rhs.listOfPlanetsValue;
			this.mapOfPlanetsValue = rhs.mapOfPlanetsValue;
		}		
示例#3
0
 public UsePlanets(UsePlanets rhs)
 {
     this.planetValue         = rhs.planetValue;
     this.planet2Value        = rhs.planet2Value;
     this.arrayOfPlanetsValue = rhs.arrayOfPlanetsValue;
     this.listOfPlanetsValue  = rhs.listOfPlanetsValue;
     this.mapOfPlanetsValue   = rhs.mapOfPlanetsValue;
     this.encodingValue       = rhs.encodingValue;
 }
示例#4
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            UsePlanets obj  = (UsePlanets)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt((int)obj.Planet);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt((int)obj.Planet2);
            if (version >= 79400000000000000L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putInt((int)obj.Encoding);
            }
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ArrayOfPlanets, false, byps.test.api.BSerializer_1441131650.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ListOfPlanets, false, byps.test.api.BSerializer_819140569.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.MapOfPlanets, false, byps.test.api.BSerializer_493795497.instance);
        }