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