#include <FXMemMap.h>
Public Types | |
enum | { NONE, READ, WRITE, EXEC, TRUNC } |
enum | { PRIV, SHAR } |
Public Member Functions | |
FXMemMap () | |
void * | mapFile (const FXString &filename, long off=0, long len=-1L, FXuint access=READ, FXuint share=PRIV) |
void * | unmap () |
void | sync () |
void * | base () const |
long | length () const |
long | offset () const |
~FXMemMap () |
anonymous enum |
FX::FXMemMap::FXMemMap | ( | ) |
Construct a memory map.
FX::FXMemMap::~FXMemMap | ( | ) |
Destroy the map.
void* FX::FXMemMap::mapFile | ( | const FXString & | filename, | |
long | off = 0 , |
|||
long | len = -1L , |
|||
FXuint | access = READ , |
|||
FXuint | share = PRIV | |||
) |
Map a view of the file; the offset must be a multiple of the page size.
void* FX::FXMemMap::unmap | ( | ) |
Unmap the view of the file.
void FX::FXMemMap::sync | ( | ) |
Synchronize disk.
void* FX::FXMemMap::base | ( | ) | const [inline] |
Return pointer to memory area.
long FX::FXMemMap::length | ( | ) | const [inline] |
Obtain length of the map.
long FX::FXMemMap::offset | ( | ) | const [inline] |
Obtain offset of the map.