blob: 3fd2c4b7851818f2eac6e6ea8372ab003d03ebbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Class: EncodeUTF8
Streaming UTF-8 encoding
## Hierarchy
* **EncodeUTF8**
## Index
### Constructors
* [constructor](encodeutf8.md#constructor)
### Properties
* [ondata](encodeutf8.md#ondata)
### Methods
* [push](encodeutf8.md#push)
## Constructors
### constructor
\+ **new EncodeUTF8**(`cb?`: [FlateStreamHandler](../README.md#flatestreamhandler)): [EncodeUTF8](encodeutf8.md)
Creates a UTF-8 decoding stream
#### Parameters:
Name | Type | Description |
------ | ------ | ------ |
`cb?` | [FlateStreamHandler](../README.md#flatestreamhandler) | The callback to call whenever data is encoded |
**Returns:** [EncodeUTF8](encodeutf8.md)
## Properties
### ondata
• **ondata**: [FlateStreamHandler](../README.md#flatestreamhandler)
The handler to call whenever data is available
## Methods
### push
▸ **push**(`chunk`: string, `final?`: boolean): void
Pushes a chunk to be encoded to UTF-8
#### Parameters:
Name | Type | Description |
------ | ------ | ------ |
`chunk` | string | The string data to push |
`final?` | boolean | Whether this is the last chunk |
**Returns:** void
|