wasmtime_val class final
\typedef wasmtime_val_t \brief Convenience alias for #wasmtime_val_t
\union wasmtime_val \brief Container for different kinds of wasm values.
Note that this structure may contain an owned value, namely rooted GC references, depending on the context in which this is used. APIs which consume a #wasmtime_val_t do not take ownership, but APIs that return #wasmtime_val_t require that #wasmtime_val_unroot is called to clean up any possible GC roots in the value.
If you do not unroot the value, even if you free the corresponding Store, there will be some memory leaked, because GC roots use a separate allocation to track liveness.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- kind ↔ int
-
Discriminant of which field of #of is valid.
getter/setter pair
- of ↔ wasmtime_valunion_t
-
Container for the extern item's value.
getter/setter pair
- 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