Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMemory
Description
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. The return value will always be >= Count. This can be used to grow and shrink containers to optimal sizes. This call is always fast and threadsafe with no locking.
| Name | QuantizeSize |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/UnrealMemory.h |
| Include Path | #include "HAL/UnrealMemory.h" |
| Source | /Engine/Source/Runtime/Core/Private/HAL/UnrealMemory.cpp |
static SIZE_T QuantizeSize
(
SIZE_T Count,
uint32 Alignment
)