29 #ifndef __MemoryNedAlloc_H__
30 #define __MemoryNedAlloc_H__
32 #if OGRE_MEMORY_ALLOCATOR == OGRE_MEMORY_ALLOCATOR_NED
47 static void* allocBytes(
size_t count,
48 const char* file,
int line,
const char* func);
49 static void deallocBytes(
void* ptr);
50 static void* allocBytesAligned(
size_t align,
size_t count,
51 const char* file,
int line,
const char* func);
52 static void deallocBytesAligned(
size_t align,
void* ptr);
68 const char* file = 0,
int line = 0,
const char* func = 0)
79 return std::numeric_limits<size_t>::max();
100 template <
size_t Alignment = 0>
106 [Alignment <= 128 && ((Alignment & (Alignment-1)) == 0) ? +1 : -1];
109 const char* file = 0,
int line = 0,
const char* func = 0)
122 return std::numeric_limits<size_t>::max();
139 #endif // __MemoryNedAlloc_H__
static void deallocBytesAligned(size_t align, void *ptr)
An allocation policy for use with AllocatedObject and STLAllocator.
static void deallocateBytes(void *ptr)
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given bo...
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
static void * allocBytes(size_t count, const char *file, int line, const char *func)
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
int IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0)?+1:-1]
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
Non-templated utility class just to hide nedmalloc.
static void deallocateBytes(void *ptr)
static void * allocBytesAligned(size_t align, size_t count, const char *file, int line, const char *func)
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
static void deallocBytes(void *ptr)