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>,
) -> Result<Errno, WasiError>
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