setFloat32 method

void setFloat32(
  1. double value
)

Writes a floating point value to 4-bytes.

The offset must satisy the relations 0offsetoffset+4this.length.

Implementation

void setFloat32(final double value) {
  _increaseCapacity(ByteLength.f32);
  buffer.setFloat32(value, offset);
  offset += ByteLength.f32;
}