decodeInt24

fun ByteArray.decodeInt24(octetIndex: Int, byteOrder: ByteOrder): Int24

Decodes a ByteArray into an Int24 using the 3 bytes starting from octetIndex

Return

the decoded Int24

Parameters

octetIndex

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

byteOrder

the ByteOrder in which the Int24 is encoded

Throws

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