UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMemoryLayoutUtil Struct Reference

#include <MemoryLayoutUtil.h>

Classes

struct  FLayout
 
struct  FOffsetAndSize
 
struct  FSizeAndAlignment
 

Static Public Member Functions

static SIZE_T GetTotalSizeIncludingAlignment (const FLayout &Layout)
 
static void AddToLayout (FLayout &Layout, FOffsetAndSize &OutOffsetAndSize, SIZE_T ItemSize, SIZE_T ItemAlignment, SIZE_T ItemCount)
 
template<typename T >
static void AddToLayout (FLayout &Layout, FOffsetAndSize &OutOffsetAndSize, SIZE_T Count)
 

Detailed Description

Helper to deal with manually setting up a block of memory containing multiple allocations.

Member Function Documentation

◆ AddToLayout() [1/2]

template<typename T >
static void FMemoryLayoutUtil::AddToLayout ( FLayout Layout,
FOffsetAndSize OutOffsetAndSize,
SIZE_T  Count 
)
inlinestatic

Add a typed entry to the Layout.

◆ AddToLayout() [2/2]

static void FMemoryLayoutUtil::AddToLayout ( FLayout Layout,
FOffsetAndSize OutOffsetAndSize,
SIZE_T  ItemSize,
SIZE_T  ItemAlignment,
SIZE_T  ItemCount 
)
inlinestatic

Add an entry to the Layout with the specified size and alignment in bytes.

◆ GetTotalSizeIncludingAlignment()

static SIZE_T FMemoryLayoutUtil::GetTotalSizeIncludingAlignment ( const FLayout Layout)
inlinestatic

Get the current total size in bytes, including alignment, of the layout.


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