c:/nebula3/code/foundation/memory/osx/osxmemory.h File Reference
Detailed Description
Lowlevel memory functions for the OSX platform.(C) 2010 Radon Labs GmbH
#include "core/config.h"
#include "core/debug.h"
#include "memory/osx/osxmemoryconfig.h"
Namespaces | |
namespace | Memory |
Data Structures | |
struct | Memory::TotalMemoryStatus |
Defines | |
#define | __MEMORY_CHECKPOINT(s) |
Functions | |
void * | Memory::Alloc (HeapType heapType, size_t size, size_t alignment=16) |
allocate a chunk of memory | |
void * | Memory::Realloc (HeapType heapType, void *ptr, size_t size) |
re-allocate a chunk of memory | |
void | Memory::Free (HeapType heapType, void *ptr) |
free a chunk of memory | |
char * | Memory::DuplicateCString (const char *from) |
duplicate a C-string (obsolete) | |
bool | Memory::IsOverlapping (const unsigned char *srcPtr, size_t srcSize, const unsigned char *dstPtr, size_t dstSize) |
check if 2 memory regions are overlapping | |
void | Memory::Copy (const void *from, void *to, size_t numBytes) |
copy a chunk of memory | |
void | Memory::Clear (void *ptr, size_t numBytes) |
overwrite a chunk of memory with zero | |
void | Memory::Fill (void *ptr, size_t numBytes, unsigned char value) |
fill memory with a specific byte | |
TotalMemoryStatus | Memory::GetTotalMemoryStatus () |
void * | operator new (size_t size) |
Define Documentation
#define __MEMORY_CHECKPOINT | ( | s | ) |
Debug and memory validation functions.
Function Documentation
void* operator new | ( | size_t | size | ) |
Replacement global new/delete operators.