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_
dl_ ๐err - wasi_
try ๐ - Like the
try!
macro or?
syntax: returns the value if the computation succeeded or returns the error value. - wasi_
try_ ๐dl - 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