#include <dsMmap.h>
Inheritance diagram for dsMmapAnon:
Public Methods | |
dsMmapAnon () | |
dsMmapAnon (const size_t size, const int advize=MADV_NORMAL) | |
~dsMmapAnon () | |
void | mapCreate (const size_t size, const int advize=MADV_NORMAL) |
void | mapResize (size_t newsize) |
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 | 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 from dsMmap. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|