Members
length :Integer
Number of objects waiting to be read from the stream
Type:
- Integer
(readonly) snapshot :Array.<Object>
A snapshot of the stream's internal buffer
Type:
- Array.<Object>
Methods
read() → {Object}
Reads an object from the stream
Throws:
-
If the stream is empty
- Type
- Error
Returns:
The next object in the stream
- Type
- Object
write(obj)
Writes an object to the stream
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object | The object to write |