Wasmtime
wasmtime_valunion Union Reference

Container for different kinds of wasm values. More...

#include <val.h>

Data Fields

int32_t i32
 Field used if wasmtime_val_t::kind is WASMTIME_I32.
 
int64_t i64
 Field used if wasmtime_val_t::kind is WASMTIME_I64.
 
float32_t f32
 Field used if wasmtime_val_t::kind is WASMTIME_F32.
 
float64_t f64
 Field used if wasmtime_val_t::kind is WASMTIME_F64.
 
wasmtime_anyref_t anyref
 Field used if wasmtime_val_t::kind is WASMTIME_ANYREF.
 
wasmtime_externref_t externref
 Field used if wasmtime_val_t::kind is WASMTIME_EXTERNREF.
 
wasmtime_func_t funcref
 
wasmtime_v128 v128
 Field used if wasmtime_val_t::kind is WASMTIME_V128.
 

Detailed Description

Container for different kinds of wasm values.

This type is contained in wasmtime_val_t and contains the payload for the various kinds of items a value can be.

Field Documentation

◆ funcref

wasmtime_func_t wasmtime_valunion::funcref

Field used if wasmtime_val_t::kind is WASMTIME_FUNCREF

Use wasmtime_funcref_is_null to test whether this is a null function reference.


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