Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FGrowOnlySpanAllocator |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/GrowOnlySpanAllocator.h |
| Include Path | #include "GrowOnlySpanAllocator.h" |
Syntax
class FGrowOnlySpanAllocator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGrowOnlySpanAllocator() |
GrowOnlySpanAllocator.h |
Classes
| Name | Remarks |
|---|---|
| FLinearAllocation |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDeferMerges | bool | GrowOnlySpanAllocator.h | ||
| FreeSpans | TArray< FLinearAllocation, TInlineAllocator< 10 > > | Unordered free list. | GrowOnlySpanAllocator.h | |
| MaxSize | int32 | Size of the linear range used by the allocator. | GrowOnlySpanAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Allocate
(
int32 Num |
Allocate a range. Returns allocated StartOffset. | GrowOnlySpanAllocator.h | |
void BeginDeferMerges () |
Between these calls to Free just appends the allocation to the free list, rather than trying to merge with existing allocations. | GrowOnlySpanAllocator.h | |
void EndDeferMerges() |
GrowOnlySpanAllocator.h | ||
void Free
(
int32 BaseOffset, |
Free an already allocated range. | GrowOnlySpanAllocator.h | |
int32 GetMaxSize() |
GrowOnlySpanAllocator.h | ||
int32 GetNumFreeSpans() |
GrowOnlySpanAllocator.h | ||
int32 GetSparselyAllocatedSize() |
GrowOnlySpanAllocator.h | ||
bool IsFree
(
int32 Index |
Loop over all free spans and check if Index is in any of them. | GrowOnlySpanAllocator.h |