5#ifndef WASMTIME_TYPES_ARRAYREF_HH
6#define WASMTIME_TYPES_ARRAYREF_HH
20#define wasmtime_array_type_clone wasmtime_array_type_copy
21 WASMTIME_CLONE_WRAPPER(ArrayType, wasmtime_array_type)
22#undef wasmtime_array_type_clone
25 ArrayType(
const Engine &engine,
const FieldType &field)
28 FieldType element_type()
const {
Owned handle to a WebAssembly array type definition.
Definition: types/arrayref.hh:18
Describes the type and mutability of a struct field or array element.
Definition: types/structref.h:56
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.
WASM_API_EXTERN void wasmtime_array_type_element(const wasmtime_array_type_t *ty, wasmtime_field_type_t *out)
Get the element type of an array type.