toUint64ArrayPointer method
Creates an unsigned long long
array from this list by copying
the list's data, and returns a pointer to it.
nullptr
is returned if the list is empty.
Implementation
Pointer<Uint64> toUint64ArrayPointer({required Allocator allocator}) {
if (isEmpty) {
return nullptr;
}
final Pointer<Uint64> ptr = allocator(sizeOf<Uint64>() * length);
for (int i = 0; i < length; i++) {
ptr[i] = this[i];
}
return ptr;
}