decodeInt48

fun ByteArray.decodeInt48(octetIndex: Int, byteOrder: ByteOrder): Int48

Decodes a ByteArray into an Int48 using the 6 bytes starting from octetIndex

Return

the decoded Int48

Parameters

octetIndex

the the index of the octet start the decoding from. Must be be at most the sixth to last octet

byteOrder

the ByteOrder in which the Int48 is encoded

Throws

if octetIndex or its next five octets are not available in the ByteArray