Function rustix::io::pread_uninit
source · pub fn pread_uninit<Fd: AsFd>(
fd: Fd,
buf: &mut [MaybeUninit<u8>],
offset: u64
) -> Result<(&mut [u8], &mut [MaybeUninit<u8>])>
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.