WASIPreview3ComponentHost class final

WASI 0.3 / Preview3 component host boundary.

This fixed-version wrapper keeps Preview3 adapter code on the async-aware component profile while host capability gaps remain explicitly reported.

Constructors

WASIPreview3ComponentHost({WASIComponentHost? componentHost, WASIPreview3CliHost? cliHost, WASIPreview3FilesystemHost? filesystemHost, List<String> args = const <String>[], Map<String, String> env = const <String, String>{}, String? initialCwd, List<int> stdinData = const <int>[], WASIPreview3CliOutputHandler? stdout, WASIPreview3CliOutputHandler? stderr})
Creates a Preview3 component host over componentHost or a new host.

Properties

cliHost WASIPreview3CliHost
CLI host state and captured stdio for standard wasi:cli imports.
no setter
componentHost WASIComponentHost
Shared component host.
no setter
filesystemHost WASIPreview3FilesystemHost
Filesystem host state for standard wasi:filesystem imports.
no setter
hashCode int
The hash code for this object.
no setterinherited
profile WASIComponentVersionProfile
Preview3 version profile.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
standardImports Map<String, WASIComponentWitAdapterCallback>
Standard Preview3 WIT import callbacks implemented by this host.
latefinal
versionedHost WASIComponentVersionedHost
Underlying versioned component-host facade.
final

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 Preview3 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 through the Preview3 profile.
bindWitWorld(WASIComponentWitDocument document, {String? worldName, Map<String, WASIComponentWitAdapterCallback> imports = const <String, WASIComponentWitAdapterCallback>{}, Map<String, WASIComponentWitAdapterCallback> exports = const <String, WASIComponentWitAdapterCallback>{}}) WASIComponentWitAdapterProgram
Prepares and binds a Preview3 WIT world.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareComponent(WasmComponent component, {bool validate = true}) WASIComponentVersionedBindingPlan
Prepares component for Preview3 component-host binding.
prepareWitWorld(WASIComponentWitDocument document, {String? worldName}) WASIComponentVersionedWitWorldPlan
Prepares a WIT world for Preview3 adapter binding.
toString() String
A string representation of this object.
inherited

Operators

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