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