19 #ifndef DETOURALLOCATOR_H
20 #define DETOURALLOCATOR_H
void() dtFreeFunc(void *ptr)
A memory deallocation function.
Definition: DetourAlloc.h:42
dtAllocHint
Provides hint values to the memory allocator on how long the memory is expected to be used.
Definition: DetourAlloc.h:27
@ DT_ALLOC_TEMP
Memory used temporarily within a function.
Definition: DetourAlloc.h:29
@ DT_ALLOC_PERM
Memory persist after a function call.
Definition: DetourAlloc.h:28
void *() dtAllocFunc(size_t size, dtAllocHint hint)
A memory allocation function.
Definition: DetourAlloc.h:37
void * dtAlloc(size_t size, dtAllocHint hint)
Allocates a memory block.
Definition: DetourAlloc.cpp:41
void dtFree(void *ptr)
Deallocates a memory block.
Definition: DetourAlloc.cpp:46
void dtAllocSetCustom(dtAllocFunc *allocFunc, dtFreeFunc *freeFunc)
Sets the base custom allocation functions to be used by Detour.
Definition: DetourAlloc.cpp:35