$allocate static method

Pointer<CodeResults> $allocate(
  1. Allocator $allocator, {
  2. required int count,
  3. required Pointer<CodeResult> results,
  4. required int duration,
})

Implementation

static ffi.Pointer<CodeResults> $allocate(
  ffi.Allocator $allocator, {
  required int count,
  required ffi.Pointer<CodeResult> results,
  required int duration,
}) => $allocator<CodeResults>()
  ..ref.count = count
  ..ref.results = results
  ..ref.duration = duration;