WASIComponentVersionedHost class final

Versioned component-host facade for WASI Preview2/Preview3 adapters.

It separates version profile checks from host capability checks so P2/P3 adapters can report whether a canonical definition is outside the selected WASI version surface or inside the version surface but not implemented by the current host yet.

Constructors

WASIComponentVersionedHost({required WASIVersion version, WASIComponentHost? componentHost})
Creates a versioned host facade for version.

Properties

componentHost WASIComponentHost
Shared component host.
final
hashCode int
The hash code for this object.
no setterinherited
profile WASIComponentVersionProfile
Version profile enforced by this facade.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bindAdapters(WasmComponent component, {bool validate = true, Map<int, WASIComponentCanonicalAdapterCallback> coreFunctions = const <int, WASIComponentCanonicalAdapterCallback>{}, Map<int, WASIComponentCanonicalAdapterCallback> componentFunctions = const <int, WASIComponentCanonicalAdapterCallback>{}}) WASIComponentCanonicalAdapterProgram
Prepares and binds canonical lift/lower adapter operations.
bindComponent(WasmComponent component, {bool validate = true, Map<int, WASIComponentCanonicalAdapterCallback> coreFunctions = const <int, WASIComponentCanonicalAdapterCallback>{}, Map<int, WASIComponentCanonicalAdapterCallback> componentFunctions = const <int, WASIComponentCanonicalAdapterCallback>{}, String resourceName(WASIComponentResourceBinding binding)?, void onResourceDrop(WASIComponentResourceBinding binding, Object resource)?, String asyncValueName(WASIComponentAsyncValueBinding binding)?, int? maxBufferedElementsForStream(WASIComponentAsyncValueBinding binding)?, void onAsyncValueDrop(WASIComponentAsyncValueBinding binding)?}) WASIComponentHostBinding
Prepares and binds component.
bindWitWorld(WASIComponentWitDocument document, {String? worldName, Map<String, WASIComponentWitAdapterCallback> imports = const <String, WASIComponentWitAdapterCallback>{}, Map<String, WASIComponentWitAdapterCallback> exports = const <String, WASIComponentWitAdapterCallback>{}}) WASIComponentWitAdapterProgram
Prepares and binds a WIT world through this version profile.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareComponent(WasmComponent component, {bool validate = true}) WASIComponentVersionedBindingPlan
Prepares component against the selected WASI version and host support.
prepareWitWorld(WASIComponentWitDocument document, {String? worldName}) WASIComponentVersionedWitWorldPlan
Prepares a WIT world against this WASI version profile.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited