Create a WASI or WASIX state for the runtime.
Usage
wasmer_wasi_state_new_ext(ptr, module_name, env_type)
Arguments
- ptr
External pointer to WasmerRuntime.
- module_name
Name of the module (for WASI/WASIX args).
- env_type
Environment type: "wasi" (default) or "wasix".
Value
TRUE if successful, FALSE otherwise
Details
Create a WASI or WASIX state for the runtime
Examples
if (FALSE) { # \dontrun{
wasmer_wasi_state_new_ext(ptr, "mod1", "wasi")
} # }