class MMapFile Provides efficient file I/O by mapping a file into a process address space and copying bytes between the system supplied memory and user buffers
| | cleanup () perform cleanup after error |
Provides efficient file I/O by mapping a file into a process address space and copying bytes between the system supplied memory and user buffers. (The overhead for memcpy() is small compared to the cost of the read()/write() calls we avoid.)
~MMapFile()
int err()
ssize_t read(void *buf, size_t nbyte)
ssize_t write(const void *buf, size_t nbyte)
off_t lseek(off_t offset, int whence)
void cleanup()
int errno_
int fd_
off_t offset_
caddr_t mapAddr_
caddr_t curAddr_
size_t mapSize_
size_t fileSize_
size_t actualSize_
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de