Get underlying file descriptor
File descriptor number
Read data callback - on successful read
Read data (Uint8Array)
undefined
Read data callback - on EOF
null (indicates EOF)
undefined
Read data callback - on read failure
undefined
Error object
Async read data into user buffer (zero-copy)
Uint8Array to store read data
Promise resolves to bytes read (0 = EOF), rejects on failure
Increase event loop ref count, prevent handle from being reclaimed
Shutdown write/read direction (synchronous, wraps uv_shutdown)
Start reading data
Stop reading data
Decrease event loop ref count, allow handle to be reclaimed
Write data to stream
Uint8Array containing data to write
Promise resolves to bytes written, rejects on failure
Base Stream interface