FGrowableMallocChunk

Windows
MacOS
Linux

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

Name Description

Public variable

FCriticalSectio...

 

CriticalSection

Shared critical section

Public variable

FFreeEntry *...

 

FreeList

List of free blocks

Public variable

uint64

 

HeapSize

Size of the heap

Public variable

uint32

 

MemoryType

Type of this memory, up to the subclass to define what it means

Public variable

uint64

 

UsedMemorySize

Size of used memory

Constructors

Name Description

Public function

FGrowableMallocChunk

(
    uint64 InSize,
    uint32 Type,
    FCriticalSection* InCriticalSe...
)

Constructor

Destructors

Name Description

Public function Virtual

~FGrowableMallocChunk()

Destructor

Functions

Name Description

Public function

bool

 

CanFitEntry

(
    uint32 Size,
    uint32 Alignment
)

Check free list for an entry big enough to fit the requested Size with Alignment

Public function

FGrowableAll...

 

CreateAllocationStruct()

Creates an implementation specific subclass of FGrowableAllocationBase.

Public function

uint64

 

CreateInternalMemory

(
    uint64 Size
)

Lets the implementation allocate the backing memory for the chunk

Public function

void

 

Destroy()

Public function Virtual

void

 

DestroyAllocationStruct

(
    FGrowableAllocationBase* Alloc...
)

Destroys the implemtnation object. By default, just deletes it

Public function

void

 

DestroyInternalMemory()

Destroys the backing memory for the chunk

Public function

bool

 

DoesChunkContainAllocation

(
    const FGrowableAllocationBase*...
)

Queries the implementation if the given allocation came from this chunk

Public function

bool

 

Free

(
    FGrowableAllocationBase* Memor...
)

Public function

void *

 

GetAddressForTracking

(
    uint32 Offset
)

Returns an address usable FOR TRACKING ONLY!

Public function

void

 

GetAllocationInfo

(
    uint64& Used,
    uint64& Free
)

Public function

void

 

Initialize()

Public function

void

 

InitializeAllocationStruct

(
    FGrowableAllocationBase* Alloc...
)

Lets the implementation fill in any specific fields of the allocation struct after the base fields are set up

Public function

bool

 

IsEmpty()

Public function

FGrowableAll...

 

Malloc

(
    uint32 Size,
    uint32 Alignment,
    uint32 MinAllocationSize,
    int32 OwnerType
)

Public function

void

 

ShowFullAllocationList()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss