pub fn fd_pread<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
fd: Fd,
iovs: WasmPtr<__wasi_iovec_t<M>, M>,
iovs_len: M::Offset,
offset: Filesize,
nread: WasmPtr<M::Offset, M>,
) -> Result<Errno, WasiError>
Expand description
§fd_pread()
Read from the file at the given offset without updating the file cursor. This acts like a stateless version of Seek + Read Inputs:
Fd fd
The file descriptor to read the data with- `const __wasi_iovec_t* iovs’ Vectors where the data will be stored
size_t iovs_len
The number of vectors to store the data intoFilesize offset
The file cursor to use: the starting position from which data will be read Output:size_t nread
The number of bytes read