Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FGrowableMallocChunk::FFreeEntry Class Reference
+ Collaboration diagram for FGrowableMallocChunk::FFreeEntry:

Public Member Functions

 FFreeEntry (FFreeEntry *NextEntry, uint32 InLocation, uint64 InSize)
 
bool CanFit (uint64 AlignedSize, uint32 Alignment)
 
uint32 Split (uint64 UsedSize, uint32 Alignment, bool &bDelete, uint32 &Padding, uint32 MinSize)
 

Public Attributes

uint32 Location
 
uint32 BlockSize
 
FFreeEntryNext
 

Detailed Description

Definition at line 408 of file GenericGrowableAllocator.h.

Constructor & Destructor Documentation

◆ FFreeEntry()

FGrowableMallocChunk::FFreeEntry::FFreeEntry ( FFreeEntry * NextEntry,
uint32 InLocation,
uint64 InSize )
inline

Constructor

Definition at line 412 of file GenericGrowableAllocator.h.

+ Here is the caller graph for this function:

Member Function Documentation

◆ CanFit()

bool FGrowableMallocChunk::FFreeEntry::CanFit ( uint64 AlignedSize,
uint32 Alignment )
inline

Determine if the given allocation with this alignment and size will fit

Parameters
AllocationSizeAlready aligned size of an allocation
AlignmentAlignment of the allocation (location may need to increase to match alignment)
Returns
true if the allocation will fit

Definition at line 425 of file GenericGrowableAllocator.h.

+ Here is the caller graph for this function:

◆ Split()

uint32 FGrowableMallocChunk::FFreeEntry::Split ( uint64 UsedSize,
uint32 Alignment,
bool & bDelete,
uint32 & Padding,
uint32 MinSize )
inline

Take a free chunk, and split it into a used chunk and a free chunk

Parameters
UsedSizeThe size of the used amount (anything left over becomes free chunk)
AlignmentThe alignment of the allocation (location and size)
bDeleteWhether or not to delete this FreeEntry (ie no more is left over after splitting)
Returns
The location of the free data

Definition at line 442 of file GenericGrowableAllocator.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ BlockSize

uint32 FGrowableMallocChunk::FFreeEntry::BlockSize

Size of the free block

Definition at line 476 of file GenericGrowableAllocator.h.

◆ Location

uint32 FGrowableMallocChunk::FFreeEntry::Location

Offset in the heap

Definition at line 473 of file GenericGrowableAllocator.h.

◆ Next

FFreeEntry* FGrowableMallocChunk::FFreeEntry::Next

Next block of free memory.

Definition at line 479 of file GenericGrowableAllocator.h.


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