writeOr method
Like write, but does nothing if p is null.
Always returns value, whether or not the write happened.
Implementation
E writeOr(MemoryPointer? p, E value) {
if (p != null) write(p, value);
return value;
}
Like write, but does nothing if p is null.
Always returns value, whether or not the write happened.
E writeOr(MemoryPointer? p, E value) {
if (p != null) write(p, value);
return value;
}