Navigation
API > API/Runtime > API/Runtime/NetCore > API/Runtime/NetCore/FFastArraySerializer
Helper struct that contains common methods / logic for standard Fast Array serialization and Delta Struct Fast Array serialization.
| Name | TFastArraySerializeHelper |
| Type | struct |
| Header File | /Engine/Source/Runtime/Net/Core/Classes/Net/Serialization/FastArraySerializer.h |
| Include Path | #include "Net/Serialization/FastArraySerializer.h" |
Syntax
template<typename Type, typename SerializerType>
struct TFastArraySerializeHelper
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArraySerializer | SerializerType & | The actual FFastArraySerializer struct we're serializing. | Net/Serialization/FastArraySerializer.h | |
| Items | TArray< Type > & | Set of array elements we're serializing. | Net/Serialization/FastArraySerializer.h | |
| Parms | FNetDeltaSerializeInfo & | Cached DeltaSerialize params. | Net/Serialization/FastArraySerializer.h | |
| Struct | UScriptStruct * | Array element type struct. | Net/Serialization/FastArraySerializer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildChangedAndDeletedBuffers
(
TMap< int32, int32 >& NewIDToKeyMap, |
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. | Net/Serialization/FastArraySerializer.h | |
void BuildChangedAndDeletedBuffersFromDefault
(
TMap< int32, int32 >& NewIDToKeyMap, |
Variant of BuildChangedAndDeletedBuffersFromDefault used when we initialize from the default state which we are not suppose to modify | Net/Serialization/FastArraySerializer.h | |
int32 CalcNumItemsForConsideration() |
Calculates the number of Items that actually need to be written. | Net/Serialization/FastArraySerializer.h | |
TEnableIf< TModels_V< CPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters >, void >::Type CallPostReplicatedReceiveOrNot
(
int32 OldArraySize |
Conditionally invoke PostReplicatedReceive method depending on if is defined or not | Net/Serialization/FastArraySerializer.h | |
TEnableIfCPostReplicatedReceiveFuncable, FastArrayType, constFFastArraySerializer::FPostReplicatedReceiveParameters >, void >::Type CallPostReplicatedReceiveOrNot
(
int32 |
Net/Serialization/FastArraySerializer.h | ||
bool ConditionalCreateNewDeltaState
(
const TMap< int32, int32 >& OldIDToKeyMap, |
Checks to see if the ArrayReplicationKey has changed, and if so creates a new DeltaState that is passed out to the caller. | Net/Serialization/FastArraySerializer.h | |
void ConditionalLogSerializerState
(
const TMap< int32, int32 >* OldIDToKeyMap |
Conditionally logs the important state of the serializer. For debug purposes only. | Net/Serialization/FastArraySerializer.h | |
void ConditionalRebuildItemMap () |
Conditionally rebuilds the ID to Index map for items. | Net/Serialization/FastArraySerializer.h | |
| 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. | Net/Serialization/FastArraySerializer.h | ||
bool ReadDeltaHeader
(
FFastArraySerializerHeader& Header |
Reads in a FFastArraySerializerHeader | Net/Serialization/FastArraySerializer.h | |
void WriteDeltaHeader
(
FFastArraySerializerHeader& Header |
Writes out a FFastArraySerializerHeader | Net/Serialization/FastArraySerializer.h |