decMemoryFile Class Reference

Manages a memory file. More...

#include <decMemoryFile.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decMemoryFile (const char *filename)
 Creates a new memory file with the given path.
 ~decMemoryFile ()
 Cleans up the memory file.
Management
const char * GetFilename ()
 Retrieves the assigned file path.
int GetLength ()
 Retrieves the length of the data.
char * GetPointer () const
 Retrieves the pointer to the start of the file data.
void Resize (int newSize)
 Resizes the memory file data buffer.

Detailed Description

Manages a memory file.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decMemoryFile::decMemoryFile ( const char *  filename )

Creates a new memory file with the given path.

decMemoryFile::~decMemoryFile (  )

Cleans up the memory file.


Member Function Documentation

const char* decMemoryFile::GetFilename (  ) [inline]

Retrieves the assigned file path.

int decMemoryFile::GetLength (  ) [inline]

Retrieves the length of the data.

char* decMemoryFile::GetPointer (  ) const [inline]

Retrieves the pointer to the start of the file data.

void decMemoryFile::Resize ( int  newSize )

Resizes the memory file data buffer.

If larger the additional data has undefined values.


The documentation for this class was generated from the following file: