Converts a List<X> of Dart struct wrappers into an allocated Pointer<T> array.
List<X>
Pointer<T>
Pointer<T> Function(List<X> array) rawArrayFunc;