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

#include <PropertyHelper.h>

Public Member Functions

 FDeltaIndexHelper ()=default
 
COREUOBJECT_API bool SerializeNext (FArchive &Ar, int32 &Index)
 
COREUOBJECT_API void SerializeNext (FArchive &OutBunch, FArchive &OutFull, int32 Index)
 
void Increment (int32 NewIndex)
 
COREUOBJECT_API void SerializeEarlyEnd (FArchive &Ar)
 

Public Attributes

int32 LastIndex = -1
 
int32 LastIndexFull = -1
 

Detailed Description

Helper struct for serializing index deltas -Serialize delta index as a packed int (Hope to get 1 byte per index) -Serialize 0 delta to signify 'no more' (INDEX_NONE would take 5 bytes in packed format)

Constructor & Destructor Documentation

◆ FDeltaIndexHelper()

FDeltaIndexHelper::FDeltaIndexHelper ( )
default

Member Function Documentation

◆ Increment()

void FDeltaIndexHelper::Increment ( int32  NewIndex)
inline

Sets LastIndex for delta state. Must be called if using SerializeNet(OutBunch, Outfull, Old, Index)

◆ SerializeEarlyEnd()

void FDeltaIndexHelper::SerializeEarlyEnd ( FArchive Ar)

Serialize early end (0)

◆ SerializeNext() [1/2]

bool FDeltaIndexHelper::SerializeNext ( FArchive Ar,
int32 Index 
)

Serialize Index as delta from previous index. Return false if we should stop

◆ SerializeNext() [2/2]

void FDeltaIndexHelper::SerializeNext ( FArchive OutBunch,
FArchive OutFull,
int32  Index 
)

Helper for NetSerializeItemDelta which has full/partial/old archives. Wont auto-advance LastIndex, must call Increment after this

Member Data Documentation

◆ LastIndex

int32 FDeltaIndexHelper::LastIndex = -1

◆ LastIndexFull

int32 FDeltaIndexHelper::LastIndexFull = -1

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