void writeFloat32(double f, [Endian endian = Endian.big]) { _ensureSize(4); _scratchData?.setFloat32(_scratchOffset, f, endian); _scratchOffset += 4; }