Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csMemoryMappedIO Class Reference

Defines a simple memory-mapped IO class that is portable. Requires that data be organized in fixed block sizes. More...

#include <mmapio.h>

List of all members.

Public Methods

 csMemoryMappedIO (unsigned _block_size, char *filename)
 Block size is the size of blocks that you want to get from the file, filename is the name of the file to map. More...

 ~csMemoryMappedIO ()
 Destroys the mmapio object, closes open files, and releases memory.

void* GetPointer (unsigned int index)
 This pointer will only be valid for a little while. More...


Detailed Description

Defines a simple memory-mapped IO class that is portable. Requires that data be organized in fixed block sizes.


Constructor & Destructor Documentation

csMemoryMappedIO::csMemoryMappedIO ( unsigned _block_size,
char * filename )
 

Block size is the size of blocks that you want to get from the file, filename is the name of the file to map.

Indexes will be resolved to absolute_index=index*block_size


Member Function Documentation

void * csMemoryMappedIO::GetPointer ( unsigned int index ) [inline]
 

This pointer will only be valid for a little while.

Read, at least until the next call to GetPointer. NEVER EVER EVER SAVE THIS POINTER. You must recall this pointer when you want access to the data again.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000