void PacketInterface.encode()
 {
     PacketUtil.encodeHeader(packet_, this.type());
     PacketUtil.encode(packet_, name_);
     PacketUtil.encode(packet_, text_);
 }
예제 #2
0
 void Packetinterface.encode()
 {
     PacketUtil.encodeHeader(stream, type);
     PacketUtil.encode(stream, userNumber);
 }
 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_);
 }
예제 #5
0
 public static void encode(MemoryStream packet, string str)
 {
     PacketUtil.encode(packet, (Int32)str.Length);
     packet.Write(Encoding.UTF8.GetBytes(str), 0, str.Length);
 }
예제 #6
0
 //-------------------------------------------------------------------//
 //--- encodeing 부분
 public static void encodeHeader(MemoryStream packet, Int64 headerType)
 {
     PacketUtil.encode(packet, headerType);
 }
예제 #7
0
 void Packetinterface.encode()
 {
     PacketUtil.encodeHeader(packet_, this.type());
     PacketUtil.encode(packet_, result_);
 }