decodeULong

fun ByteArray.decodeULong(octetIndex: Int, byteOrder: ByteOrder): ULong

Converts ByteArray to ULong

Return

the decoded ULong

Parameters

octetIndex

index of byte to start. Must not be higher than the eight to last octet.

byteOrder

ByteOrder to use for decoding.

Throws

if octetIndex is bigger than the size of the ByteArray minus 8.