Go to the source code of this file.
|
| enum | dtAllocHint {
DT_ALLOC_TEMP
, DT_ALLOC_PERM_AVOIDANCE
, DT_ALLOC_PERM_CROWD
, DT_ALLOC_PERM_LOOKUP
,
DT_ALLOC_PERM_NAVMESH
, DT_ALLOC_PERM_NAVQUERY
, DT_ALLOC_PERM_NODE_POOL
, DT_ALLOC_PERM_PATH_CORRIDOR
,
DT_ALLOC_PERM_PATH_QUEUE
, DT_ALLOC_PERM_PROXIMITY_GRID
, DT_ALLOC_PERM_TILE_CACHE_LAYER
, DT_ALLOC_PERM_TILE_DATA
,
DT_ALLOC_PERM_TILE_DYNLINK_OFFMESH
, DT_ALLOC_PERM_TILE_DYNLINK_CLUSTER
, DT_ALLOC_PERM_TILES
, DT_ALLOC_PERM_TILE_LINK_BUILDER
} |
| | Provides hint values on how the memory is expected to be used. Typically used by external memory allocation and tracking systems. More...
|
| |
◆ dtAllocFunc
◆ dtFreeFunc
A memory deallocation function.
- Parameters
-
| [in] | ptr | A pointer to a memory block previously allocated using dtAllocFunc. |
- See also
- dtAllocSetCustom
◆ dtAllocHint
Provides hint values on how the memory is expected to be used. Typically used by external memory allocation and tracking systems.
| Enumerator |
|---|
| DT_ALLOC_TEMP | Memory used temporarily within a function.
|
| DT_ALLOC_PERM_AVOIDANCE | |
| DT_ALLOC_PERM_CROWD | |
| DT_ALLOC_PERM_LOOKUP | |
| DT_ALLOC_PERM_NAVMESH | |
| DT_ALLOC_PERM_NAVQUERY | |
| DT_ALLOC_PERM_NODE_POOL | |
| DT_ALLOC_PERM_PATH_CORRIDOR | |
| DT_ALLOC_PERM_PATH_QUEUE | |
| DT_ALLOC_PERM_PROXIMITY_GRID | |
| DT_ALLOC_PERM_TILE_CACHE_LAYER | |
| DT_ALLOC_PERM_TILE_DATA | |
| DT_ALLOC_PERM_TILE_DYNLINK_OFFMESH | |
| DT_ALLOC_PERM_TILE_DYNLINK_CLUSTER | |
| DT_ALLOC_PERM_TILES | |
| DT_ALLOC_PERM_TILE_LINK_BUILDER | |
◆ dtAlloc()
Allocates a memory block.
- Parameters
-
| [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. |
- Returns
- A pointer to the beginning of the allocated memory block, or null if the allocation failed.
- See also
- dtFree
◆ dtAllocSetCustom()
Sets the base custom allocation functions to be used by Detour.
- Parameters
-
| [in] | allocFunc | The memory allocation function to be used by dtAlloc |
| [in] | freeFunc | The memory de-allocation function to be used by dtFree |
◆ dtFree()
Deallocates a memory block.
- Parameters
-
| [in] | ptr | A pointer to a memory block previously allocated using dtAlloc. |
- See also
- dtAlloc
◆ dtMemCpy()