Manages a memory file. More...
#include <decMemoryFile.h>
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. | |
Manages a memory file.
| decMemoryFile::decMemoryFile | ( | const char * | filename ) |
Creates a new memory file with the given path.
| decMemoryFile::~decMemoryFile | ( | ) |
Cleans up the memory file.
| 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.
1.7.2