Use the mmioRead and mmioWrite functions to read and write to files opened by mmioOpen. Use the pch parameter to specify the buffer to read to (mmioRead) or the buffer to write from (mmioWrite). Use the cch parameter to specify the number of bytes to read to or write from pch to the file. (The read and write operations are not limited to 64KB.)
The following example shows how to read 20 bytes from a file.
mmioRead(hmmio, achBuffer, 20)
The following example shows how to write 20 bytes to a file.
mmioWrite(hmmio, achBuffer, 20)
Note: Where translation (MMIO_TRANSLATEDATA) is enabled, the translation takes place during the read and write operation.