Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }