$allocate static method

Pointer<wasmtime_component_valresult_t> $allocate(
  1. Allocator $allocator, {
  2. required bool is_ok,
  3. required Pointer<wasmtime_component_val_t> val,
})

Implementation

static ffi.Pointer<wasmtime_component_valresult_t> $allocate(
  ffi.Allocator $allocator, {
  required bool is_ok,
  required ffi.Pointer<wasmtime_component_val> val,
}) => $allocator<wasmtime_component_valresult_t>()
  ..ref.is_ok = is_ok
  ..ref.val = val;