Navigation
API > API/Runtime > API/Runtime/NetCore > API/Runtime/NetCore/FFastArraySerializer
Description
Performs "struct delta" serialization on the items in the FastArraySerializer. This method relies more directly on FRepLayout for management, and will only send properties that have changed since the last update. This is potentially more CPU intensive since we'll be doing comparisons, but should require less bandwidth.
For this method to work, the following must be true:
- Your array of FFastArraySerializerItems must be a top level UPROPERTY within your FFastArraySerializer.
- Your array of FFastArraySerializerItems must not be marked RepSkip.
- Your array of FFastArraySerializerItems must be the only replicated array of FFastArraySerializerItems within the FastArraySerializer. Note, it's OK to have multiple arrays of items, as long as only one is replicated (all others must be marked RepSkip).
- Your FFastArraySerializer must not be nested in a static array.
- Your array of FFastArraySerializerItem must not be nested in a static array.
| Name | FastArrayDeltaSerialize_DeltaSerializeStructs |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Core/Classes/Net/Serialization/FastArraySerializer.h |
| Include Path | #include "Net/Serialization/FastArraySerializer.h" |
template<typename Type, typename SerializerType>
static bool FastArrayDeltaSerialize_DeltaSerializeStructs
(
TArray < Type > & Items,
FNetDeltaSerializeInfo & Parms,
SerializerType & ArraySerializer
)
Parameters
| Name | Remarks |
|---|---|
| Items | Array of items owned by ArraySerializer. |
| Parms | Set of parms that dictate what serialization will do / return. |
| ArraySerializer | The typed subclass of FFastArraySerializer that we're serializing. |