putUint8 method
Writes a Uint8 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 putUint8(int value) {
_prepare(_sizeofUint8, 1);
_buf.setUint8(_buf.lengthInBytes - _tail, value);
}