readFloat method
Converts four bytes from the read buffer to a float.
The byte order is big-endian.
@return the float value.
Implementation
double readFloat() {
// https://stackoverflow.com/questions/55355482/parsing-integer-bit-patterns-as-ieee-754-floats-in-dart
var bdata = ByteData(4);
bdata.setInt32(0, readInt());
return bdata.getFloat32(0);
}