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); }
//-------------------------------------------------------------------// //---decoding 부분 public static Int32 decodePacketLen(Byte[] data, ref Int32 offset) { return(PacketUtil.decodeInt32(data, ref offset)); }