WASIComponentResourceUse class final

One resource handle occurrence in a canonical adapter signature.

Constructors

WASIComponentResourceUse({required int canonicalIndex, required WasmComponentCanonicalKind canonicalKind, required String path, required WASIComponentResourceHandleKind handleKind, required int resourceTypeIndex, required WASIComponentResourceBinding? binding})
Creates a decoded resource-use descriptor.
const

Properties

binding → WASIComponentResourceBinding?
Decoded resource binding, or null when the component is not valid enough to resolve the handle to a resource type.
final
canonicalIndex → int
Canonical definition index containing this handle.
final
canonicalKind → WasmComponentCanonicalKind
Canonical definition kind containing this handle.
final
handleKind → WASIComponentResourceHandleKind
Whether this is an owned or borrowed handle.
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
Stable debug path to the handle within the canonical adapter signature.
final
resourceTypeIndex → int
Component type index of the referenced resource type.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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