type property
WasmMemoryExternType
get
type
The declared limits of the memory.
Implementation
WasmMemoryExternType get type => scoped((arena) {
final native = c.wasmtime_memory_type(store.context, _native(arena));
try {
final limits = c.wasm_memorytype_limits(native).ref;
return WasmMemoryExternType(
limits: Limits(
limits.min,
limits.max == c.wasm_limits_max_default ? null : limits.max,
),
);
} finally {
c.wasm_memorytype_delete(native);
}
});