23 int32 AllocatedSize = MaxSize;
25 for (
int32 i = 0; i < FreeSpans.Num(); i++)
27 AllocatedSize -= FreeSpans[i].Num;
40 return FreeSpans.Num();
56 for (
const auto&
FreeSpan : FreeSpans)
76 class FLinearAllocation
90 return StartOffset <=
Other.StartOffset && (StartOffset +
Num) >= (
Other.StartOffset +
Other.Num);
95 return StartOffset <
Other.StartOffset;
105 bool bDeferMerges =
false;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool operator<(const FTextFormatString &LHS, const FTextFormatString &RHS)
Definition ITextFormatArgumentModifier.h:147
Definition GrowOnlySpanAllocator.h:8
FGrowOnlySpanAllocator()
Definition GrowOnlySpanAllocator.h:11
ENGINE_API int32 Allocate(int32 Num)
Definition GrowOnlySpanAllocator.cpp:8
int32 GetNumFreeSpans() const
Definition GrowOnlySpanAllocator.h:38
int32 GetMaxSize() const
Definition GrowOnlySpanAllocator.h:33
int32 GetSparselyAllocatedSize() const
Definition GrowOnlySpanAllocator.h:21
ENGINE_API void BeginDeferMerges()
Definition GrowOnlySpanAllocator.cpp:109
ENGINE_API void EndDeferMerges()
Definition GrowOnlySpanAllocator.cpp:115
@ Contains
Definition AutomationTest.h:160
U16 Index
Definition radfft.cpp:71