wasmtime_global class final

\brief Representation of a global in Wasmtime.

Globals in Wasmtime are represented as an index into a store and don't have any data or destructor associated with the #wasmtime_global_t value. Globals cannot interoperate between #wasmtime_store_t instances and if the wrong global is passed to the wrong store then it may trigger an assertion to abort the process.

Inheritance
Implemented types
Available extensions

Constructors

wasmtime_global()

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
Private field for Wasmtime.
getter/setter pair
privateData2 ↔ int
Private field for Wasmtime.
getter/setter pair
privateData3 ↔ int
Private field for Wasmtime.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store_id ↔ int
Internal identifier of what store this belongs to, never zero.
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

Static Methods

$allocate(Allocator $allocator, {required int store_id, required int privateData1, required int privateData2, required int privateData3}) → Pointer<wasmtime_global_t>