Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- FGrowableMallocBase
- FGrowableMallocChunk
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/GenericGrowableAllocator.h |
Include | #include "Misc/GenericGrowableAllocator.h" |
Syntax
class FGrowableMallocChunk : public FGrowableMallocBase
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FCriticalSection * | CriticalSection | Shared critical section |
![]() |
FFreeEntry * | FreeList | List of free blocks |
![]() |
uint64 | HeapSize | Size of the heap |
![]() |
uint32 | MaxFreeEntrySize | Size of the largest free entry (will be MaxFreeEntrySizeDirty if unknown) |
![]() |
uint32 | MemoryType | Type of this memory, up to the subclass to define what it means |
![]() |
uint64 | UsedMemorySize | Size of used memory |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FGrowableMallocChunk
(
uint64 InSize, |
Constructor |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Destructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | CanFitEntry
(
uint32 Size, |
Check free list for an entry big enough to fit the requested Size with Alignment |
![]() |
FGrowableAllocationBase * | Creates an implementation specific subclass of FGrowableAllocationBase. | |
![]() |
uint64 | CreateInternalMemory
(
uint64 Size |
Lets the implementation allocate the backing memory for the chunk |
![]() |
void | Destroy () |
|
![]() ![]() |
void | DestroyAllocationStruct
(
FGrowableAllocationBase* Allocation |
Destroys the implemtnation object. By default, just deletes it |
![]() |
void | Destroys the backing memory for the chunk | |
![]() |
bool | DoesChunkContainAddress
(
const void* Address |
Queries the implementation if the given address came from this chunk |
![]() |
bool | DoesChunkContainAllocation
(
const FGrowableAllocationBase* Allocation |
Queries the implementation if the given allocation came from this chunk |
![]() |
bool | Free
(
FGrowableAllocationBase* Memory |
|
![]() |
void * | GetAddressForTracking
(
uint32 Offset |
Returns an address usable FOR TRACKING ONLY! |
![]() |
void | GetAllocationInfo
(
uint64& Used, |
|
![]() |
void | Initialize () |
|
![]() |
void | InitializeAllocationStruct
(
FGrowableAllocationBase* Allocation |
Lets the implementation fill in any specific fields of the allocation struct after the base fields are set up |
![]() |
bool | IsEmpty () |
|
![]() |
FGrowableAllocationBase * | Malloc
(
uint32 Size, |
|
![]() |
void |
Constants
Name | Description |
---|---|
MaxFreeEntrySizeDirty |