$allocate static method

Pointer<Base> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Game> game,
  3. required int n_games,
  4. required int size,
})

Implementation

static ffi.Pointer<Base> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<Game> game,
required int n_games,
required int size,
}) => $allocator<Base>()
..ref.game = game
..ref.n_games = n_games
..ref.size = size;