Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/Serialization
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/Serialization/NetSerializerArrayStorage.h |
| Include | #include "Iris/Serialization/NetSerializerArrayStorage.h" |
Syntax
template<typename QuantizedElementType, typename AllocationPolicy>
class FNetSerializerArrayStorage
Remarks
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
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor - Typically not invoked as states containing FNetSerializerArrayStorage typically are zero initialized |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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 | |
| 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() | |
| void | Free
(
FNetSerializationContext& Context |
Free - Free allocated memory and reset state. | |
| const ElementType * | GetData () |
||
| ElementType * | GetData () |
||
| SizeType | Num () |
Typedefs
| Name | Description |
|---|---|
| ArrayType | Verify that type is pod and trivially copyable. |
| ElementAllocatorType | |
| ElementType | |
| SizeType |