Navigation
API > API/Runtime > API/Runtime/IrisCore
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
| Name | FNetSerializerArrayStorage |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Serialization/NetSerializerArrayStorage.h |
| Include Path | #include "Iris/Serialization/NetSerializerArrayStorage.h" |
Syntax
template<typename QuantizedElementType, typename AllocationPolicy>
class FNetSerializerArrayStorage
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetSerializerArrayStorage() |
FNetSerializerArrayStorage Implementation. | Iris/Serialization/NetSerializerArrayStorage.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ArrayType | FNetSerializerArrayStorage< QuantizedElementType, AllocationPolicy > | Verify that type is pod and trivially copyable. | Iris/Serialization/NetSerializerArrayStorage.h |
| ElementAllocatorType | AllocationPolicy::template ForElementType< ElementType > | Iris/Serialization/NetSerializerArrayStorage.h | |
| ElementType | QuantizedElementType | Iris/Serialization/NetSerializerArrayStorage.h | |
| SizeType | AllocationPolicy::SizeType | Iris/Serialization/NetSerializerArrayStorage.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllocatorInstance | ElementAllocatorType | Iris/Serialization/NetSerializerArrayStorage.h | ||
| ArrayMaxCapacity | SizeType | Iris/Serialization/NetSerializerArrayStorage.h | ||
| ArrayNum | SizeType | Iris/Serialization/NetSerializerArrayStorage.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AdjustSize
(
FNetSerializationContext& Context, |
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 | Iris/Serialization/NetSerializerArrayStorage.h | |
void Clone
(
FNetSerializationContext& Context, |
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() | Iris/Serialization/NetSerializerArrayStorage.h | |
void Free
(
FNetSerializationContext& Context |
Free - Free allocated memory and reset state. | Iris/Serialization/NetSerializerArrayStorage.h | |
const ElementType * GetData () |
Iris/Serialization/NetSerializerArrayStorage.h | ||
ElementType * GetData () |
Iris/Serialization/NetSerializerArrayStorage.h | ||
SizeType Num() |
Iris/Serialization/NetSerializerArrayStorage.h |