decodeUInt48

fun ByteArray.decodeUInt48(octetIndex: Int, byteOrder: ByteOrder): UInt48

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

Return

the decoded UInt48

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 UInt48 is encoded

Throws

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