UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TGenericGrowableAllocator< ChunkAllocatorType, GrowableAllocationBaseType > Class Template Reference

#include <GenericGrowableAllocator.h>

+ Inheritance diagram for TGenericGrowableAllocator< ChunkAllocatorType, GrowableAllocationBaseType >:

Public Member Functions

 TGenericGrowableAllocator (uint64 InitialSize, uint32 InType, uint32 InSubAllocationAlignment, FName InStatRegionName, const FName *InOwnerTypeToStatIdMap, void *InUserData)
 
virtual ~TGenericGrowableAllocator ()
 
GrowableAllocationBaseTypeMalloc (uint32 Size, uint32 Alignment, int32 OwnerType)
 
bool Free (GrowableAllocationBaseType *Memory)
 
void GetAllocationInfo (uint32 &Chunks, uint64 &Used, uint64 &Free)
 
bool DoesAllocatorContainAddress (const void *Address)
 
void ShowAllocationInfo ()
 
void ShowFullAllocationInfo ()
 
void DumpMemoryInfo ()
 
- Public Member Functions inherited from FGrowableMallocBase
 FGrowableMallocBase ()
 
virtual ~FGrowableMallocBase ()
 
virtual uint64 GetWasteApproximation ()
 

Additional Inherited Members

- Protected Attributes inherited from FGrowableMallocBase
uint64 TotalAllocated
 
uint64 TotalWaste
 
uint64 CurrentAllocs
 
uint64 TotalAllocs
 

Detailed Description

template<typename ChunkAllocatorType, typename GrowableAllocationBaseType>
class TGenericGrowableAllocator< ChunkAllocatorType, GrowableAllocationBaseType >

Allocator that will grow as needed with direct mapped memory for a given memory type

Constructor & Destructor Documentation

◆ TGenericGrowableAllocator()

TGenericGrowableAllocator< ChunkAllocatorType, GrowableAllocationBaseType >::TGenericGrowableAllocator ( uint64  InitialSize,
uint32  InType,
uint32  InSubAllocationAlignment,
FName  InStatRegionName,
const FName InOwnerTypeToStatIdMap,
void InUserData 
)
inline

Constructor Internally allocates address space for use only by this allocator

Parameters
Type- The templated memory type to allocate with this allocator
StatRegion- The region of memory this is responsible for, for updating the region max sizes

◆ ~TGenericGrowableAllocator()

Member Function Documentation

◆ DoesAllocatorContainAddress()

◆ DumpMemoryInfo()

◆ Free()

◆ GetAllocationInfo()

◆ Malloc()

◆ ShowAllocationInfo()

◆ ShowFullAllocationInfo()


The documentation for this class was generated from the following file: