Navigation
API > API/Runtime > API/Runtime/Core
Description
AnsiMalloc API: Malloc
Functions in the AnsiMalloc API provide allocations from c++ or operating system allocations functions without going through an intermediate heap manager. These allocations are tracked in Unreal's memory trackers. As usual with allocation functions, AnsiRealloc and AnsiFree should only be called on nullptr or on pointers returned from AnsiMalloc or AnsiRealloc.
| Name | AnsiMalloc |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/MallocAnsi.h |
| Include Path | #include "HAL/MallocAnsi.h" |
| Source | /Engine/Source/Runtime/Core/Private/HAL/MallocAnsi.cpp |
void * AnsiMalloc
(
SIZE_T Size,
uint32 Alignment
)