Exemple #1
0
        public static string decodestring(Byte[] data, ref Int32 offset)
        {
            Int32  strLen = PacketUtil.decodeInt32(data, ref offset);
            string str    = System.Text.Encoding.ASCII.GetString(data, offset, strLen);

            offset += strLen;
            return(str);
        }
Exemple #2
0
 //-------------------------------------------------------------------//
 //---decoding 부분
 public static Int32 decodePacketLen(Byte[] data, ref Int32 offset)
 {
     return(PacketUtil.decodeInt32(data, ref offset));
 }