Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: int BytesToInt(byte[], int, bool)

  • Declared in: RT.Util.Ut

Declaration

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

Summary

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