WriteShort() public method

2字节写入
public WriteShort ( ushort v ) : void
v ushort
return void
コード例 #1
0
 public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer)
 {
     NetBuffer buf = new NetBuffer();
     buf.WriteShort((UInt16)rCMD);
     buf.WriteBytes(rBuffer.ToBytes());
     SocketClient.SendMessageTCP(buf);
 }
コード例 #2
0
    public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer)
    {
        NetBuffer buf = new NetBuffer();

        buf.WriteShort((UInt16)rCMD);
        buf.WriteBytes(rBuffer.ToBytes());
        SocketClient.SendMessageTCP(buf);
    }
コード例 #3
0
 public override void WriteToBuffer(NetBuffer buffer)
 {
     buffer.WriteShort(value);
 }