WriteStringLen() public method

public WriteStringLen ( string pValue, bool addNullTerminator = false ) : void
pValue string
addNullTerminator bool
return void
Beispiel #1
0
 public static Packet CreateWorldMessage(WorldMessageTypes pType, string pMessage)
 {
     var packet = new Packet(SH25Type.WorldMessage);
     packet.WriteByte((byte)pType);
     packet.WriteStringLen(pMessage, true);
     return packet;
 }