$allocate static method

Pointer<wasmtime_component_valmap_t> $allocate(
  1. Allocator $allocator, {
  2. required int size,
  3. required Pointer<wasmtime_component_valmap_entry> data,
})

Implementation

static ffi.Pointer<wasmtime_component_valmap> $allocate(
  ffi.Allocator $allocator, {
  required int size,
  required ffi.Pointer<wasmtime_component_valmap_entry> data,
}) => $allocator<wasmtime_component_valmap>()
  ..ref.size = size
  ..ref.data = data;