#include <cHeap.h>
|
static const size_t | k_ALLOC_MAX = 0x1000000 |
| 256 * 64K = (arbitrary) largest reasonable single malloc. More...
|
|
static ITERATE_t | sm_nAllocs = 0 |
| count total allocations (i.e. Number of calls to malloc() minus calls to free()) More...
|
|
Allocate a block of memory that starts on a certain alignment. will/may have padded prefix. destruct = free memory. Linux might use posix_memalign() http://linux.about.com/library/cmd/blcmdl3_posix_memalign.htm size align must be a power of two and a multiple of sizeof(void *).
◆ SUPER_t
◆ AllocPtr()
static void* Gray::cHeapAlign::AllocPtr |
( |
size_t |
nSize, |
|
|
size_t |
iAligned |
|
) |
| |
|
inlinestatic |
◆ FreePtr()
static void Gray::cHeapAlign::FreePtr |
( |
void * |
pData | ) |
|
|
inlinestatic |
◆ GetSize()
static size_t Gray::cHeapAlign::GetSize |
( |
const void * |
pData | ) |
|
|
inlinestaticnoexcept |
◆ IsAlignedAlloc()
static bool Gray::cHeapAlign::IsAlignedAlloc |
( |
const void * |
pData, |
|
|
size_t |
iAligned |
|
) |
| |
|
inlinestaticnoexcept |
◆ IsValidHeap()
static bool Gray::cHeapAlign::IsValidHeap |
( |
const void * |
pData | ) |
|
|
inlinestaticnoexcept |
◆ IsValidInside()
static bool Gray::cHeapAlign::IsValidInside |
( |
const void * |
pData, |
|
|
INT_PTR |
index |
|
) |
| |
|
inlinestaticnoexcept |
The documentation for this struct was generated from the following file:
- c:/Dennis/Source/Gray/GrayCore/include/cHeap.h