Flush the internal buffer
If start was passed a stream
option, this will return a ArrayBuffer
If start was passed a stream
option and asUint8Array
, this will return a Uint8Array
Otherwise, this will return the number of bytes written since the last flush
This API might change later to separate Uint8ArraySink and ArrayBufferSink
Optional
options: { asUint8Array?: boolean; highWaterMark?: number; stream?: boolean }Optional
asOptional
highPreallocate an internal buffer of this size This can significantly improve performance when the chunk size is small
Optional
stream?: booleanOn flush, return the written data as a Uint8Array
.
Writes will restart from the beginning of the buffer.
Generated using TypeDoc
Fast incremental writer that becomes an
ArrayBuffer
on end().