toFloatArray

fun ByteArray.toFloatArray(littleEndian: Boolean = true): FloatArray(source)

Converts this ByteArray into a FloatArray.

The bytes are interpreted using the same big-endian order produced by FloatArray.toByteArray: the first byte corresponds to the most significant bits of the float and the fourth byte to the least significant.

Throws

if the size of the array is not a multiple of 4.