|
Wasmtime
|
#include <wasm.h>#include <wasmtime/types/arrayref.h>#include <wasmtime/types/exnref.h>#include <wasmtime/types/structref.h>Go to the source code of this file.
Data Structures | |
| union | wasmtime_heaptype_union |
Payload of the wasmtime_heaptype_t union. More... | |
| struct | wasmtime_heaptype |
| A WebAssembly heap type. More... | |
| struct | wasmtime_reftype |
| A WebAssembly reference type. More... | |
| struct | wasmtime_valtype |
| A WebAssembly value type. More... | |
Typedefs | |
| typedef uint8_t | wasmtime_heaptype_kind_t |
Discriminant located in wasmtime_heaptype_t.kind | |
| typedef union wasmtime_heaptype_union | wasmtime_heaptype_union_t |
Payload of the wasmtime_heaptype_t union. | |
| typedef struct wasmtime_heaptype | wasmtime_heaptype_t |
| A WebAssembly heap type. | |
| typedef struct wasmtime_reftype | wasmtime_reftype_t |
| A WebAssembly reference type. | |
| typedef uint8_t | wasmtime_valtype_kind_t |
Discriminant located in wasmtime_valtype_t.kind | |
| typedef struct wasmtime_valtype | wasmtime_valtype_t |
| A WebAssembly value type. More... | |
Functions | |
| WASM_API_EXTERN wasm_valtype_t * | wasmtime_wasm_valtype_v128 (void) |
Returns a new value type representing the wasm v128 type. | |
| WASM_API_EXTERN bool | wasmtime_wasm_valtype_equal (const wasm_valtype_t *a, const wasm_valtype_t *b) |
Returns whether a is logically equal to b. | |
| WASM_API_EXTERN void | wasmtime_heaptype_clone (const wasmtime_heaptype_t *ty, wasmtime_heaptype_t *out) |
Clones ty into out. | |
| WASM_API_EXTERN void | wasmtime_heaptype_delete (wasmtime_heaptype_t *ty) |
Deletes any payload of ty, if applicable. More... | |
| WASM_API_EXTERN void | wasmtime_reftype_clone (const wasmtime_reftype_t *ty, wasmtime_reftype_t *out) |
Clones ty into out. | |
| WASM_API_EXTERN void | wasmtime_reftype_delete (wasmtime_reftype_t *ty) |
Deletes any payload of ty, if applicable. More... | |
| WASM_API_EXTERN void | wasmtime_valtype_new (const wasm_valtype_t *ty, wasmtime_valtype_t *out) |
Creates a new type in out from the type in ty. | |
| WASM_API_EXTERN void | wasmtime_valtype_clone (const wasmtime_valtype_t *ty, wasmtime_valtype_t *out) |
Clones ty into out. | |
| WASM_API_EXTERN void | wasmtime_valtype_delete (wasmtime_valtype_t *ty) |
Deletes any payload of ty, if applicable. More... | |
| WASM_API_EXTERN wasm_valtype_t * | wasmtime_valtype_to_wasm (const wasm_engine_t *engine, const wasmtime_valtype_t *ty) |
Converts ty into a wasm_valtype_t and returns a pointer to it. More... | |
Wasmtime-specific extensions for wasm_valtype_t and structures for working with the full breadth of value types in the wasm type system.
| typedef struct wasmtime_valtype wasmtime_valtype_t |
A WebAssembly value type.
Note that this is a parallel representation to wasm_valtype_t which is intended to support the entire breadth of WebAssembly that wasmtime supports.
| WASM_API_EXTERN void wasmtime_heaptype_delete | ( | wasmtime_heaptype_t * | ty | ) |
Deletes any payload of ty, if applicable.
Only necessary to call for concrete types.
| WASM_API_EXTERN void wasmtime_reftype_delete | ( | wasmtime_reftype_t * | ty | ) |
Deletes any payload of ty, if applicable.
Only necessary if ty->heaptype is concrete.
| WASM_API_EXTERN void wasmtime_valtype_delete | ( | wasmtime_valtype_t * | ty | ) |
Deletes any payload of ty, if applicable.
Only necessary when ty is a concrete reference type.
| WASM_API_EXTERN wasm_valtype_t * wasmtime_valtype_to_wasm | ( | const wasm_engine_t * | engine, |
| const wasmtime_valtype_t * | ty | ||
| ) |
Converts ty into a wasm_valtype_t and returns a pointer to it.
The caller must deallocate the returned value.