Logo Search packages:      
Sourcecode: akode version File versions  Download package

aKode::MMapFile Class Reference

#include <mmapfile.h>

Inheritance diagram for aKode::MMapFile:


List of all members.

Detailed Description

An implementation of the File interface that uses mmap.

MMapFile uses the mmap system-call for file-access. This is often faster than ordinary file-access. In return MMapFile does not provide writing capabilities.

Definition at line 35 of file mmapfile.h.

Public Member Functions

void close ()
bool eof () const
bool error () const
void fadvise ()
long length () const
 MMapFile (const char *filename)
bool openRO ()
virtual bool openRW ()
virtual bool openWO ()
long position () const
long read (char *ptr, long num)
bool readable () const
bool seek (long to, int whence=SEEK_SET)
bool seekable () const
long write (const char *, long)
bool writeable () const

Public Attributes

const char * filename

Private Attributes

int fd
void * handle
long len
long pos

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index