new ReadableArray(buffer)
Wraps an array inside a readable stream. Each array item is written separately to the output
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Array | Array buffer |
- Since:
-
- 0.2.2
- Implements:
Methods
-
read(output)
-
Read all data from the underlying source. Chunk of data is passed to the gpf.interfaces.IWritableStream.
Parameters:
Name Type Description output
gpf.interfaces.IWritableStream Stream that receives chunk of data
- Since:
-
- 0.2.2
- Implements:
Returns:
Resolved when the stream has ended
- Type
- Promise