UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DetourAlloc.cpp File Reference

Functions

void dtAllocSetCustom (dtAllocFunc *allocFunc, dtFreeFunc *freeFunc)
 
voiddtAlloc (int size, dtAllocHint hint)
 
void dtFree (void *ptr, dtAllocHint hint)
 
void dtMemCpy (void *dst, void *src, int size)
 

Function Documentation

◆ dtAlloc()

void * dtAlloc ( int  size,
dtAllocHint  hint 
)

Allocates a memory block.

Parameters
[in]sizeThe size, in bytes of memory, to allocate.
[in]hintA hint to the allocator on how long the memory is expected to be in use.
Returns
A pointer to the beginning of the allocated memory block, or null if the allocation failed.
See also
dtFree

◆ dtAllocSetCustom()

void dtAllocSetCustom ( dtAllocFunc allocFunc,
dtFreeFunc freeFunc 
)

Sets the base custom allocation functions to be used by Detour.

Parameters
[in]allocFuncThe memory allocation function to be used by dtAlloc
[in]freeFuncThe memory de-allocation function to be used by dtFree

◆ dtFree()

void dtFree ( void ptr,
dtAllocHint  hint 
)

Deallocates a memory block.

Parameters
[in]ptrA pointer to a memory block previously allocated using dtAlloc.
See also
dtAlloc

◆ dtMemCpy()

void dtMemCpy ( void dst,
void src,
int  size 
)