CS::Memory::Heap Class ReferenceA separate heap from which memory can be allocated. More...
Public Member Functions
|void *||Alloc (const size_t n)|
|Allocate a block of memory of size |
|void||Free (void *p)|
|Free the block |
|void *||Realloc (void *p, size_t newSize)|
|Resize the allocated block |
|void||Trim (size_t pad=0)|
|Try to return as much unused memory to the system as possible. |
Detailed DescriptionA separate heap from which memory can be allocated.
- Memory must be freed by the same heap it was allocated from.
Member Function Documentation
|void* CS::Memory::Heap::Alloc||(||const size_t||n||)|
Allocate a block of memory of size
|void CS::Memory::Heap::Free||(||void *||p||)|
Free the block
|void* CS::Memory::Heap::Realloc||(||void *||p,|
Resize the allocated block
p to size
|void CS::Memory::Heap::Trim||(||size_t|| pad =
Try to return as much unused memory to the system as possible.
pad optionally specifies a minimum amount of memory to be retained, in case future allocations are anticipated.
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.0.2 by doxygen 1.4.7