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