Static Public Member Functions

kNet::StdCAlloc Class Reference

Allocates raw memory using the std C malloc and free. More...

#include <StdCMallocHeap.h>

List of all members.

Static Public Member Functions

static void * Alloc (StdCAlloc *, size_t size, size_t alignment, const char *=0, AllocFlags=AFAllocLow)
static size_t Size (StdCAlloc *, void *ptr)

Detailed Description

Allocates raw memory using the std C malloc and free.

Note that the free/used -block tracking is left at the burden of the stdlib implementation, so don't rely on this allocator in performance critical sections.


Member Function Documentation

static void* kNet::StdCAlloc::Alloc ( StdCAlloc ,
size_t  size,
size_t  alignment,
const char *  = 0,
AllocFlags  = AFAllocLow 
) [inline, static]

Todo:
aligned_malloc on unix?

References IS_POW2.

static size_t kNet::StdCAlloc::Size ( StdCAlloc ,
void *  ptr 
) [inline, static]
Todo:
Perhaps support Resize(void *ptr, size_t newSize); ?

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines