Wasmtime
types/arrayref.h
Go to the documentation of this file.
1
7#ifndef WASMTIME_TYPES_ARRAYREF_H
8#define WASMTIME_TYPES_ARRAYREF_H
9
10#include <wasm.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
25typedef struct wasmtime_array_type wasmtime_array_type_t;
26
35WASM_API_EXTERN wasmtime_array_type_t *
37 const wasmtime_field_type_t *field);
38
42WASM_API_EXTERN wasmtime_array_type_t *
44
49
51WASM_API_EXTERN void
54
55#ifdef __cplusplus
56} // extern "C"
57#endif
58
59#endif // WASMTIME_TYPES_ARRAYREF_H
Compilation environment and configuration.
Describes the type and mutability of a struct field or array element.
Definition: types/structref.h:56
WASM_API_EXTERN void wasmtime_array_type_delete(wasmtime_array_type_t *ty)
Delete an array type.
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.
struct wasmtime_array_type wasmtime_array_type_t
An opaque handle to a WebAssembly array type definition.
Definition: types/arrayref.h:25
WASM_API_EXTERN wasmtime_array_type_t * wasmtime_array_type_copy(const wasmtime_array_type_t *ty)
Clone an array type.