示例#1
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            byps.test.api.inl.Point2D[,,] arr = (byps.test.api.inl.Point2D[, , ])obj1;

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

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

            // write
            for (int i2 = 0; i2 < n2; i2++)
            {
                for (int i1 = 0; i1 < n1; i1++)
                {
                    for (int i0 = 0; i0 < n0; i0++)
                    {
                        bout.writeObj(arr[i2, i1, i0], false, byps.test.api.inl.BSerializer_1835035436.instance);
                    }
                }
            }
        }
示例#2
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]);
                        }
                    }
                }
            }
        }
示例#3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            byps.test.api.prim.PrimitiveTypes[,,] arr = (byps.test.api.prim.PrimitiveTypes[, , ])obj1;

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

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

            // write
            for (int i2 = 0; i2 < n2; i2++)
            {
                for (int i1 = 0; i1 < n1; i1++)
                {
                    for (int i0 = 0; i0 < n0; i0++)
                    {
                        bout.writeObj(arr[i2, i1, i0], false, null);
                    }
                }
            }
        }
示例#4
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

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

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

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

            // write
            for (int i1 = 0; i1 < n1; i1++)
            {
                for (int i0 = 0; i0 < n0; i0++)
                {
                    bbuf.putInt(arr[i1, i0]);
                }
            }
        }
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

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

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

            bbuf.putLength(n0);

            // write
            bbuf.putArrayByte(arr);
        }
示例#6
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

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

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

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bout.writeObj(arr[i0], false, null);
            }
        }
示例#7
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]);
            }
        }
示例#8
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

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

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

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bout.writeObj(arr[i0], false, null);
            }
        }
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            EloixClient.IndexServer.feed.Action[] arr = (EloixClient.IndexServer.feed.Action[])obj1;

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

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bout.writeObj(arr[i0], false, null);
            }
        }
示例#10
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            byps.test.api.enu.EnumPlanets[] arr = (byps.test.api.enu.EnumPlanets[])obj1;

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

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bbuf.putInt((int)((byps.test.api.enu.EnumPlanets)arr[i0]));
            }
        }
示例#11
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            byps.test.api.prim.PrimitiveTypes[] arr = (byps.test.api.prim.PrimitiveTypes[])obj1;

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

            bbuf.putLength(n0);

            // write
            for (int i0 = 0; i0 < n0; i0++)
            {
                bout.writeObj(arr[i0], false, null);
            }
        }