writeFloat32 method
Writes a float32 f
into the buffer
f
: The value to writeendian
: The endianess, Endian.big by default
Implementation
void writeFloat32(double f, [Endian endian = Endian.big]) {
_ensureSize(float32Size);
_scratchData!.setFloat32(_scratchOffset, f, endian);
_scratchOffset += float32Size;
}