Wasmtime
types/arrayref.h File Reference
#include <wasmtime/conf.h>
#include <wasm.h>
#include <wasmtime/types/structref.h>

Go to the source code of this file.

Typedefs

typedef struct wasmtime_array_type wasmtime_array_type_t
 An opaque handle to a WebAssembly array type definition. More...
 

Functions

WASM_API_EXTERN wasmtime_array_type_twasmtime_array_type_new (const wasm_engine_t *engine, const wasmtime_field_type_t *field)
 Create a new array type. More...
 
WASM_API_EXTERN void wasmtime_array_type_delete (wasmtime_array_type_t *ty)
 Delete an array type.
 

Detailed Description

APIs for interacting with WebAssembly GC structref type in Wasmtime.

Typedef Documentation

◆ wasmtime_array_type_t

typedef struct wasmtime_array_type wasmtime_array_type_t

An opaque handle to a WebAssembly array type definition.

An array type describes the element type of an array. It is used to create a wasmtime_array_ref_pre_t, which can then allocate array instances.

Owned. Must be deleted with wasmtime_array_type_delete.

Function Documentation

◆ wasmtime_array_type_new()

WASM_API_EXTERN wasmtime_array_type_t * wasmtime_array_type_new ( const wasm_engine_t engine,
const wasmtime_field_type_t field 
)

Create a new array type.

Parameters
engineThe engine to register the type with.
fieldThe element type descriptor.
Returns
Returns a new array type.