Function wasmer_wasix::syscalls::wasi::fd_read::fd_read

source ·
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 read
  • const __wasi_iovec_t *iovs Vectors where data will be stored
  • u32 iovs_len Length of data in iovs Output:
  • u32 *nread Number of bytes read