![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StructSerializer.h>
Static Public Member Functions | |
| static SERIALIZATION_API void | Serialize (const void *Struct, UStruct &TypeInfo, IStructSerializerBackend &Backend, const FStructSerializerPolicies &Policies) |
| static SERIALIZATION_API void | SerializeElement (const void *Address, FProperty *Property, int32 ElementIndex, IStructSerializerBackend &Backend, const FStructSerializerPolicies &Policies) |
| static void | Serialize (const void *Struct, UStruct &TypeInfo, IStructSerializerBackend &Backend) |
| template<typename StructType > | |
| static void | Serialize (const StructType &Struct, IStructSerializerBackend &Backend) |
| template<typename StructType > | |
| static void | Serialize (const StructType &Struct, IStructSerializerBackend &Backend, const FStructSerializerPolicies &Policies) |
Implements a static class that can serialize UStruct based types.
This class implements the basic functionality for the serialization of UStructs, such as iterating a structure's properties and writing property values. The actual writing of serialized output data is performed by serialization backends, which allows this class to remain serialization format agnostic.
The serializer's behavior can be customized with serialization policies. This allows for control over how to handle null values, circular references and other edge cases.
|
inlinestatic |
Serializes a given USTRUCT to a string using the default policy.
| StructType | The type of the struct to serialize. |
| Struct | The struct to serialize. |
| Backend | The serialization backend to use. |
|
inlinestatic |
Serializes a given USTRUCT to a string using the specified policy.
| StructType | The type of the struct to serialize. |
| Struct | The struct to serialize. |
| Backend | The serialization backend to use. |
| Policies | The serialization policies to use. |
|
inlinestatic |
Serializes a given data structure of the specified type using the default policy.
| Struct | The data structure to serialize. |
| TypeInfo | The structure's type information. |
| Backend | The serialization backend to use. |
|
static |
Serializes a given data structure of the specified type using the specified policy.
| Struct | The data structure to serialize. |
| TypeInfo | The structure's type information. |
| Backend | The serialization backend to use. |
| Policies | The serialization policies to use. |
|
static |
Serializes a given element of a data structure of the specified type using the specified policy.
| Address | The address of the container of the property to serialize. |
| Property | The property to serialize. |
| ElementIndex | The index of the element to serialize if property is a container. |
| Backend | The serialization backend to use. |
| Policies | The serialization policies to use. |