예제 #1
0
        public static byte[] Pack(int command, int v1, int v2, bool v3, params CTX[] ctx)
        {
            Packer packer = new Packer();

            Init(packer, ctx);
            packer.PackArrayBegin(4);
            packer.PackNumber(command);
            packer.PackNumber(v1);
            packer.PackNumber(v2);
            packer.PackBoolean(v3);
            return(packer.ToByteArray());
        }
예제 #2
0
 public override void Pack(Packer packer)
 {
     packer.PackBoolean(val);
 }
예제 #3
0
 public override void Pack(Packer packer)
 {
     packer.PackBoolean(value);
 }