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