writeFloat32 method Null safety

void writeFloat32(
  1. double f,
  2. [Endian endian = Endian.big]
)

Writes a float32 f into the buffer

  • f: The value to write
  • endian: The endianess, Endian.big by default

Implementation

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