|
Medial Code Documentation
|
A memory pool that allocate memory of fixed size and alignment. More...
#include <memory.h>
Public Member Functions | |
| MemoryPool () | |
| constructor | |
| void * | allocate () |
| allocate a new memory of size | |
| void | deallocate (void *p) |
| deallocate a piece of memory | |
A memory pool that allocate memory of fixed size and alignment.
| size | The size of each piece. |
| align | The alignment requirement of the memory. |
|
inline |
deallocate a piece of memory
| p | The pointer to the memory to be de-allocated. |