devela::_dep::rustix::io

Function pread_uninit

pub fn pread_uninit<Fd>(
    fd: Fd,
    buf: &mut [MaybeUninit<u8>],
    offset: u64,
) -> Result<(&mut [u8], &mut [MaybeUninit<u8>]), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

pread(fd, buf, offset)—Reads from a file at a given position.

This is equivalent to pread, except that it can read into uninitialized memory. It returns the slice that was initialized by this function and the slice that remains uninitialized.