The default WriteBuffer implementation. Uses a Uint8Array for buffering.
The Uint8ArrayWriteBuffer.onCommit hook can be used to rect to on-commit events.
After the Uint8ArrayWriteBuffer.commit method has been called the buffer is disposed
and can no longer be used for writing data. If the writer buffer is no longer needed but the message
has not been committed yet it has to be disposed manually.
The default WriteBuffer implementation. Uses a Uint8Array for buffering. The Uint8ArrayWriteBuffer.onCommit hook can be used to rect to on-commit events. After the Uint8ArrayWriteBuffer.commit method has been called the buffer is disposed and can no longer be used for writing data. If the writer buffer is no longer needed but the message has not been committed yet it has to be disposed manually.