Planeshift
|
Go to the source code of this file.
Typedefs | |
typedef void *( | dtAllocFunc )(int size, dtAllocHint hint) |
A memory allocation function. | |
typedef void( | dtFreeFunc )(void *ptr) |
A memory deallocation function. | |
Enumerations | |
enum | dtAllocHint { DT_ALLOC_PERM, DT_ALLOC_TEMP } |
Provides hint values to the memory allocator on how long the memory is expected to be used. More... | |
Functions | |
void * | dtAlloc (int size, dtAllocHint hint) |
Allocates a memory block. | |
void | dtAllocSetCustom (dtAllocFunc *allocFunc, dtFreeFunc *freeFunc) |
Sets the base custom allocation functions to be used by Detour. | |
void | dtFree (void *ptr) |
Deallocates a memory block. |
typedef void*( dtAllocFunc)(int size, dtAllocHint hint) |
A memory allocation function.
Definition at line 35 of file DetourAlloc.h.
typedef void( dtFreeFunc)(void *ptr) |
A memory deallocation function.
[in] | ptr | A pointer to a memory block previously allocated using dtAllocFunc. |
Definition at line 40 of file DetourAlloc.h.
enum dtAllocHint |
Provides hint values to the memory allocator on how long the memory is expected to be used.
DT_ALLOC_PERM |
Memory persist after a function call. |
DT_ALLOC_TEMP |
Memory used temporarily within a function. |
Definition at line 24 of file DetourAlloc.h.
void* dtAlloc | ( | int | size, |
dtAllocHint | hint | ||
) |
Allocates a memory block.
[in] | size | The size, in bytes of memory, to allocate. |
[in] | hint | A hint to the allocator on how long the memory is expected to be in use. |
void dtAllocSetCustom | ( | dtAllocFunc * | allocFunc, |
dtFreeFunc * | freeFunc | ||
) |