wasmtime_memory_creator class final

A representation of custom memory creator and methods for an instance of LinearMemory.

For more information see the Rust documentation at https://docs.wasmtime.dev/api/wasmtime/trait.MemoryCreator.html

Inheritance
Implemented types
Available extensions

Constructors

wasmtime_memory_creator()

Properties

address → Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
env ↔ Pointer<Void>
User provided value to be passed to new_memory
getter/setter pair
finalizer ↔ Pointer<NativeFunction<Void Function(Pointer<Void>)>>
An optional finalizer for env.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
new_memory ↔ wasmtime_new_memory_callback_t
The callback to create new memory, must be thread safe
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

Static Methods

$allocate(Allocator $allocator, {required Pointer<Void> env, required wasmtime_new_memory_callback_t new_memory, required Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer}) → Pointer<wasmtime_memory_creator_t>