Galois
|
This implements a bump pointer though chunks of memory. More...
#include <Mem.h>
Public Types | |
enum | { AllocSize = 0 } |
Public Member Functions | |
BumpHeap () | |
~BumpHeap () | |
void | clear () |
void * | allocate (size_t size) |
void * | allocate (size_t size, size_t &allocated) |
Allocates size bytes but may fail. More... | |
void | deallocate (void *) |
This implements a bump pointer though chunks of memory.
|
inline |
|
inline |
|
inline |
|
inline |
Allocates size bytes but may fail.
If so, size < allocated and allocated is the number of bytes allocated in the returned buffer.
|
inline |
|
inline |