Navigation
API > API/Runtime > API/Runtime/NetCore > API/Runtime/NetCore/Net > API/Runtime/NetCore/Net/Serialization
Inheritance Hierarchy
- FFastArraySerializer
- FActiveGameplayCueContainer
- FActiveGameplayEffectsContainer
- FGameplayAbilitySpecContainer
- FInstancedActorsDeltaList
- FIrisFastArraySerializer
- FLobbyPlayerStateInfoArray
- FReplicatedPredictionKeyMap
- FUIFrameworkCanvasBoxSlotList
- FUIFrameworkGameLayerSlotList
- FUIFrameworkOverlaySlotList
- FUIFrameworkStackBoxSlotList
- FUIFrameworkUserWidgetNamedSlotList
- FUIFrameworkWidgetTree
- FWorldPartitionDestructibleHLODState
References
| Module | NetCore |
| Header | /Engine/Source/Runtime/Net/Core/Classes/Net/Serialization/FastArraySerializer.h |
| Include | #include "Net/Serialization/FastArraySerializer.h" |
Syntax
USTRUCT ()
struct FFastArraySerializer
Remarks
Base struct for wrapping the array used in Fast TArray Replication
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ArrayReplicationKey | Counter used to track array replication. | |
| TMap< int32, FFastArraySerializerGuidReferences > | GuidReferencesMap | List of items that need to be re-serialized when the referenced objects are mapped | |
| TMap< int32, FGuidReferencesMap > | GuidReferencesMap_StructDelta | List of items that need to be re-serialized when the referenced objects are mapped. | |
| int32 | IDCounter | Counter used to assign IDs to new elements. | |
| TMap< int32, int32 > | ItemMap | Maps Element ReplicationID to Array Index. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FastArrayDeltaSerialize
(
TArray< Type >& Items, |
Performs "standard" delta serialization on the items in the FastArraySerializer. | |
| const EFastArraySerializerDeltaFlags | |||
| const int32 | |||
| const int32 | |||
| void | |||
| void | This must be called if you just remove something from the array | ||
| void | MarkItemDirty
(
FFastArraySerializerItem& Item |
This must be called if you add or change an item in the array | |
| void | PostReplicatedAdd
(
const TArrayView< int32 >& AddedIndices, |
Called after adding all new elements and after the elements themselves are notified. | |
| void | PostReplicatedChange
(
const TArrayView< int32 >& ChangedIndices, |
Called after updating all existing elements with new data and after the elements themselves are notified. | |
| void | PreReplicatedRemove
(
const TArrayView< int32 >& RemovedIndices, |
Called before removing elements and after the elements themselves are notified. | |
| void | SetDeltaSerializationEnabled
(
const bool bEnabled |
||
| bool | ShouldWriteFastArrayItem
(
const Type& Item, |
Helper function for FastArrayDeltaSerialize to consolidate the logic of whether to consider writing an item in a fast TArray during network serialization. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| CPostReplicatedReceiveFuncable | Concept used to detect if PostReplicatedReceive is defined or not. | ||
| FPostReplicatedReceiveParameters | If a function with the signature void PostReplicatedReceive(const FFastArraySerializer::FPostReplicatedReceiveParameters& Parameters) is defined in the derived struct It will be called after each call to NetDeltaSerialize on the receiving end, including if we have mapped some unmapped objects |