Class DecodeUTF8
Index
Constructors
constructor
- new DecodeUTF8(cb?: StringStreamHandler): DecodeUTF8
Creates a UTF-8 decoding stream
Parameters
Optional
cb: StringStreamHandlerThe callback to call whenever data is decoded
Returns DecodeUTF8
Methods
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be decoded from UTF-8 binary
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Streaming UTF-8 decoding