decodeUInt40
Decodes a ByteArray into an UInt40 using the 5 bytes starting from octetIndex
Return
the decoded UInt40
Parameters
octetIndex
the the index of the octet start the decoding from. Must be be at most the fifth to last octet
Throws
if octetIndex or its next four octets are not available in the ByteArray