Streaming UTF-8 decoding
+ new DecodeUTF8(handler?
: StringStreamHandler): DecodeUTF8
Creates a UTF-8 decoding stream
Name | Type |
---|---|
handler? |
StringStreamHandler |
Returns: DecodeUTF8
• ondata: StringStreamHandler
The handler to call whenever data is available
▸ push(chunk
: Uint8Array, final?
: boolean): void
Pushes a chunk to be decoded from UTF-8 binary
Name | Type | Description |
---|---|---|
chunk |
Uint8Array | The chunk to push |
final? |
boolean | Whether this is the last chunk |
Returns: void