|
Wasmtime
|
Class representing an instantiated WebAssembly component. More...
#include <func.hh>
Public Member Functions | |
| Func (const wasmtime_component_func_t &func) | |
| Constructs an Func from the underlying C API struct. | |
| const wasmtime_component_func_t * | capi () const |
| Returns the underlying C API pointer. | |
| Result< std::monostate > | call (Store::Context cx, Span< const Val > args, Span< Val > results) const |
Invokes this component function with the provided args and the results are placed in results. | |
| Result< std::monostate > | post_return (Store::Context cx) const |
Invokes the post-return canonical ABI option, if specified. | |
Class representing an instantiated WebAssembly component.