UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::Private::FFastArrayReplicationFragmentHelper Struct Reference

#include <FastArrayReplicationFragmentInternal.h>

Static Public Member Functions

template<typename FastArrayType , typename ItemArrayType >
static void ConditionalRebuildItemMap (FastArrayType &ArraySerializer, const ItemArrayType &Items, bool bForceRebuild)
 
template<typename FastArrayType , typename ItemArrayType >
static void ApplyReplicatedState (FastArrayType *DstFastArray, ItemArrayType *DstWrappedArray, FastArrayType *SrcFastArray, const ItemArrayType *SrcWrappedArray, const FReplicationStateDescriptor *ArrayElementDescriptor, FReplicationStateApplyContext &Context)
 
static IRISCORE_API void InternalApplyArrayElement (const FReplicationStateDescriptor *ArrayElementDescriptor, void *RESTRICT Dst, const void *RESTRICT Src)
 
static IRISCORE_API void InternalCopyArrayElement (const FReplicationStateDescriptor *ArrayElementDescriptor, void *RESTRICT Dst, const void *RESTRICT Src)
 
static IRISCORE_API bool InternalCompareArrayElement (const FReplicationStateDescriptor *ArrayElementDescriptor, void *RESTRICT Dst, const void *RESTRICT Src)
 
static IRISCORE_API uint32 GetFastArrayStructItemArrayMemberIndex (const FReplicationStateDescriptor *StructDescriptor)
 
template<typename FastArrayType >
static TEnableIf< TModels_V< FFastArraySerializer::CPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters & >, void >::Type CallPostReplicatedReceiveOrNot (FastArrayType &ArraySerializer, int32 OldArraySize, bool bHasUnresolvedReferences)
 
template<typename FastArrayType >
static TEnableIf<!TModels_V< FFastArraySerializer::CPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters & >, void >::Type CallPostReplicatedReceiveOrNot (FastArrayType &ArraySerializer, int32 OldArraySize, bool bHasUnresolvedReferences)
 

Detailed Description

Utility methods to behave similar to FastArraySerializer

Member Function Documentation

◆ ApplyReplicatedState()

template<typename FastArrayType , typename ItemArrayType >
void UE::Net::Private::FFastArrayReplicationFragmentHelper::ApplyReplicatedState ( FastArrayType *  DstFastArray,
ItemArrayType *  DstWrappedArray,
FastArrayType *  SrcFastArray,
const ItemArrayType *  SrcWrappedArray,
const FReplicationStateDescriptor ArrayElementDescriptor,
FReplicationStateApplyContext Context 
)
static

Apply received state and try to behave like current FastArrays

◆ CallPostReplicatedReceiveOrNot() [1/2]

template<typename FastArrayType >
static TEnableIf< TModels_V< FFastArraySerializer::CPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters & >, void >::Type UE::Net::Private::FFastArrayReplicationFragmentHelper::CallPostReplicatedReceiveOrNot ( FastArrayType &  ArraySerializer,
int32  OldArraySize,
bool  bHasUnresolvedReferences 
)
inlinestatic

Conditionally invoke PostReplicatedReceive method depending on if it is defined or not We only want to do this for FastArrays that define PostReplicatedReceive since it might require extra work to calculate the required parameters

◆ CallPostReplicatedReceiveOrNot() [2/2]

template<typename FastArrayType >
static TEnableIf<!TModels_V< FFastArraySerializer::CPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters & >, void >::Type UE::Net::Private::FFastArrayReplicationFragmentHelper::CallPostReplicatedReceiveOrNot ( FastArrayType &  ArraySerializer,
int32  OldArraySize,
bool  bHasUnresolvedReferences 
)
inlinestatic

◆ ConditionalRebuildItemMap()

template<typename FastArrayType , typename ItemArrayType >
void UE::Net::Private::FFastArrayReplicationFragmentHelper::ConditionalRebuildItemMap ( FastArrayType &  ArraySerializer,
const ItemArrayType &  Items,
bool  bForceRebuild 
)
static

Rebuild IndexMap for FastArrraySerializer

◆ GetFastArrayStructItemArrayMemberIndex()

uint32 UE::Net::Private::FFastArrayReplicationFragmentHelper::GetFastArrayStructItemArrayMemberIndex ( const FReplicationStateDescriptor StructDescriptor)
static

Find the member index of the FastArrayIteArray, used to support FastArrayNetSerializers with extra properties

◆ InternalApplyArrayElement()

void UE::Net::Private::FFastArrayReplicationFragmentHelper::InternalApplyArrayElement ( const FReplicationStateDescriptor ArrayElementDescriptor,
void *RESTRICT  Dst,
const void *RESTRICT  Src 
)
static

Apply array element, only replicated items will be applied, using the serializers' Apply function if present

◆ InternalCompareArrayElement()

bool UE::Net::Private::FFastArrayReplicationFragmentHelper::InternalCompareArrayElement ( const FReplicationStateDescriptor ArrayElementDescriptor,
void *RESTRICT  Dst,
const void *RESTRICT  Src 
)
static

Compare array element, only replicated items will be compared

◆ InternalCopyArrayElement()

void UE::Net::Private::FFastArrayReplicationFragmentHelper::InternalCopyArrayElement ( const FReplicationStateDescriptor ArrayElementDescriptor,
void *RESTRICT  Dst,
const void *RESTRICT  Src 
)
static

Copy array element, only replicated items will be copied


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