$allocate static method
Pointer<wasmtime_memory_creator_t>
$allocate(
- Allocator $allocator, {
- required Pointer<
Void> env, - required wasmtime_new_memory_callback_t new_memory,
- required Pointer<
NativeFunction< finalizer,Void Function(Pointer< >Void> )>
Implementation
static ffi.Pointer<wasmtime_memory_creator> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Void> env,
required wasmtime_new_memory_callback_t new_memory,
required ffi.Pointer<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>
>
finalizer,
}) => $allocator<wasmtime_memory_creator>()
..ref.env = env
..ref.new_memory = new_memory
..ref.finalizer = finalizer;