putUint16 method
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(_tail, value);
}