c:/nebula3/code/foundation/memory/win360/win360memory.h File Reference
Detailed Description
Memory subsystem features which are identical on Win32 and Xbox360.(C) 2008 Radon Labs GmbH
#include "core/config.h"
#include "core/debug.h"
#include "threading/interlocked.h"
#include "memory/win360/win360memoryconfig.h"
#include "memory/win32/win32memory.h"
Namespaces | |
namespace | Memory |
Data Structures | |
struct | Memory::TotalMemoryStatus |
Defines | |
#define | __MEMORY_CHECKPOINT(s) |
Functions | |
void * | Memory::Alloc (HeapType heapType, size_t size) |
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 | |
TotalMemoryStatus | Memory::GetTotalMemoryStatus () |
void | Memory::DumpTotalMemoryStatus () |
__forceinline void * | operator new (size_t size) |
Define Documentation
#define __MEMORY_CHECKPOINT | ( | s | ) |
Debug function which validates the process heap. This will NOT check local heaps (call Heap::ValidateAllHeaps() for this). Stops the program if something is wrong.
Function Documentation
__forceinline void* operator new | ( | size_t | size | ) |
Replacement global new/delete operators.