FX::FXMemMap Class Reference

#include <FXMemMap.h>

List of all members.


Detailed Description

A Memory Map provides a view of a file as an array of memory; this allows the file itself to be used as backing for the data and very simplified file access results. Moreover, mapped files may be shared by processes, resuling in far less "real" memory being used than would otherwise be the case.

Definition at line 40 of file FXMemMap.h.

Public Types

 NONE
 READ
 WRITE
 EXEC
 TRUNC
 PRIV
 SHAR
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 ()


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:35:01 2009 for TnFOX by doxygen v1.4.7