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