getUInt
fun ByteArray.getUInt(offset: Int, format: IntFormat = IntFormat.UINT32, order: ByteOrder = ByteOrder.BIG_ENDIAN): UInt
Returns an Int from a byte array with a given offset.
Return
UInt.
Parameters
offset
The index to start from.
format
The format or the Int value to read.
order
The byte order, default is ByteOrder.BIG_ENDIAN.
Throws
If the length of byte array is less than offset + 4.