Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public bool WriteUShortNetworkByteOrder(ushort value)

Parameters

value

The 2-byte unsigned short to write.

Returns

Type

Description

boolWhether the write was successful