getFloat
fun ByteArray.getFloat(offset: Int, format: FloatFormat, order: ByteOrder = ByteOrder.BIG_ENDIAN): Float
Returns a Float value from a byte array with a given offset.
Return
Float.
Parameters
offset
The index to start from.
format
The format or the Float value to read.
order
The byte order, default is ByteOrder.BIG_ENDIAN.
Throws
If the length of the byte array is shorter than offset plus the format length.