Ejemplo n.º 1
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            byte[,,,] arr = (byte[, , , ])obj1;

            // lengths
            int n3 = arr.GetLength(0);
            int n2 = arr.GetLength(1);
            int n1 = arr.GetLength(2);
            int n0 = arr.GetLength(3);

            bbuf.putLength(n3);
            bbuf.putLength(n2);
            bbuf.putLength(n1);
            bbuf.putLength(n0);

            // write
            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++)
                        {
                            bbuf.putByte(arr[i3, i2, i1, i0]);
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            AllTypesZ  obj  = (AllTypesZ)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.Bool1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.Byte1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.Char1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.Double1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.Float1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.Int1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.Long1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.Short1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.String1);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte2, false, byps.test.api.BSerializer_1374008726.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Hebrew1, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Hebrew2, false, byps.test.api.BSerializer_92445340.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int2, false, byps.test.api.BSerializer_100361105.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.String2, true, byps.test.api.BSerializer_1888107655.instance);
        }
Ejemplo n.º 3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BResult_2  obj  = (BResult_2)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.resultValue);
        }
Ejemplo n.º 4
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemotePrimitiveTypes_setByte obj = (BRequest_RemotePrimitiveTypes_setByte)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.vValue);
        }
Ejemplo n.º 5
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin     bout = ((BOutputBin)bout1);
            BBufferBin     bbuf = bout.bbuf;
            HashSet <byte> arr  = (HashSet <byte>)obj1;
            int            n    = arr.Count;

            bout.bbuf.putLength(n);
            foreach (byte obj in arr)
            {
                bbuf.putByte(obj);
            }
        }
Ejemplo n.º 6
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = ((BOutputBin)bout1);
            BBufferBin bbuf = bout.bbuf;
            Dictionary <byte, double> map = (Dictionary <byte, double>)obj1;
            int n = map.Count;

            bout.bbuf.putLength(n);
            foreach (KeyValuePair <byte, double> obj in map)
            {
                bbuf.putByte(obj.Key);
                bbuf.putDouble(obj.Value);
            }
        }
Ejemplo n.º 7
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            PrivateMembers obj  = (PrivateMembers)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.BoolVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.ByteVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.CharVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.DoubleVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.FloatVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.IntVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.LongVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.PprotInt);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.ProtInt);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.ShortVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.StringVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ArrBool, false, byps.test.api.BSerializer_2058423690.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ArrInt, false, byps.test.api.BSerializer_100361105.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ArrPrimitiveTypes, false, byps.test.api.BSerializer_2053507648.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ArrString, true, byps.test.api.BSerializer_1888107655.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ListBool, false, byps.test.api.BSerializer_1617670280.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ListInt, false, byps.test.api.BSerializer_181681714.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ListPrimitiveTypes, false, byps.test.api.BSerializer_1596367810.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ListString, false, byps.test.api.BSerializer_2123584667.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.MapIntListString, false, byps.test.api.BSerializer_132175071.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.PrimitiveTypes, false, null);
        }
Ejemplo n.º 8
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            PrimitiveTypes obj  = (PrimitiveTypes)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.BoolVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.ByteVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.CharVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.DateVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.DeferredValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.DoubleVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.FloatVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.IntVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.LongVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.ShortVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.StringVal);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.Value);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ObjVal, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ObjVal2, false, null);
        }
Ejemplo n.º 9
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            Evolve     obj  = (Evolve)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.Bool1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putByte(obj.Byte1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.Char1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.Double1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.Float1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.Int1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.Long1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.Short1);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.Str1);
            if (version >= 200000000000000L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putBoolean(obj.Bool2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putByte(obj.Byte2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putChar(obj.Char2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putDouble(obj.Double2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putFloat(obj.Float2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putInt(obj.Int2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putLong(obj.Long2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putShort(obj.Short2);
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putString(obj.Str2);
                if (version >= 300000000000000L)
                {
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putBoolean(obj.Bool3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putByte(obj.Byte3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putChar(obj.Char3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putDouble(obj.Double3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putFloat(obj.Float3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putInt(obj.Int3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putLong(obj.Long3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putShort(obj.Short3);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bbuf.putString(obj.Str3);
                    if (version >= 79300000000000000L)
                    {
                        // checkpoint byps.gen.cs.PrintContext:494
                        bbuf.putInt(obj.Since793);
                    }
                }
            }
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Bools1, false, byps.test.api.BSerializer_2058423690.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Bytes1, false, byps.test.api.BSerializer_1374008726.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Chars1, false, byps.test.api.BSerializer_1361632968.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Doubles1, false, byps.test.api.BSerializer_1359468275.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Evo1, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Floats1, false, byps.test.api.BSerializer_766441794.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Ints1, false, byps.test.api.BSerializer_100361105.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.List1, false, byps.test.api.BSerializer_181681714.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Longs1, false, byps.test.api.BSerializer_1097129250.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Map1, false, byps.test.api.BSerializer_1347703734.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Obj1, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Set1, false, byps.test.api.BSerializer_1493282670.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Shorts1, false, byps.test.api.BSerializer_2067161310.instance);
            if (version >= 200000000000000L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Bools2, false, byps.test.api.BSerializer_2058423690.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Bytes2, false, byps.test.api.BSerializer_1374008726.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Chars2, false, byps.test.api.BSerializer_1361632968.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Doubles2, false, byps.test.api.BSerializer_1359468275.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Evo2, false, null);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Floats2, false, byps.test.api.BSerializer_766441794.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Ints2, false, byps.test.api.BSerializer_100361105.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.List2, false, byps.test.api.BSerializer_181681714.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Longs2, false, byps.test.api.BSerializer_1097129250.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Map2, false, byps.test.api.BSerializer_1347703734.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Obj2, false, null);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Set2, false, byps.test.api.BSerializer_1493282670.instance);
                // checkpoint byps.gen.cs.PrintContext:494
                bout.writeObj(obj.Shorts2, false, byps.test.api.BSerializer_2067161310.instance);
                if (version >= 300000000000000L)
                {
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Bools3, false, byps.test.api.BSerializer_2058423690.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Bytes3, false, byps.test.api.BSerializer_1374008726.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Chars3, false, byps.test.api.BSerializer_1361632968.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Doubles3, false, byps.test.api.BSerializer_1359468275.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Evo3, false, null);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Floats3, false, byps.test.api.BSerializer_766441794.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Ints3, false, byps.test.api.BSerializer_100361105.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.List3, false, byps.test.api.BSerializer_181681714.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Longs3, false, byps.test.api.BSerializer_1097129250.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Map3, false, byps.test.api.BSerializer_1347703734.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Obj3, false, null);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Set3, false, byps.test.api.BSerializer_1493282670.instance);
                    // checkpoint byps.gen.cs.PrintContext:494
                    bout.writeObj(obj.Shorts3, false, byps.test.api.BSerializer_2067161310.instance);
                }
            }
        }