FMallocBinned::QuantizeSize

For some allocators this will return the actual size that should be requested to eliminate internal fragmentation.

Windows
MacOS
Linux

Override Hierarchy

FMalloc::QuantizeSize()

FMallocBinned::QuantizeSize()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/MallocBinned.h

Include

#include "HAL/MallocBinned.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/MallocBinned.cpp

Syntax

virtual SIZE_T QuantizeSize
(
    SIZE_T Count,
    uint32 Alignment
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss