$allocate static method
Pointer<wasmtime_stack_creator_t>
$allocate(
- Allocator $allocator, {
- required Pointer<
Void> env, - required wasmtime_new_stack_memory_callback_t new_stack,
- required Pointer<
NativeFunction< finalizer,Void Function(Pointer< >Void> )>
Implementation
static ffi.Pointer<wasmtime_stack_creator_t> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Void> env,
required wasmtime_new_stack_memory_callback_t new_stack,
required ffi.Pointer<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>
>
finalizer,
}) => $allocator<wasmtime_stack_creator_t>()
..ref.env = env
..ref.new_stack = new_stack
..ref.finalizer = finalizer;