type property
WasmTableExternType
get
type
The declared type of the table.
Implementation
WasmTableExternType get type => scoped((arena) {
final native = c.wasmtime_table_type(store.context, _native(arena));
try {
final limits = c.wasm_tabletype_limits(native).ref;
return WasmTableExternType(
element: WasmValueKind.fromWasmKind(
c.wasm_valtype_kind(c.wasm_tabletype_element(native)),
),
limits: Limits(
limits.min,
limits.max == c.wasm_limits_max_default ? null : limits.max,
),
);
} finally {
c.wasm_tabletype_delete(native);
}
});