#include <dsMmap.h>
Inheritance diagram for dsMmap:
Public Methods | |
dsMmap (const char *fname, const mode_t openmode=0444, const int advize=MADV_NORMAL) | |
dsMmap (const int fd, const size_t size, const mode_t openmode=0444, const int advize=MADV_NORMAL) | |
dsMmap () | |
virtual | ~dsMmap () |
int | fd () |
char | operator[] (int i) |
void | operator+= (int i) |
operator char * () | |
operator size_t () | |
char * | ptr () |
size_t | size () |
Protected Methods | |
int | getPageSize () |
virtual void | mapCreate (const int fd, const size_t size, const mode_t openmode=0444, const int advize=MADV_NORMAL) |
virtual void | mapDestroy (bool close_fd=false) |
virtual void | mapResize (size_t new_size) |
virtual void | fileResize (size_t new_size) |
Protected Attributes | |
int | _fd |
char * | _filename |
mode_t | _mode |
size_t | _pagesize |
size_t | _pages |
char * | _ptr |
size_t | _size |
int | _advize |
bool | _close_fd |
Friends | |
class | dsMmapStreambuf |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dsMmapAnon. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|