pub fn fd_read<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
fd: Fd,
iovs: WasmPtr<__wasi_iovec_t<M>, M>,
iovs_len: M::Offset,
nread: WasmPtr<M::Offset, M>,
) -> Result<Errno, WasiError>
Expand description
§fd_read()
Read data from file descriptor Inputs:
Fd fd
File descriptor from which data will be readconst __wasi_iovec_t *iovs
Vectors where data will be storedu32 iovs_len
Length of data iniovs
Output:u32 *nread
Number of bytes read