Directly Accessing a File I/O Buffer

Applications that are performance-sensitive can optimize file I/O performance by directly accessing the file I/O buffer. Exercise care if you choose to do this-by accessing the file I/O buffer directly, you bypass some of the safeguards and error checking provided by the MMIO Manager.

The MMIO functions shown in the following table allow you to support direct I/O buffer access on a file opened for buffered I/O.

┌──────────────────┬─────────────────────────────────────────────┐
│Function          │Description                                  │
├──────────────────┼─────────────────────────────────────────────┤
│mmioGetInfo       │Retrieves information on the file I/O buffer │
│                  │of a file opened for buffered I/O.           │
├──────────────────┼─────────────────────────────────────────────┤
│mmioAdvance       │Fills and empties the contents of an I/O     │
│                  │buffer of a file set up for direct I/O buffer│
│                  │access.                                      │
├──────────────────┼─────────────────────────────────────────────┤
│mmioSetInfo       │Changes information on the file I/O buffer of│
│                  │a file opened for buffered I/O.              │
└──────────────────┴─────────────────────────────────────────────┘

Note: After you call mmioGetInfo, do not call any MMIO functions other than mmioAdvance. You can begin calling MMIO functions again after you call the mmioSetInfo function.