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()); }
public override void Pack(Packer packer) { packer.PackNil(); }