$allocate static method
Pointer<wasmtime_linear_memory_t>
$allocate(
- Allocator $allocator, {
- required Pointer<
Void> env, - required wasmtime_memory_get_callback_t get_memory,
- required wasmtime_memory_grow_callback_t grow_memory,
- required Pointer<
NativeFunction< finalizer,Void Function(Pointer< >Void> )>
Implementation
static ffi.Pointer<wasmtime_linear_memory> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Void> env,
required wasmtime_memory_get_callback_t get_memory,
required wasmtime_memory_grow_callback_t grow_memory,
required ffi.Pointer<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>
>
finalizer,
}) => $allocator<wasmtime_linear_memory>()
..ref.env = env
..ref.get_memory = get_memory
..ref.grow_memory = grow_memory
..ref.finalizer = finalizer;