Interface to allow custom memory management.
More...
#include <Coherent/Libraries/MemoryManagement/IAllocator.h>
|
virtual COHERENT_MEMORY_PUBLIC | ~IAllocator ()=0 |
| virtual destructor
|
|
virtual void * | Allocate (size_t size)=0 |
| Allocates size amount of bytes. More...
|
|
virtual void | Deallocate (void *ptr)=0 |
| Deallocates a pointer. More...
|
|
Interface to allow custom memory management.
virtual void* Coherent::MemoryManagement::IAllocator::Allocate |
( |
size_t |
size | ) |
|
|
pure virtual |
Allocates size amount of bytes.
- Parameters
-
size | number of bytes to allocate |
- Returns
- pointer to the allocated bytes
virtual void Coherent::MemoryManagement::IAllocator::Deallocate |
( |
void * |
ptr | ) |
|
|
pure virtual |
Deallocates a pointer.
- Parameters
-
ptr | pointer to the bytes to deallocate |