Navigation
API > API/Runtime > API/Runtime/Core
ANSI C memory allocator.
| Name | FMallocAnsi |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/MallocAnsi.h |
| Include Path | #include "HAL/MallocAnsi.h" |
Syntax
class FMallocAnsi : public FMalloc
Inheritance Hierarchy
- FExec → FMalloc → FMallocAnsi
- FUseSystemMallocForNew → FMalloc → FMallocAnsi
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMallocAnsi() |
Constructor enabling low fragmentation heap on platforms supporting it. | HAL/MallocAnsi.h |
Functions
Public
Overridden from FMalloc
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Free
(
void* Original |
Free | HAL/MallocAnsi.h | |
virtual bool GetAllocationSize
(
void* Original, |
If possible determine the size of the memory allocated at the given address | HAL/MallocAnsi.h | |
virtual const TCHAR * GetDescriptiveName() |
Gets descriptive name for logging purposes. | HAL/MallocAnsi.h | |
virtual bool IsInternallyThreadSafe() |
Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it. | HAL/MallocAnsi.h | |
virtual void * Malloc
(
SIZE_T Count, |
Malloc | HAL/MallocAnsi.h | |
virtual void * Realloc
(
void* Original, |
Realloc | HAL/MallocAnsi.h | |
virtual void * TryMalloc
(
SIZE_T Count, |
TryMalloc - like Malloc(), but may return a nullptr result if the allocation request cannot be satisfied. | HAL/MallocAnsi.h | |
virtual void * TryRealloc
(
void* Original, |
TryRealloc - like Realloc(), but may return a nullptr if the allocation request cannot be satisfied. | HAL/MallocAnsi.h | |
virtual bool ValidateHeap() |
Validates the allocator's heap | HAL/MallocAnsi.h |