Array<T extends NativeType> constructor
- int length,
- List<
int> getView(- Pointer<
T> ptr, - int length
- Pointer<
getView
returns the associated typed list of the Pointer
pointing to the array.
Implementation
Array(int length, List<int> Function(Pointer<T> ptr, int length) getView)
: ptr = allocate<T>(count: length) {
_view = getView(ptr, length);
}