Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: short BytesToShort(byte[], int, bool)

  • Declared in: RT.Util.Ut

Declaration

public static short BytesToShort(
    byte[] buffer,
    int index,
    bool bigEndian = false
)

Summary

Converts the bytes at the specified index within the specified buffer to a 16-bit signed 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 signed integer.