Kaim::StraightMemoryHeapMalloc Class Reference

Kaim::StraightMemoryHeapMalloc Class Reference

#include <straightmalloc.h>

Class Description

multi-platform abstraction of malloc/free/realloc Note that this is used only by the generation through MemoryHeap and MemoryHeap::Realloc doesn't maintain alignment!

Static Public Member Functions

static void * Alloc (UPInt size)
 
static void * Alloc (UPInt size, UPInt align)
 
static void * Realloc (void *oldPtr, UPInt newSize)
 

Member Function Documentation

static void* Kaim::StraightMemoryHeapMalloc::Alloc ( UPInt  size)
static

Alloc without alignment.

static void* Kaim::StraightMemoryHeapMalloc::Alloc ( UPInt  size,
UPInt  align 
)
static

Alloc with alignment NOTE that Realloc should not be used with memory allocated with this function, otherwise the reallocated memory could be not properly aligned.

static void* Kaim::StraightMemoryHeapMalloc::Realloc ( void *  oldPtr,
UPInt  newSize 
)
static

Realloc without alignment.


The documentation for this class was generated from the following file: