devela::_dep::rustix::ioFunction read
pub fn read<Fd>(fd: Fd, buf: &mut [u8]) -> Result<usize, Errno> ⓘ
Available on crate feature dep_rustix
only.
Expand description
read(fd, buf)
—Reads from a stream.
This takes a &mut [u8]
which Rust requires to contain initialized memory.
To use an uninitialized buffer, use read_uninit
.
§References