writeFloat method

void writeFloat(
  1. double value
)

Writes an IEEE 754 single-precision (32-bit) floating-point number to the byte stream.

Implementation

void writeFloat(double value) {
  _validateBuffer(4);
  _getData().setFloat32(_position, value, endian);
  _position += 4;
}