Classes
Methods
(async, generator) byLimit(limitopt) → {Uint8Array}
Provides chunks with maximum size limit.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
limit |
number |
<optional> |
8192 | The size limit. |
Yields:
The stream chunks.
- Type
- Uint8Array
(async, generator) bySeparator(separatoropt) → {Uint8Array}
Provides chunks according to a separator.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
separator |
string | Uint8Array |
<optional> |
'\n' | The split separator. If a string, it is encoded as UTF-8. |
Yields:
The stream chunks.
- Type
- Uint8Array
(async) join() → {Uint8Array}
Convenience method that joins all chunks into one.
Returns:
The joined stream chunks.
- Type
- Uint8Array