putFloat32 method

void putFloat32(
  1. double value
)

Writes a Float32 to the tail of the buffer after preparing space for it.

Updates the offset pointer. This method is intended for use when writing structs to the buffer.

Implementation

void putFloat32(double value) {
  _prepare(_sizeofFloat32, 1);
  _setFloat32AtTail(_tail, value);
}