Creates a new input stream from the specified file descriptor fd.
File descriptor to read from.
Optional options: UnixStreamOptionsOptions to customize the stream.
Reads up to size bytes from the stream. The resulting buffer is up to size bytes long. End of stream is
signalled through an empty buffer.
Keeps reading from the stream until exactly size bytes have been consumed. The resulting buffer is exactly
size bytes long. Premature error or end of stream results in an Error object with a partialData property
containing the incomplete data.
Generated using TypeDoc
Input stream backed by a file descriptor.
Only available on UNIX-like OSes.