Module wasmer_wasix::macros
source ยท Expand description
Macros to simplify some common WASI-specific tasks.
Macrosยง
- get_input_str ๐Reads a string from Wasm memory.
- get_input_str_bus ๐
- get_input_str_bus_ok ๐
- get_input_str_ok ๐
- wasi_try ๐Like the
try!
macro or?
syntax: returns the value if the computation succeeded or returns the error value. - wasi_try_mem ๐Like
wasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_try_mem_ok ๐Like
wasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_try_mem_ok_ok ๐Like
wasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_try_ok ๐Like the
try!
macro or?
syntax: returns the value if the computation succeeded or returns the error value. Results are wrapped in an Ok - wasi_try_ok_ok ๐