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 readvoid *buf
Buffer where directory entries are storedu32 buf_len
Length of data inbuf
Dircookie cookie
Where the directory reading should start from Output:u32 *bufused
The Number of bytes stored inbuf
; if less thanbuf_len
then entire directory has been read