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); }
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); }
public DBQueryResp(ushort retCode, DBDataResult result) { this.retCode = retCode; this.result = result; }
public DBQueryResp() { retCode = 0; result = new DBDataResult(); }