예제 #1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.result  = new DBDataResult();
     this.result.__decode(binData, ref pos);
     return(pos);
 }
예제 #2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.retCode));
            if (this.result == null)
            {
                this.result = new DBDataResult();
            }
            data.AddRange(this.result.__encode());
            return(data);
        }
예제 #3
0
 public DBQueryResp(ushort retCode, DBDataResult result)
 {
     this.retCode = retCode;
     this.result  = result;
 }
예제 #4
0
 public DBQueryResp()
 {
     retCode = 0;
     result  = new DBDataResult();
 }