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