csBlockAllocatorAlignPolicy< A > Class Template Reference
This class implements a per-block allocating policy which aligns the first element on given byte boundary. More...
#include <csutil/blockallocator.h>
Static Public Member Functions | |
static uint8 * | AllocBlock (size_t blocksize) |
Allocate a raw block of given size. | |
static void | FreeBlock (uint8 *p) |
Free a block. |
Detailed Description
template<size_t A = 1>
class csBlockAllocatorAlignPolicy< A >
This class implements a per-block allocating policy which aligns the first element on given byte boundary.
It has a per-block overhead of `sizeof(void*)+alignment' bytes.
Definition at line 73 of file blockallocator.h.
Member Function Documentation
|
Allocate a raw block of given size.
Definition at line 79 of file blockallocator.h. References csAlignedMalloc(). |
|
Free a block.
Definition at line 88 of file blockallocator.h. References csAlignedFree(). |
The documentation for this class was generated from the following file:
- csutil/blockallocator.h
Generated for Crystal Space by doxygen 1.4.6