public static void encode(MemoryStream packet, string str) { PacketUtil.encode(packet, (Int32)str.Length); packet.Write(Encoding.UTF8.GetBytes(str), 0, str.Length); }
//-------------------------------------------------------------------// //--- encodeing 부분 public static void encodeHeader(MemoryStream packet, Int64 headerType) { PacketUtil.encode(packet, headerType); }
void PacketInterface.encode() { PacketUtil.encodeHeader(packet_, this.type()); PacketUtil.encode(packet_, roomNum); }
void PacketInterface.encode() { PacketUtil.encodeHeader(packet_, this.type()); PacketUtil.encode(packet_, name_); }
void PacketInterface.encode() { PacketUtil.encodeHeader(packet_, this.type()); PacketUtil.encode(packet_, clientId_); PacketUtil.encode(packet_, oidAccountId_); }
void PacketInterface.encode() { PacketUtil.encodeHeader(packet_, this.type()); PacketUtil.encode(packet_, id_); PacketUtil.encode(packet_, password_); }