 |
Newton Dynamics
4.00
|
|
22 #ifndef __D_MEMORY_H__
23 #define __D_MEMORY_H__
25 #include "dCoreStdafx.h"
27 typedef void* (*dMemAllocCallback) (
size_t size);
28 typedef void (*dMemFreeCallback) (
void*
const ptr);
36 D_CORE_API
static void*
Malloc(
size_t size);
39 D_CORE_API
static void Free(
void*
const ptr);
static D_CORE_API void Free(void *const ptr)
Destroy a memory buffer previously allocated by Malloc.
Definition: dMemory.cpp:58
static D_CORE_API dUnsigned64 GetMemoryUsed()
Return the total memory allocated by the newton engine and tools.
Definition: dMemory.cpp:65
static D_CORE_API void * Malloc(size_t size)
General Memory allocation function.
Definition: dMemory.cpp:44
static D_CORE_API void SetMemoryAllocators(dMemAllocCallback alloc, dMemFreeCallback free)
Install low level system memory allocation functions.
Definition: dMemory.cpp:70