Wasmtime
wasmtime_func Struct Reference

Representation of a function in Wasmtime. More...

#include <extern.h>

Data Fields

uint64_t store_id
 
size_t __private
 Private field for Wasmtime, undefined if store_id is zero.
 

Detailed Description

Representation of a function in Wasmtime.

Functions in Wasmtime are represented as an index into a store and don't have any data or destructor associated with the wasmtime_func_t value. Functions cannot interoperate between wasmtime_store_t instances and if the wrong function is passed to the wrong store then it may trigger an assertion to abort the process.

Field Documentation

◆ store_id

uint64_t wasmtime_func::store_id

Internal identifier of what store this belongs to.

This field may be zero when used in conjunction with wasmtime_val_t to represent a null funcref value in WebAssembly. For a valid function this field is otherwise never zero.


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