#include <WorkingMemory.h>
this class provides a helper for working memories
◆ WorkingMemory()
WorkingMemory::WorkingMemory |
( |
const eC_UInt & |
uiSize | ) |
|
Initialize the buffer for working memory
- Parameters
-
uiSize | initial size of buffer |
◆ Acquire()
void * WorkingMemory::Acquire |
( |
const eC_UInt & |
uiSize | ) |
|
Get a portion of the working memory. This memory can be used for frequent actions like creating vertices or other temporary buffers for graphical operations. It is also possible to acquire multiple memory-blocks for an operation.
If the memory-block will not fit into the buffer of working memory additional buffers are created.
- Parameters
-
uiSize | size of memory-block |
- Returns
- memory
◆ GetMaxBufferCount()
eC_UInt WorkingMemory::GetMaxBufferCount |
( |
| ) |
const |
|
inline |
return maximum buffer count
- Returns
- max buffer count
◆ Release()
void WorkingMemory::Release |
( |
| ) |
|
Release all memory-blocks acquired from working memory This will reset the offset inside the working memory, so that the next acquisition will start from the beginning of the buffer.
The documentation for this class was generated from the following file: