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

            DateTime[,,,] arr = (DateTime[, , , ])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.putDate(arr[i3, i2, i1, i0]);
                        }
                    }
                }
            }
        }
示例#2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            ReindexerConfig obj  = (ReindexerConfig)obj1;
            BOutputBin      bout = (BOutputBin)bout1;
            BBufferBin      bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.ixid);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.lastException);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.objIdRange);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.progressInPercent);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.startedAt);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt((int)obj.status);
            if (version >= 1000000000000007L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putString(obj.lockName);
            }
        }
示例#3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemotePrimitiveTypes_setDate obj = (BRequest_RemotePrimitiveTypes_setDate)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.vValue);
        }
示例#4
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BResult_17 obj  = (BResult_17)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.resultValue);
        }
示例#5
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin      bout = ((BOutputBin)bout1);
            BBufferBin      bbuf = bout.bbuf;
            ISet <DateTime> arr  = (ISet <DateTime>)obj1;
            int             n    = arr.Count;

            bout.bbuf.putLength(n);
            foreach (DateTime obj in arr)
            {
                bbuf.putDate(obj);
            }
        }
示例#6
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = ((BOutputBin)bout1);
            BBufferBin bbuf = bout.bbuf;
            Dictionary <String, DateTime> map = (Dictionary <String, DateTime>)obj1;
            int n = map.Count;

            bout.bbuf.putLength(n);
            foreach (KeyValuePair <String, DateTime> obj in map)
            {
                bbuf.putString(obj.Key);
                bbuf.putDate(obj.Value);
            }
        }
示例#7
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

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

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

            bbuf.putLength(n0);

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

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.Directory);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.LastModified);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.Name);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.Readonly);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.Size);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.SizeL);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Icon, false, com.wilutions.jsfs.BSerializer_1374008726.instance);
        }
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            OptimizerConfig obj  = (OptimizerConfig)obj1;
            BOutputBin      bout = (BOutputBin)bout1;
            BBufferBin      bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.intervalHours);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.ixid);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.lastException);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDate(obj.nextRunAt);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt((int)obj.status);
            if (version >= 1000000000000007L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putString(obj.lockName);
            }
        }
示例#10
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);
        }