FillRaw method

Pointer<Pointer<T>> FillRaw(
  1. int count,
  2. Pointer<T> init(
    1. int
    ), {
  3. String? key,
})

Fills a tracked slot of count pointers by calling init(i) for each index.

Implementation

Pointer<Pointer<T>> FillRaw(int count, Pointer<T> Function(int) init, {String? key}) {
  final pp = At(_slotKey(key), count);
  for (int i = 0; i < count; i++) pp[i] = init(i);
  return pp;
}