Wasmtime
wasmtime::component::Func Class Reference

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_tcapi () 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.
 

Detailed Description

Class representing an instantiated WebAssembly component.


The documentation for this class was generated from the following file: