UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy > Class Template Reference

#include <NetSerializerArrayStorage.h>

Public Types

typedef FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicyArrayType
 
typedef QuantizedElementType ElementType
 
typedef AllocationPolicy::template ForElementType< ElementTypeElementAllocatorType
 
typedef AllocationPolicy::SizeType SizeType
 

Public Member Functions

 FNetSerializerArrayStorage ()
 
void AdjustSize (FNetSerializationContext &Context, SizeType InNum)
 
void Free (FNetSerializationContext &Context)
 
void Clone (FNetSerializationContext &Context, const ArrayType &Source)
 
const ElementTypeGetData () const
 
ElementTypeGetData ()
 
SizeType Num () const
 

Detailed Description

template<typename QuantizedElementType, typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
class UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >

Helper class to manage storage of dynamic arrays in quantized data FNetSerializerArrayStorage is only intended to be used from within Quantized replication states that requires dynamic storage as it has very specific expectations and limitations. NOTE: A NetSerializer using FNetSerializerArrayStorage MUST specify the trait bHasDynamicState A zero constructed state is considered valid

Member Typedef Documentation

◆ ArrayType

◆ ElementAllocatorType

template<typename QuantizedElementType , typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
typedef AllocationPolicy::template ForElementType<ElementType> UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >::ElementAllocatorType

◆ ElementType

◆ SizeType

template<typename QuantizedElementType , typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
typedef AllocationPolicy::SizeType UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >::SizeType

Constructor & Destructor Documentation

◆ FNetSerializerArrayStorage()

Constructor - Typically not invoked as states containing FNetSerializerArrayStorage typically are zero initialized

Member Function Documentation

◆ AdjustSize()

AdjustSize - Adjust the size of FNetSerializerArrayStorage as needed The state storage in which the storage is located is expected to be in a valid state which can either be zero initialized or a previous valid state

◆ Clone()

Clone - Clone dynamic storage from Source No assumptions of the validity of the target is made, as this is typically called AFTER a memcopy is made to the target state which invalidates all dynamic data Should typically only be called from within a the implemntation of NetSerializer::CloneDynamicState()

◆ Free()

Free - Free allocated memory and reset state. it is valid to pass in a zero-initialized state The state storage in which the storage is located is expected to be in a valid state which can either be zero initialized or a previous valid state.
Should typically only be called from within a the implemntation of NetSerializer::FreeDynamicState()

◆ GetData() [1/2]

template<typename QuantizedElementType , typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
ElementType * UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >::GetData ( )
inline

◆ GetData() [2/2]

template<typename QuantizedElementType , typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
const ElementType * UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >::GetData ( ) const
inline

◆ Num()

template<typename QuantizedElementType , typename AllocationPolicy = AllocationPolicies::FElementAllocationPolicy>
SizeType UE::Net::FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy >::Num ( ) const
inline

The documentation for this class was generated from the following file: