putUint16 method

void putUint16(
  1. int value
)

Writes a Uint16 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 putUint16(int value) {
  _prepare(_sizeofUint16, 1);
  _setUint16AtTail(_buf, _tail, value);
}