Methods
(static) split(buffer, options) → {Promise.<Array.<Buffer>>}
Split buffer.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
buffer | Buffer | Buffer to split. | ||||||||||||||||||||||||||||||||
options | Object | Splitting options. Properties
|
- Source
Returns:
- Type:
- Promise.<Array.<Buffer>>
(static) splitSync(buffer, options) → {Array.<Buffer>}
Split buffer synchronously.
Parameters:
Name | Type | Description |
---|---|---|
buffer | Buffer | Buffer to split. |
options | Object | Splitting options. See module:merked/split.split. |
- Source
Throws:
Throws an error when options are invalid or when running out of suffixes.
Returns:
Array of splitted buffer
- Type:
- Array.<Buffer>