PLearn 0.1
Namespaces | Typedefs | Functions | Variables
MemoryMap.h File Reference
#include <cstdlib>
#include <sys/stat.h>
Include dependency graph for MemoryMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Typedefs

typedef int PLearn::tFileHandle

Functions

void * PLearn::MemoryMap (const char *filename, tFileHandle &handle, bool read_only, off_t &filesize)
 returns a pointer to the memory-mapped file or 0 if it fails for some reason.
void PLearn::memoryUnmap (void *data, tFileHandle handle, int length)

Variables

const int PLearn::STORAGE_UNUSED_HANDLE = -1

Detailed Description

Definition in file MemoryMap.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines