Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Allocates a memory block.
| Name | dtAlloc |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourAlloc.h |
| Include Path | #include "Detour/DetourAlloc.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourAlloc.cpp |
void * dtAlloc
(
int size,
dtAllocHint hint
)
A pointer to the beginning of the allocated memory block, or null if the allocation failed.
Parameters
| Name | Remarks |
|---|---|
| size | The size, in bytes of memory, to allocate. |
| hint | A hint to the allocator on how long the memory is expected to be in use. |
See Also
- dtFree