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 fdFile descriptor from which directory data will be readvoid *bufBuffer where directory entries are storedu32 buf_lenLength of data inbufDircookie cookieWhere the directory reading should start from Output:u32 *bufusedThe Number of bytes stored inbuf; if less thanbuf_lenthen entire directory has been read