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

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._11);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._12);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._13);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._21);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._22);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._23);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._31);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._32);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj._33);
        }
Пример #2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemotePrimitiveTypes_sendAllTypes obj = (BRequest_RemotePrimitiveTypes_sendAllTypes)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.bValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.cValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.dValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.fValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.iValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.lValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.strValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.oValue, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ptValue, false, null);
        }
Пример #3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            float[,,,] arr = (float[, , , ])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.putFloat(arr[i3, i2, i1, i0]);
                        }
                    }
                }
            }
        }
Пример #4
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);
        }
Пример #5
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemotePrimitiveTypes_setFloat obj = (BRequest_RemotePrimitiveTypes_setFloat)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.vValue);
        }
Пример #6
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BResult_7  obj  = (BResult_7)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.resultValue);
        }
Пример #7
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin    bout = ((BOutputBin)bout1);
            BBufferBin    bbuf = bout.bbuf;
            IList <float> arr  = (IList <float>)obj1;
            int           n    = arr.Count;

            bout.bbuf.putLength(n);
            foreach (float obj in arr)
            {
                bbuf.putFloat(obj);
            }
        }
Пример #8
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = ((BOutputBin)bout1);
            BBufferBin bbuf = bout.bbuf;
            Dictionary <char, float> map = (Dictionary <char, float>)obj1;
            int n = map.Count;

            bout.bbuf.putLength(n);
            foreach (KeyValuePair <char, float> obj in map)
            {
                bbuf.putChar(obj.Key);
                bbuf.putFloat(obj.Value);
            }
        }
Пример #9
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);
        }
Пример #10
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            float[] arr = (float[])obj1;

            // lengths
            int n0 = arr.GetLength(0);

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bbuf.putFloat(arr[i0]);
            }
        }
Пример #11
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemoteConstants_compare_AllTypesC obj = (BRequest_RemoteConstants_compare_AllTypesC)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.bool1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.bool2sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.char1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.char2sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.double1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.float1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.int1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.long1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.short1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.string1sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.stringNullValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ALLValue, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.arrAllValue, false, byps.test.api.BSerializer_81775365.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.arrIntValue, false, byps.test.api.BSerializer_100361105.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.arrInt4Value, false, byps.test.api.BSerializer_39910537.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.arrStringsValue, true, byps.test.api.BSerializer_1888107655.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.arrStrings4Value, true, byps.test.api.BSerializer_588723219.instance);
        }
Пример #12
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);
        }
Пример #13
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);
                }
            }
        }