-
Notifications
You must be signed in to change notification settings - Fork 1
__OutputStream__
Hyomoto edited this page Jun 13, 2021
·
3 revisions
Jump To | Go Back |
Methods | Variables |
---|
Implements: Struct
An output stream provides a generic wrapper for functions that can write to files, the network, the output console, etc... A function that wants to write to an output stream should only have to call write and/or close to complete its operation. The actual stream may contain main more methods or values as needed, but they must implement these two methods to ensure a consistent point of access for write operations.
Jump To | top |
open | write | close | buffer |
---|
Name | Type | Purpose |
---|---|---|
None |
Opens the stream
Name | Type | Purpose |
---|---|---|
None |
Writes a chunk of data to the stream
Name | Type | Purpose |
---|---|---|
None |
Closes the stream
Name | Type | Purpose |
---|---|---|
None |
Returns the last chunk of data written to the stream
Jump To | top |
---|
Name | Type | Initial | Purpose |
---|---|---|---|
__Buffer | string |
undefined | The last thing written to the stream |
Devon Mullane 2020