readCountOr method
Like readCount, but returns fallback (or an empty list if it is
null) when the struct pointer p is null.
Implementation
List<E> readCountOr(MemoryPointer? p, int count, [List<E>? fallback]) {
if (p == null) return fallback ?? [];
return readCount(p, count, fallback);
}