Converts a flat List<X> into an allocated Pointer<T> array.
List<X>
Pointer<T>
The caller is responsible for the lifetime of the inner pointers.
Pointer<T> Function(List<X> array) rawArrayFunc;