$allocate static method

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

Implementation

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