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 thetry!
macro or?
syntax: returns the value if the computation succeeded or returns the error value. - wasi_
try_ ๐dl - wasi_
try_ ๐mem Likewasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_
try_ ๐mem_ ok Likewasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_
try_ ๐mem_ ok_ ok Likewasi_try
but converts aMemoryAccessError
to awasi::Errno
. - wasi_
try_ ๐ok Like thetry!
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