Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Definition

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

Parameters

value

The 2-byte signed short to write.

Returns

Type

Description

boolWhether the write was successful