Class Uint8ArrayWriteBuffer

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.

Implements

Constructors

Properties

buffer: Uint8Array = ...
encoder: TextEncoder = ...
isDisposed: boolean = false
msg: DataView
offset: number
onCommitEmitter: Emitter<Uint8Array> = ...

Accessors

Methods