Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FBitTree
Description
Finds a contiguous span of unallocated bits. NumBits must be a power of two or a multiple of 64. Only checks regions aligned to min(NumBits, 64).
Warning, slow! Requires a linear search along the bottom row! O(Capacity / min(NumBits,64)) iterations.
Returns the index of the first unallocated bit in the span.
| Name | Slow_NextAllocBits |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/MallocBinnedCommon.h |
| Include Path | #include "HAL/MallocBinnedCommon.h" |
| Source | /Engine/Source/Runtime/Core/Private/HAL/MallocBinnedCommon.cpp |
uint32 Slow_NextAllocBits
(
uint32 NumBits,
uint64 StartIndex
)