FMallocBinned::FMallocBinned

InPageSize - First parameter is page size, all allocs from BinnedAllocFromOS() MUST be aligned to this size AddressLimit - Second parameter is estimate of the range of addresses expected to be returns by BinnedAllocFromOS().

Windows
MacOS
Linux

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

FMallocBinned
(
    uint32 InPageSize,
    uint64 AddressLimit
)

Remarks

InPageSize - First parameter is page size, all allocs from BinnedAllocFromOS() MUST be aligned to this size AddressLimit - Second parameter is estimate of the range of addresses expected to be returns by BinnedAllocFromOS(). Binned Malloc will adjust its internal structures to make lookups for memory allocations O(1) for this range. It is ok to go outside this range, lookups will just be a little slower

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