UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FastArraySerializerImplementation.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5// HEADER_UNIT_SKIP - Bad include. This header can't compile standalone
6
7#if UE_WITH_IRIS
9
10#define UE_NET_IMPLEMENT_FASTARRAY(FastArrayType) \
11UE::Net::CreateAndRegisterReplicationFragmentFunc FastArrayType::GetFastArrayCreateReplicationFragmentFunction() \
12{ \
13 auto CreateFastArrayReplicationFragmentFunction = [](UObject* InLocalOwner, const UE::Net::FReplicationStateDescriptor* InLocalDescriptor, UE::Net::FFragmentRegistrationContext& InLocalContext) \
14 { \
15 return UE::Net::Private::CreateAndRegisterFragment<FastArrayType>(InLocalOwner, InLocalDescriptor, InLocalContext); \
16 }; \
17 return CreateFastArrayReplicationFragmentFunction; \
18}
19
20#define UE_NET_IMPLEMENT_FASTARRAY_STUB(FastArrayType) \
21UE::Net::CreateAndRegisterReplicationFragmentFunc FastArrayType::GetFastArrayCreateReplicationFragmentFunction() \
22{ \
23 return nullptr; \
24}
25
26#else
27#define UE_NET_IMPLEMENT_FASTARRAY(...)
28#define UE_NET_IMPLEMENT_FASTARRAY_STUB(...)
29#endif