pub fn twz_rt_fd_pread(
fd: RawFd,
offset: Option<u64>,
buf: &mut [u8],
flags: IoFlags,
) -> Result<usize, IoError>
Expand description
Read a file descriptor into a buffer, up to buf.len() bytes. On success, returns the number of bytes actually read, which may be fewer than requested. If offset is None, use the file descriptor’s internal position. If the file descriptor refers to a non-seekable file, and offset is Some, this function returns an error.