Navigation
API > API/Runtime > API/Runtime/IrisCore
TNativeFastArrayReplicationFragment - Binds a typed FastArray to a FReplicationfragments Used to support FFastArray-based serialization with some minor code modifications The FastArray must be changed to inherit from IrisFastArraySerializer instead of FFastArraySerializer which will inject a ReplicationStateHeader and a fixed size changemask, in it most basic form this allows us to not keep a full copy the fast array to detect dirtiness but instead only store the ReplicationID and ReplicationKeys. We can also provide an alternative interface for editing the FastArrays which allows us update dirtiness directly and skip the poll step completely.
| Name | TNativeFastArrayReplicationFragment |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/FastArrayReplicationFragment.h |
| Include Path | #include "Iris/ReplicationSystem/FastArrayReplicationFragment.h" |
Syntax
template<typename FastArrayItemType, typename FastArrayType, typename PollingPolicyType>
class TNativeFastArrayReplicationFragment : public UE::Net::Private::FNativeFastArrayReplicationFragmentBase
Inheritance Hierarchy
- FReplicationFragment → FNativeFastArrayReplicationFragmentBase → TNativeFastArrayReplicationFragment
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNativeFastArrayReplicationFragment
(
EReplicationFragmentTraits InTraits, |
TNativeFastArrayReplicationFragment implementation | Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ItemArrayType | TArray< FastArrayItemType > | Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PollingPolicy | PollingPolicyType | Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Register
(
FFragmentRegistrationContext& Fragments, |
Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FastArrayType * GetFastArraySerializerFromOwner() |
Get FastArraySerializer from owner. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
bool IsDirty() |
Iris/ReplicationSystem/FastArrayReplicationFragment.h | ||
bool PollAllState() |
Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Overridden from FReplicationFragment
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyReplicatedState
(
FReplicationStateApplyContext& Context |
FReplicationFragment implementation. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual void CallRepNotifies
(
FReplicationStateApplyContext& Context |
Optional method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::HasRepNotifies trait set. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual bool PollReplicatedState
(
EReplicationFragmentPollFlags PollOption |
Optional Poll method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::NeedsPoll trait set. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual void ReplicatedStateToString
(
FStringBuilderBase& StringBuilder, |
Optional method to output state data to StringBuilder. | Iris/ReplicationSystem/FastArrayReplicationFragment.h |