ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]
    public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer)
    {
        NetBuffer buf = new NetBuffer();

        buf.WriteShort((UInt16)rCMD);
        buf.WriteBytes(rBuffer.ToBytes());
        SocketClient.SendMessageTCP(buf);
    }
Example #2
0
 public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer)
 {
     NetBuffer buf = new NetBuffer();
     buf.WriteShort((UInt16)rCMD);
     buf.WriteBytes(rBuffer.ToBytes());
     SocketClient.SendMessageTCP(buf);
 }