setFloat32 method

void setFloat32(
  1. int position,
  2. double value, [
  3. Endian endian = Endian.big
])

Writes a 32-bit floating-point number at the specified position without changing the current write position.

endian specifies byte order (defaults to big-endian).

Throws RangeError if position is negative or if position + 4 exceeds the buffer capacity.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
void setFloat32(int position, double value, [Endian endian = Endian.big]) {
  _ws.data.setFloat32(position, value, endian);
}