public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BBufferBin bbuf = bin.bbuf; // lengths int n3 = bbuf.getLength(); int n2 = bbuf.getLength(); int n1 = bbuf.getLength(); int n0 = bbuf.getLength(); // create array byte[,,,] arr = new byte[n3, n2, n1, n0]; bin.onObjectCreated(arr); // read for (int i3 = 0; i3 < n3; i3++) { for (int i2 = 0; i2 < n2; i2++) { for (int i1 = 0; i1 < n1; i1++) { for (int i0 = 0; i0 < n0; i0++) { arr[i3, i2, i1, i0] = bbuf.getByte(); } } } } return(arr); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BResult_2 obj = (BResult_2)(obj1 != null ? obj1 : bin.onObjectCreated(new BResult_2())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.resultValue = bbuf.getByte(); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_RemotePrimitiveTypes_setByte obj = (BRequest_RemotePrimitiveTypes_setByte)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemotePrimitiveTypes_setByte())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.vValue = bbuf.getByte(); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; PrivateMembers obj = (PrivateMembers)(obj1 != null ? obj1 : bin.onObjectCreated(new PrivateMembers())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.BoolVal = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.ByteVal = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.CharVal = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.DoubleVal = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.FloatVal = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.IntVal = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.LongVal = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.PprotInt = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.ProtInt = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.ShortVal = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.StringVal = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ArrBool = (bool[])bin.readObj(false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.ArrInt = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.ArrPrimitiveTypes = (byps.test.api.prim.PrimitiveTypes[])bin.readObj(false, byps.test.api.BSerializer_2053507648.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.ArrString = (String[])bin.readObj(false, byps.test.api.BSerializer_1888107655.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.ListBool = (IList <bool>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.ListInt = (IList <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.ListPrimitiveTypes = (IList <byps.test.api.prim.PrimitiveTypes>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.ListString = (IList <String>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.MapIntListString = (IDictionary <int, IList <String> >)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.PrimitiveTypes = (byps.test.api.prim.PrimitiveTypes)bin.readObj(false, null); return(obj); }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; int n = bbuf.getLength(); HashSet <byte> arr = new HashSet <byte>(); bin.onObjectCreated(arr); for (int i = 0; i < n; i++) { byte obj = bbuf.getByte(); arr.Add(obj); } return(arr); }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; Dictionary <byte, double> map = new Dictionary <byte, double>(); bin.onObjectCreated(map); int n = bbuf.getLength(); for (int i = 0; i < n; i++) { byte key = bbuf.getByte(); double value = bbuf.getDouble(); map[key] = value; } return(map); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; PrimitiveTypes obj = (PrimitiveTypes)(obj1 != null ? obj1 : bin.onObjectCreated(new PrimitiveTypes())); base.read(obj, bin1, version); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.BoolVal = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.ByteVal = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.CharVal = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.DateVal = bbuf.getDate(); // checkpoint byps.gen.cs.PrintContext:449 obj.DeferredValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.DoubleVal = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.FloatVal = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.IntVal = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.LongVal = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.ShortVal = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.StringVal = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.Value = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.ObjVal = (Object)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.ObjVal2 = (Object)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; AllTypesZ obj = (AllTypesZ)(obj1 != null ? obj1 : bin.onObjectCreated(new AllTypesZ())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.Bool1 = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte1 = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.Char1 = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.Double1 = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.Float1 = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.Int1 = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.Long1 = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.Short1 = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.String1 = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte2 = (byte[])bin.readObj(false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Hebrew1 = (byps.test.api.cons.HebrewZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Hebrew2 = (byps.test.api.cons.HebrewZ[])bin.readObj(false, byps.test.api.BSerializer_92445340.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Int2 = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.String2 = (String[])bin.readObj(false, byps.test.api.BSerializer_1888107655.instance); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; Evolve obj = (Evolve)(obj1 != null ? obj1 : bin.onObjectCreated(new Evolve())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.Bool1 = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte1 = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.Char1 = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.Double1 = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.Float1 = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.Int1 = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.Long1 = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.Short1 = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.Str1 = bbuf.getString(); if (version >= 200000000000000L) { // checkpoint byps.gen.cs.PrintContext:449 obj.Bool2 = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte2 = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.Char2 = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.Double2 = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.Float2 = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.Int2 = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.Long2 = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.Short2 = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.Str2 = bbuf.getString(); if (version >= 300000000000000L) { // checkpoint byps.gen.cs.PrintContext:449 obj.Bool3 = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.Byte3 = bbuf.getByte(); // checkpoint byps.gen.cs.PrintContext:449 obj.Char3 = bbuf.getChar(); // checkpoint byps.gen.cs.PrintContext:449 obj.Double3 = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.Float3 = bbuf.getFloat(); // checkpoint byps.gen.cs.PrintContext:449 obj.Int3 = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.Long3 = bbuf.getLong(); // checkpoint byps.gen.cs.PrintContext:449 obj.Short3 = bbuf.getShort(); // checkpoint byps.gen.cs.PrintContext:449 obj.Str3 = bbuf.getString(); if (version >= 79300000000000000L) { // checkpoint byps.gen.cs.PrintContext:449 obj.Since793 = bbuf.getInt(); } } } // checkpoint byps.gen.cs.PrintContext:449 obj.Bools1 = (bool[])bin.readObj(false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Bytes1 = (byte[])bin.readObj(false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Chars1 = (char[])bin.readObj(false, byps.test.api.BSerializer_1361632968.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Doubles1 = (double[])bin.readObj(false, byps.test.api.BSerializer_1359468275.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Evo1 = (byps.test.api.ver.Evolve2)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Floats1 = (float[])bin.readObj(false, byps.test.api.BSerializer_766441794.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Ints1 = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.List1 = (IList <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Longs1 = (long[])bin.readObj(false, byps.test.api.BSerializer_1097129250.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Map1 = (IDictionary <int, int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Obj1 = (Object)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Set1 = (ISet <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Shorts1 = (short[])bin.readObj(false, byps.test.api.BSerializer_2067161310.instance); if (version >= 200000000000000L) { // checkpoint byps.gen.cs.PrintContext:449 obj.Bools2 = (bool[])bin.readObj(false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Bytes2 = (byte[])bin.readObj(false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Chars2 = (char[])bin.readObj(false, byps.test.api.BSerializer_1361632968.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Doubles2 = (double[])bin.readObj(false, byps.test.api.BSerializer_1359468275.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Evo2 = (byps.test.api.ver.Evolve2)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Floats2 = (float[])bin.readObj(false, byps.test.api.BSerializer_766441794.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Ints2 = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.List2 = (IList <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Longs2 = (long[])bin.readObj(false, byps.test.api.BSerializer_1097129250.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Map2 = (IDictionary <int, int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Obj2 = (Object)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Set2 = (ISet <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Shorts2 = (short[])bin.readObj(false, byps.test.api.BSerializer_2067161310.instance); if (version >= 300000000000000L) { // checkpoint byps.gen.cs.PrintContext:449 obj.Bools3 = (bool[])bin.readObj(false, byps.test.api.BSerializer_2058423690.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Bytes3 = (byte[])bin.readObj(false, byps.test.api.BSerializer_1374008726.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Chars3 = (char[])bin.readObj(false, byps.test.api.BSerializer_1361632968.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Doubles3 = (double[])bin.readObj(false, byps.test.api.BSerializer_1359468275.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Evo3 = (byps.test.api.ver.Evolve2)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Floats3 = (float[])bin.readObj(false, byps.test.api.BSerializer_766441794.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Ints3 = (int[])bin.readObj(false, byps.test.api.BSerializer_100361105.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.List3 = (IList <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Longs3 = (long[])bin.readObj(false, byps.test.api.BSerializer_1097129250.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.Map3 = (IDictionary <int, int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Obj3 = (Object)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Set3 = (ISet <int>)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.Shorts3 = (short[])bin.readObj(false, byps.test.api.BSerializer_2067161310.instance); } } return(obj); }