|
Wasmtime
|
Type information about a WebAssembly value. More...
#include <_val_class.hh>
Data Structures | |
| class | ListRef |
Non-owning reference to a list of ValType instances. Must not be used after the original owner is deleted. More... | |
| class | Ref |
Non-owning reference to a ValType, must not be used after the original ValType is deleted. More... | |
Public Member Functions | |
| ValType (Ref other) | |
Copies a Ref to a new owned value. | |
| ValType (const ValType &other) | |
| Copies one type to a new one. | |
| ValType & | operator= (const ValType &other) |
| Copies the contents of another type into this one. | |
| ValType (ValType &&other) | |
| Moves the memory owned by another value type into this one. | |
| ValType & | operator= (ValType &&other) |
| Moves the memory owned by another value type into this one. | |
| ValType (const Engine &engine, const RefType &ref_type) | |
| Convenience constructor for reference types. | |
| Ref * | operator-> () |
Returns the underlying Ref, a non-owning reference pointing to this instance. | |
| Ref * | operator* () |
Returns the underlying Ref, a non-owning reference pointing to this instance. | |
| bool | operator== (const Ref &other) const |
| Equality operator, compares the underlying types for equality. | |
| bool | operator== (const ValType &other) const |
| Equality operator, compares the underlying types for equality. | |
| const wasmtime_valtype_t * | wasmtime_capi () const |
| Returns the underlying C API representation of this type. | |
| const wasm_valtype_t * | capi () const |
| Returns the underlying C API representation of this type. | |
| bool | is_i32 () const |
Returns if this is the i32 wasm type. | |
| bool | is_i64 () const |
Returns if this is the i64 wasm type. | |
| bool | is_f32 () const |
Returns if this is the f32 wasm type. | |
| bool | is_f64 () const |
Returns if this is the f64 wasm type. | |
| bool | is_v128 () const |
Returns if this is the v128 wasm type. | |
| const RefType * | as_ref () const |
| Returns if this is a reference type. | |
Static Public Member Functions | |
| static ValType | i32 () |
Convenience constructor for the i32 value type. | |
| static ValType | i64 () |
Convenience constructor for the i64 value type. | |
| static ValType | f32 () |
Convenience constructor for the f32 value type. | |
| static ValType | f64 () |
Convenience constructor for the f64 value type. | |
| static ValType | v128 () |
Convenience constructor for the v128 value type. | |
| static ValType | funcref () |
Convenience constructor for the funcref value type. | |
| static ValType | externref () |
Convenience constructor for the externref value type. | |
| static ValType | anyref () |
Convenience constructor for the anyref value type. | |
| static ValType | exnref () |
Convenience constructor for the exnref value type. | |
Friends | |
| class | TableType |
| class | GlobalType |
| class | FuncType |
Type information about a WebAssembly value.
Currently mostly just contains the ValKind.