public System.Int32 __decode(byte[] binData, ref System.Int32 pos) { packLen = BaseProtoObject.decodeUI32(binData, ref pos); reserve = BaseProtoObject.decodeUI16(binData, ref pos); protoID = BaseProtoObject.decodeUI16(binData, ref pos); return(pos); }
public System.Collections.Generic.List <byte> __encode() { var ret = new System.Collections.Generic.List <byte>(); ret.AddRange(BaseProtoObject.encodeUI32(packLen)); ret.AddRange(BaseProtoObject.encodeUI16(reserve)); ret.AddRange(BaseProtoObject.encodeUI16(protoID)); return(ret); }