Function wasmer_wasix::syscalls::wasi::fd_readdir::fd_readdir

source ·
pub fn fd_readdir<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    buf: WasmPtr<u8, M>,
    buf_len: M::Offset,
    cookie: Dircookie,
    bufused: WasmPtr<M::Offset, M>,
) -> Errno
Expand description

§fd_readdir()

Read data from directory specified by file descriptor Inputs:

  • Fd fd File descriptor from which directory data will be read
  • void *buf Buffer where directory entries are stored
  • u32 buf_len Length of data in buf
  • Dircookie cookie Where the directory reading should start from Output:
  • u32 *bufused The Number of bytes stored in buf; if less than buf_len then entire directory has been read