WriteShortNetworkByteOrder(short)
Writes a 2-byte signed 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.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public bool WriteShortNetworkByteOrder(short value)
Parameters
The 2-byte signed short to write.
Returns
Type | Description |
|---|---|
| bool | Whether the write was successful |