Optionaloptions: WASIDriveFileSystemProviderOptionsClose the descriptor.
Update the descriptor's file-descriptor flags (APPEND / NONBLOCK / …).
Return the preopen's directory name for fd (e.g. ".").
Return the preopen description for fd, or null if not a preopen.
Read into the provided buffer list; returns total bytes read.
Read directory entries. Returns up to the entries starting from cookie.
The runtime is responsible for truncating to the guest's buffer size.
Seek; returns the new absolute offset.
Write the provided buffer list; returns total bytes written.
Create a directory at path relative to fdDir.
Open a path relative to the directory fdDir. Returns the new fd.
oflags / fdflags mirror preview1 semantics.
Remove an (empty) directory at path relative to fdDir.
Rename oldPath under oldFdDir to newPath under newFdDir.
Remove a file at path relative to fdDir.
Ergonomic filesystem provider that delegates to the existing in-memory
WASIDrive. Hosts construct one with aWASIFS(or an existing drive) and pass it asWASIXContext.fs.