getULong

fun ByteArray.getULong(offset: Int, order: ByteOrder = ByteOrder.BIG_ENDIAN): ULong

Returns a ULong from a byte array with a given offset.

Return

ULong.

Parameters

offset

The index to start from.

order

The byte order, default is ByteOrder.BIG_ENDIAN.

Throws

If the length of byte array is less than the offset plus ULong.SIZE_BYTES.