Пример #1
0
        internal static byte[] PackRangeOperation(int command, int returnType, Value begin, Value end, CTX[] ctx)
        {
            Packer packer = new Packer();

            PackUtil.Init(packer, ctx);
            packer.PackArrayBegin((end != null) ? 4 : 3);
            packer.PackNumber(command);
            packer.PackNumber(returnType);

            if (begin != null)
            {
                begin.Pack(packer);
            }
            else
            {
                packer.PackNil();
            }

            if (end != null)
            {
                end.Pack(packer);
            }
            return(packer.ToByteArray());
        }
Пример #2
0
 public override void Pack(Packer packer)
 {
     packer.PackNil();
 }
Пример #3
0
 public override void Pack(Packer packer)
 {
     packer.PackNil();
 }