RawArrayPopulated method

PP RawArrayPopulated(
  1. List<List<X>> arrays
)

Allocates an unslotted pointer-of-pointers from a list of struct arrays.

The caller is responsible for freeing the returned pointer.

Implementation

PP RawArrayPopulated(List<List<X>> arrays) {
  final p = Raw(arrays.length);
  for (int i = 0; i < arrays.length; i++) indexSetterFunc(p, i, rawArrayFunc(arrays[i]));
  return p;
}