getLongValue

fun getLongValue(formatType: LongFormat, @IntRange(from = 0) offset: Int): Long?

Returns a long value from the byte array.

Only .FORMAT_UINT32_LE and .FORMAT_SINT32_LE are supported.

The formatType parameter determines how the value is to be interpreted. For example, setting formatType to .FORMAT_UINT32_LE specifies that the first four bytes of the value at the given offset are interpreted to generate the return value.

Return

Cached value or null of offset exceeds value size.

Parameters

formatType

The format type used to interpret the value.

offset

Offset at which the integer value can be found.