Navigation
API > API/Runtime > API/Runtime/Serialization
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.
| Name | FStructSerializer |
| Type | class |
| Header File | /Engine/Source/Runtime/Serialization/Public/StructSerializer.h |
| Include Path | #include "StructSerializer.h" |
Syntax
class FStructSerializer
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Serialize
(
const StructType& Struct, |
Serializes a given USTRUCT to a string using the default policy. | StructSerializer.h | |
static void Serialize
(
const void* Struct, |
Serializes a given data structure of the specified type using the default policy. | StructSerializer.h | |
static void Serialize
(
const StructType& Struct, |
Serializes a given USTRUCT to a string using the specified policy. | StructSerializer.h | |
static void Serialize
(
const void* Struct, |
Serializes a given data structure of the specified type using the specified policy. | StructSerializer.h | |
static void SerializeElement
(
const void* Address, |
Serializes a given element of a data structure of the specified type using the specified policy. | StructSerializer.h |