$allocate static method

Pointer<XBoardStats> $allocate(
  1. Allocator $allocator, {
  2. required int time,
  3. required int n_nodes,
  4. required int n_games,
})

Implementation

static ffi.Pointer<XBoardStats> $allocate(
ffi.Allocator $allocator, {
required int time,
required int n_nodes,
required int n_games,
}) => $allocator<XBoardStats>()
..ref.time = time
..ref.n_nodes = n_nodes
..ref.n_games = n_games;