WASIComponentCanonicalAdapterFlatValuePlan class final

Prepared flat Canonical ABI scalar layout for an adapter value.

Constructors

WASIComponentCanonicalAdapterFlatValuePlan.asyncValue({required WASIComponentCanonicalAdapterFlatValueKind kind, required int? asyncTypeIndex})
Stream or future readable endpoint represented by a canonical u32.
const
WASIComponentCanonicalAdapterFlatValuePlan.composite({required WASIComponentCanonicalAdapterFlatValueKind kind, required List<WASIComponentCanonicalAdapterFlatFieldPlan> fields})
Composite scalar flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.enumeration({required List<String> labels})
Enum discriminant flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.errorContext()
Error-context handle represented by a canonical u32 scalar.
const
WASIComponentCanonicalAdapterFlatValuePlan.flags({required List<String> labels})
Flags bitset flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.list({required WASIComponentCanonicalAdapterFlatValuePlan? element, required WASIComponentCanonicalValueMemoryCodec? memoryCodec})
Dynamic list (ptr, len) flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.option({required WASIComponentCanonicalAdapterFlatValuePlan? element})
Option tag plus payload flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.primitive(WasmComponentPrimitiveValueType? primitive)
Primitive scalar flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.resource({required WASIComponentResourceHandleKind? handleKind, required int? resourceTypeIndex})
Resource handle represented by a canonical u32 scalar.
const
WASIComponentCanonicalAdapterFlatValuePlan.result({required WASIComponentCanonicalAdapterFlatValuePlan? ok, required WASIComponentCanonicalAdapterFlatValuePlan? error})
Result tag plus the maximum ok/error payload flat layout.
const
WASIComponentCanonicalAdapterFlatValuePlan.variant({required List<WASIComponentCanonicalAdapterFlatCasePlan> cases})
Variant tag plus the maximum case payload flat layout.
const

Properties

asyncTypeIndex → int?
Component type index used by stream or future endpoint layouts.
final
cases → List<WASIComponentCanonicalAdapterFlatCasePlan>
Case layouts used by variant layouts.
final
element → WASIComponentCanonicalAdapterFlatValuePlan?
Element layout used by dynamic list layouts.
final
error → WASIComponentCanonicalAdapterFlatValuePlan?
Error payload layout used by result layouts.
final
fields → List<WASIComponentCanonicalAdapterFlatFieldPlan>
Nested flat fields for composite layouts.
final
flatLength → int
Number of flat Canonical ABI scalar values represented by this layout.
no setter
flatTypes → List<WASIComponentCanonicalAdapterFlatType>
Core scalar types produced by Canonical ABI flattening.
no setter
handleKind → WASIComponentResourceHandleKind?
Resource ownership flavor used by resource handle layouts.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → WASIComponentCanonicalAdapterFlatValueKind
Flat layout kind.
final
labels → List<String>
Labels used by flags or enum layouts.
final
memoryCodec → WASIComponentCanonicalValueMemoryCodec?
Canonical memory codec needed by dynamic flat layouts.
final
ok → WASIComponentCanonicalAdapterFlatValuePlan?
Success payload layout used by result layouts.
final
primitive → WasmComponentPrimitiveValueType?
Primitive represented by this layout.
final
resourceTypeIndex → int?
Component resource type index used by resource handle layouts.
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