TFastArraySerializeHelper

Helper struct that contains common methods / logic for standard Fast Array serialization and Delta Struct Fast Array serialization.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/NetSerialization.h

Include

#include "Engine/NetSerialization.h"

Syntax

template<typename Type, typename SerializerType>
struct TFastArraySerializeHelper

Remarks

Helper struct that contains common methods / logic for standard Fast Array serialization and Delta Struct Fast Array serialization.

Variables

Name Description

Public variable

SerializerType ...

 

ArraySerializer

The actual FFastArraySerializer struct we're serializing.

Public variable

TArray< Type > ...

 

Items

Set of array elements we're serializing.

Public variable

FNetDeltaSerial...

 

Parms

Cached DeltaSerialize params.

Public variable

UScriptStruct &...

 

Struct

Array element type struct.

Functions

Name Description

Public function

void

 

BuildChangedAndDeletedBuffers

(
    TMap< int32, int32 >& NewIDToKeyMa...,
    const TMap< int32, int32 >* Ol...,
    TArray< FFastArraySerializer_FastAr...,
    TArray< int32, TInlineAllocator< 8 ...
)

Iterates over the current set of properties, comparing their keys with our old state, to figure out which have changed and need to be serialized.

Public function Const

int32

 

CalcNumItemsForConsideration()

Calculates the number of Items that actually need to be written.

Public function

bool

 

ConditionalCreateNewDeltaState

(
    const TMap< int32, int32 >& OldIDT...,
    const int32 BaseReplicationKey
)

Checks to see if the ArrayReplicationKey has changed, and if so creates a new DeltaState that is passed out to the caller.

Public function Const

void

 

ConditionalLogSerializerState

(
    const TMap< int32, int32 >* Ol...
)

Conditionally logs the important state of the serializer. For debug purposes only.

Public function

void

 

ConditionalRebuildItemMap()

Conditionally rebuilds the ID to Index map for items.

Public function

void

 

PostReceiveCleanup

(
    FFastArraySerializerHeader& Header,
    TArray< int32, TInlineAllocator< 8 ...,
    TArray< int32, TInlineAllocator< 8 ...,
    GuidMapType& GuidMap
)

Manages any cleanup work that needs to be done after receiving elements, such as looking for items that were implicitly deleted, removing all deleted items, firing off any PostReceive / PostDeleted events, etc.

Public function Const

bool

 

ReadDeltaHeader

(
    FFastArraySerializerHeader& Header
)

Reads in a FFastArraySerializerHeader

Public function Const

void

 

WriteDeltaHeader

(
    FFastArraySerializerHeader& Header
)

Writes out a FFastArraySerializerHeader

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