$allocate static method

Pointer<wasmtime_stack_memory_t> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Void> env,
  3. required wasmtime_stack_memory_get_callback_t get_stack_memory,
  4. required Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer,
})

Implementation

static ffi.Pointer<wasmtime_stack_memory_t> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<ffi.Void> env,
  required wasmtime_stack_memory_get_callback_t get_stack_memory,
  required ffi.Pointer<
    ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>
  >
  finalizer,
}) => $allocator<wasmtime_stack_memory_t>()
  ..ref.env = env
  ..ref.get_stack_memory = get_stack_memory
  ..ref.finalizer = finalizer;