Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: ushort BytesToUShort(byte[], int, bool)

  • Declared in: RT.Util.Ut

Declaration

public static ushort BytesToUShort(
    byte[] buffer,
    int index,
    bool bigEndian = false
)

Summary

Converts the bytes at the specified index within the specified buffer to a 16-bit unsigned integer.

Parameters

byte[]buffer Array to take values from.
intindex Index within the array at which to start taking values.
boolbigEndiantrue to interpret the data as big-endian byte order; false for little-endian byte order.

Returns

The converted 16-bit unsigned integer.