$allocate static method

Pointer<wasmtime_stack_creator_t> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Void> env,
  3. required wasmtime_new_stack_memory_callback_t new_stack,
  4. required Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer,
})

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;