![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FastArrayReplicationFragment.h>
Inheritance diagram for UE::Net::TNativeFastArrayReplicationFragment< FastArrayItemType, FastArrayType, PollingPolicyType >:Public Types | |
| typedef TArray< FastArrayItemType > | ItemArrayType |
Public Member Functions | |
| TNativeFastArrayReplicationFragment (EReplicationFragmentTraits InTraits, UObject *InOwner, const FReplicationStateDescriptor *InDescriptor) | |
| void | Register (FFragmentRegistrationContext &Fragments, EReplicationFragmentTraits Traits=EReplicationFragmentTraits::None) |
Public Member Functions inherited from UE::Net::FReplicationFragment | |
| FReplicationFragment (const FReplicationFragment &)=delete | |
| FReplicationFragment & | operator= (const FReplicationFragment &)=delete |
| FReplicationFragment (EReplicationFragmentTraits InTraits) | |
| virtual | ~FReplicationFragment () |
| EReplicationFragmentTraits | GetTraits () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from UE::Net::Private::FNativeFastArrayReplicationFragmentBase | |
| static IRISCORE_API void | InternalDequantizeFastArray (FNetSerializationContext &Context, uint8 *RESTRICT DstExternalBuffer, const uint8 *RESTRICT SrcInternalBuffer, const FReplicationStateDescriptor *FastArrayPropertyDescriptor) |
| static IRISCORE_API void | ToString (FStringBuilderBase &StringBuilder, const uint8 *ExternalStateBuffer, const FReplicationStateDescriptor *FastArrayPropertyDescriptor) |
Protected Attributes inherited from UE::Net::Private::FNativeFastArrayReplicationFragmentBase | |
| TRefCountPtr< const FReplicationStateDescriptor > | ReplicationStateDescriptor |
| UObject * | Owner |
| SIZE_T | WrappedArrayOffsetRelativeFastArraySerializerProperty |
Protected Attributes inherited from UE::Net::FReplicationFragment | |
| EReplicationFragmentTraits | Traits |
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.
| typedef TArray<FastArrayItemType> UE::Net::TNativeFastArrayReplicationFragment< FastArrayItemType, FastArrayType, PollingPolicyType >::ItemArrayType |
| UE::Net::TNativeFastArrayReplicationFragment< FastArrayItemType, FastArrayType, PollingPolicyType >::TNativeFastArrayReplicationFragment | ( | EReplicationFragmentTraits | InTraits, |
| UObject * | InOwner, | ||
| const FReplicationStateDescriptor * | InDescriptor | ||
| ) |
|
overrideprotectedvirtual |
This is called from the ReplicationSystem / ReplicationBridge whenever we have new data Depending on the traits of the fragment we either get pointer to a StateBuffer in the expected external format including changemask information or we get the raw quantized state buffer along with the changemask information for any received states.
Implements UE::Net::FReplicationFragment.
|
overrideprotectedvirtual |
Optional method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::HasRepNotifies trait set.
Reimplemented from UE::Net::FReplicationFragment.
|
inlineprotected |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Optional Poll method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::NeedsPoll trait set.
Reimplemented from UE::Net::FReplicationFragment.
| void UE::Net::TNativeFastArrayReplicationFragment< FastArrayItemType, FastArrayType, PollingPolicyType >::Register | ( | FFragmentRegistrationContext & | Fragments, |
| EReplicationFragmentTraits | Traits = EReplicationFragmentTraits::None |
||
| ) |
|
overrideprotectedvirtual |
Optional method to output state data to StringBuilder.
Reimplemented from UE::Net::FReplicationFragment.