Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Allocates a memory block.
| Name | rcAlloc |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h |
| Include Path | #include "Recast/RecastAlloc.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/RecastAlloc.cpp |
void * rcAlloc
(
int size,
rcAllocHint 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
-
rcFree
-
rcAllocSetCustom