Creates a new output stream from the specified file descriptor fd.
File descriptor to write to.
Optionaloptions: UnixStreamOptionsOptions to customize the stream.
Closes the stream, releasing resources related to it. Once the stream is closed, all other operations will fail. Closing a stream multiple times is allowed and will not result in an error.
Tries to write data to the stream. Returns how many bytes of data were written to the stream.
Keeps writing to the stream until all of data has been written. Premature error or end of stream results in an
Error object with a partialSize property specifying how many bytes of data were written to the stream
before the error occurred.
Tries to write size bytes to the stream, reading them from address. Returns how many bytes were written
to the stream. Premature error or end of stream results in an Error object with a partialSize property
specifying how many bytes of data were written to the stream before the error occurred.
Output stream backed by a file descriptor.
Only available on UNIX-like OSes.