FGrowableMallocChunk::FFreeEntry::Split

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/GenericGrowableAllocator.h

Include

#include "Misc/GenericGrowableAllocator.h"

Syntax

uint32 Split
(
    uint64 UsedSize,
    uint32 Alignment,
    bool & bDelete,
    uint32 & Padding,
    uint32 MinSize
)

Remarks

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

Returns

The location of the free data

Parameters

Parameter

Description

UsedSize

The size of the used amount (anything left over becomes free chunk)

Alignment

The alignment of the allocation (location and size)

bDelete

Whether or not to delete this FreeEntry (ie no more is left over after splitting)