write method
Writes an byte array from mapped physical memory, starting at the specified byte offset, relative to the base address the MMIO handle was opened with.
Implementation
void write(int offset, List<int> data) {
var buf = malloc<Uint8>(data.length);
try {
for (var i = 0; i < data.length; ++i) {
buf[i] = data[i];
}
_checkError(_nativeMMIOwriteBuf(_mmioHandle, offset, buf, data.length));
} finally {
malloc.free(buf);
}
}