Navigation
API > API/Runtime > API/Runtime/Core
| Name | FMemory |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/UnrealMemory.h |
| Include Path | #include "HAL/UnrealMemory.h" |
Syntax
struct FMemory
Enums
Public
| Name | Remarks |
|---|---|
| AllocationHints | Some allocators can be given hints to treat allocations differently depending on how the memory is used, it's lifetime etc. |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void * BigBlockMemcpy
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void ClearAndDisableTLSCachesOnCurrentThread() |
Clears the TLS caches on the current thread and disables any future caching. | HAL/UnrealMemory.h | |
static void EnablePoisonTests() |
Called once main is started and we have -poisonmallocproxy. | HAL/UnrealMemory.h | |
static void EnablePurgatoryTests () |
Called once main is started and we have -purgatorymallocproxy. | HAL/UnrealMemory.h | |
static void ExplicitInit
(
FMalloc& Allocator |
Set global allocator instead of creating it lazily on first allocation. | HAL/UnrealMemory.h | |
static void Free
(
void* Original |
HAL/UnrealMemory.h | ||
static void FreeExternal
(
void* Original |
HAL/UnrealMemory.h | ||
static void GCreateMalloc() |
HAL/UnrealMemory.h | ||
static SIZE_T GetAllocSize
(
void* Original |
HAL/UnrealMemory.h | ||
static SIZE_T GetAllocSizeExternal
(
void* Original |
HAL/UnrealMemory.h | ||
static void * Malloc
(
SIZE_T Count, |
C style memory allocation stubs. | HAL/UnrealMemory.h | |
static void * MallocExternal
(
SIZE_T Count, |
These versions are called either at startup or in the event of a crash. | HAL/UnrealMemory.h | |
static void * MallocZeroed
(
SIZE_T Count, |
HAL/UnrealMemory.h | ||
static void * MallocZeroedExternal
(
SIZE_T Count, |
HAL/UnrealMemory.h | ||
static void MarkTLSCachesAsUnusedOnCurrentThread () |
Mark TLS caches for current thread as unused. | HAL/UnrealMemory.h | |
static void MarkTLSCachesAsUsedOnCurrentThread () |
Mark TLS caches for the current thread as used. | HAL/UnrealMemory.h | |
static int32 Memcmp
(
const void* Buf1, |
HAL/UnrealMemory.h | ||
static void * Memcpy
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void Memcpy
(
T& Dest, |
HAL/UnrealMemory.h | ||
static bool MemIsZero
(
const void* Ptr, |
Returns true if memory is zeroes, false otherwise. | HAL/UnrealMemory.h | |
static void * Memmove
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void Memset
(
T& Src, |
HAL/UnrealMemory.h | ||
static void * Memset
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void Memswap
(
void* Ptr1, |
HAL/UnrealMemory.h | ||
static void Memzero
(
T& Src |
HAL/UnrealMemory.h | ||
static void * Memzero
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void * ParallelMemcpy
(
void* Dest, |
HAL/UnrealMemory.h | ||
static SIZE_T QuantizeSize
(
SIZE_T Count, |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. | HAL/UnrealMemory.h | |
static SIZE_T QuantizeSizeExternal
(
SIZE_T Count, |
HAL/UnrealMemory.h | ||
static void * Realloc
(
void* Original, |
HAL/UnrealMemory.h | ||
static void * ReallocExternal
(
void* Original, |
HAL/UnrealMemory.h | ||
static void SetupTLSCachesOnCurrentThread() |
Set up TLS caches on the current thread. These are the threads that we can trim. | HAL/UnrealMemory.h | |
static void * StreamingMemcpy
(
void* Dest, |
HAL/UnrealMemory.h | ||
static void SystemFree
(
void* Ptr |
HAL/UnrealMemory.h | ||
static void * SystemMalloc
(
SIZE_T Size |
C style memory allocation stubs that fall back to C runtime | HAL/UnrealMemory.h | |
static void TestMemory () |
A helper function that will perform a series of random heap allocations to test the internal validity of the heap. | HAL/UnrealMemory.h | |
static void Trim
(
bool bTrimThreadCaches |
Releases as much memory as possible. Must be called from the main thread. | HAL/UnrealMemory.h |