wasmtime_externref class final
\typedef wasmtime_externref_t \brief Convenience alias for #wasmtime_externref
\struct wasmtime_externref \brief A host-defined un-forgeable reference to pass into WebAssembly.
This structure represents an externref that can be passed to WebAssembly.
It cannot be forged by WebAssembly itself and is guaranteed to have been
created by the host.
This structure is similar to #wasmtime_anyref_t but represents the
externref type in WebAssembly. This can be created on the host from
arbitrary host pointers/destructors. Note that this value is itself a
reference into a #wasmtime_context_t and must be explicitly unrooted to
enable garbage collection.
Note that null is represented with this structure and created with
wasmtime_externref_set_null. Null can be tested for with the
wasmtime_externref_is_null function.
- 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
- privateData1 ↔ int
-
Internal to Wasmtime.
getter/setter pair
- privateData2 ↔ int
-
Internal to Wasmtime.
getter/setter pair
-
privateData3
↔ Pointer<
Void> -
Internal to Wasmtime.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store_id ↔ int
-
Internal metadata tracking within the store, embedders should not
configure or modify these fields.
getter/setter pair
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