Class: WritableArray

gpf.stream. WritableArray


new WritableArray()

Creates a writable stream that pushes all writes into an array

Since:
  • 0.2.2
Implements:

Methods


toArray()

Gets the array containing writen data

Since:
  • 0.2.2
Returns:

array containing writen data

Type
Array

write(data)

Write data to the underlying destination

Parameters:
Name Type Description
data *

Data to write

Since:
  • 0.2.2
Implements:
Returns:

Resolved when ready

Type
Promise