コード例 #1
0
        public static ProtoID GetProtoIDFromBytes(byte[] data, int dataLen)
        {
            if (dataLen < (GetNormalProtoHeadLen()))
            {
                return(null);
            }

            return(BitConverter.ToUInt16(data, ServerHead.GetSerializeLength()));
        }
コード例 #2
0
 public static int GetNormalProtoHeadLen()
 {
     return(ServerHead.GetSerializeLength() + ProtoHead.GetSerializeLength());
 }