Streaming UTF-8 encoding
+ new EncodeUTF8(cb?: FlateStreamHandler): EncodeUTF8
Creates a UTF-8 decoding stream
| Name | Type | Description |
|---|---|---|
cb? |
FlateStreamHandler | The callback to call whenever data is encoded |
Returns: EncodeUTF8
• ondata: FlateStreamHandler
The handler to call whenever data is available
▸ push(chunk: string, final?: boolean): void
Pushes a chunk to be encoded to UTF-8
| Name | Type | Description |
|---|---|---|
chunk |
string | The string data to push |
final? |
boolean | Whether this is the last chunk |
Returns: void