Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/UnrealMemory.h |
| Include | #include "HAL/UnrealMemory.h" |
Syntax
struct FMemory
Functions
| Type | Name | Description | |
|---|---|---|---|
| void * | BigBlockMemcpy
(
void* Dest, |
||
| void | Clears the TLS caches on the current thread and disables any future caching. | ||
| void | |||
| void | |||
| void | Called once main is started and we have -purgatorymallocproxy. | ||
| void | Called once main is started and we have -purgatorymallocproxy. | ||
| void | ExplicitInit
(
FMalloc& Allocator |
Set global allocator instead of creating it lazily on first allocation. | |
| void | Free
(
void* Original |
||
| void | FreePersistentAuxiliary
(
void* InPtr |
||
| SIZE_T | GetAllocSize
(
void* Original |
||
| SIZE_T | |||
| bool | |||
| void * | C style memory allocation stubs. | ||
| void * | MallocPersistentAuxiliary
(
SIZE_T InSize, |
||
| void * | MallocZeroed
(
SIZE_T Count, |
||
| void | Mark TLS caches for current thread as unused. | ||
| void | Mark TLS caches for the current thread as used. | ||
| int32 | |||
| void * | |||
| void | Memcpy
(
T& Dest, |
||
| bool | Returns true if memory is zeroes, false otherwise. | ||
| void * | |||
| void | |||
| void * | |||
| void | |||
| void | Memzero
(
T& Src |
||
| void * | |||
| void * | ParallelMemcpy
(
void* Dest, |
||
| SIZE_T | QuantizeSize
(
SIZE_T Count, |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. | |
| void * | |||
| void | RegisterPersistentAuxiliary
(
void*, |
Functions to handle special memory given to the title from the platform This memory is allocated like a stack, it's never really freed | |
| void | Set up TLS caches on the current thread. These are the threads that we can trim. | ||
| void * | StreamingMemcpy
(
void* Dest, |
||
| void | SystemFree
(
void* Ptr |
||
| void * | SystemMalloc
(
SIZE_T Size |
C style memory allocation stubs that fall back to C runtime | |
| void | TestMemory () |
A helper function that will perform a series of random heap allocations to test the internal validity of the heap. | |
| void | Trim
(
bool bTrimThreadCaches |
Releases as much memory as possible. Must be called from the main thread. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| AllocationHints | Some allocators can be given hints to treat allocations differently depending on how the memory is used, it's lifetime etc. |