Method WriteUShortNetworkByteOrder
WriteUShortNetworkByteOrder(ushort)
Writes a 2-byte unsigned short to the current stream using Big-endian byte order and advances the stream position by two bytes. If the stream is in little-endian order, the byte order will be swapped.
Declaration
public bool WriteUShortNetworkByteOrder(ushort value)
Parameters
Type | Name | Description |
---|---|---|
ushort | value | The 2-byte unsigned short to write. |
Returns
Type | Description |
---|---|
bool | Whether the write was successful |