Navigation
API > API/Runtime > API/Runtime/IrisCore
Warnings * Beware of padding in your quantized state as creating it on the stack for example may cause non-determinstic state.
Parameters passed to a NetSerializer's Quantize function. The purpose of the Quantize function is to transform the original source data to a POD state. Quantized state buffers are passed to memcpy and similar functions. Apart from required to being POD it must also be bit deterministic. As state buffers are initialized to zero before first use a quantized state of zero should represent a valid state which the serializer's other functions can operate on. There is an option to allow dynamic state which can be used by serializers operating on container types to minimize the footprint of the quantized state, rather than always having a fixed buffer that can handle the maximum number of elements in the container for example. For dynamic state additional functions need to be implemented; CloneDynamicState and FreeDynamicState.
Beware of padding in your quantized state as creating it on the stack for example may cause non-determinstic state.
| Name | FNetQuantizeArgs |
| Type | struct |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Serialization/NetSerializer.h |
| Include Path | #include "Iris/Serialization/NetSerializer.h" |
Syntax
struct FNetQuantizeArgs : public UE::Net::FNetSerializerBaseArgs
Inheritance Hierarchy
- FNetSerializerBaseArgs → FNetQuantizeArgs
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Source | NetSerializerValuePointer | A pointer to the non-quantized source data. | Iris/Serialization/NetSerializer.h | |
| Target | NetSerializerValuePointer | A pointer to the quantized state buffer which contains valid, but unknown, quantized state. | Iris/Serialization/NetSerializer.h |