core/byteio: add floating point read-write functions