1#ifndef WASMTIME_STRUCTREF_CLASS_HH
2#define WASMTIME_STRUCTREF_CLASS_HH
6#ifdef WASMTIME_FEATURE_GC
8#include <wasmtime/_anyref_class.hh>
9#include <wasmtime/_eqref_class.hh>
10#include <wasmtime/_store_class.hh>
11#include <wasmtime/helpers.hh>
26 WASMTIME_OWN_WRAPPER(
StructRefPre, wasmtime_struct_ref_pre)
45 const std::vector<Val> &fields);
52 const Val &value)
const;
58 EqRef to_eqref()
const;
Representation of a WebAssembly anyref value.
Definition: _anyref_class.hh:23
Representation of a WebAssembly eqref value.
Definition: _eqref_class.hh:29
Fallible result type used for Wasmtime.
Definition: error.hh:70
An interior pointer into a Store.
Definition: _store_class.hh:65
const wasmtime_context_t * capi() const
Returns the underlying C API pointer.
Definition: _store_class.hh:183
Pre-allocated struct layout for fast allocation of struct instances.
Definition: _structref_class.hh:25
Representation of a WebAssembly structref value.
Definition: _structref_class.hh:40
Owned handle to a WebAssembly struct type definition.
Definition: types/_structref_class.hh:144
Representation of a generic WebAssembly value.
Definition: _val_class.hh:54
Build-time defines for how the C API was built.
WASM_API_EXTERN wasmtime_struct_ref_pre_t * wasmtime_struct_ref_pre_new(wasmtime_context_t *context, const wasmtime_struct_type_t *ty)
Create a new struct pre-allocator.
WASM_API_EXTERN wasmtime_struct_type_t * wasmtime_structref_type(wasmtime_context_t *context, const wasmtime_structref_t *structref)
Returns the type of the specified structref.
A WebAssembly structref value.
Definition: val.h:187