Implements a writer for UStruct serialization using Cbor.
更多...
#include <CborStructSerializerBackend.h>
Implements a writer for UStruct serialization using Cbor.
◆ FCborStructSerializerBackend() [1/2]
| FCborStructSerializerBackend::FCborStructSerializerBackend |
( |
FArchive & |
InArchive | ) |
|
Creates and initializes a new legacy instance.
- 注解
- Deprecated, use the two-parameter constructor with EStructSerializerBackendFlags::Legacy if you need backwards compatibility with code compiled prior to 4.22.
- 参数
-
| InArchive | The archive to serialize into. |
◆ FCborStructSerializerBackend() [2/2]
| FCborStructSerializerBackend::FCborStructSerializerBackend |
( |
FArchive & |
InArchive, |
|
|
const EStructSerializerBackendFlags |
InFlags |
|
) |
| |
Creates and initializes a new instance with the given flags.
- 参数
-
| InArchive | The archive to serialize into. |
| InFlags | The flags that control the serialization behavior (typically EStructSerializerBackendFlags::Default). |
◆ BeginArray()
◆ BeginStructure()
◆ EndArray()
◆ EndStructure()
◆ WriteComment()
| virtual void FCborStructSerializerBackend::WriteComment |
( |
const FString & |
Comment | ) |
|
|
overridevirtual |
◆ WriteProperty()
| virtual void FCborStructSerializerBackend::WriteProperty |
( |
const FStructSerializerState & |
State, |
|
|
int32 |
ArrayIndex = 0 |
|
) |
| |
|
overridevirtual |
Writes a property to the output stream.
Depending on the context, properties to be written can be either object properties or array elements.
State.KeyProperty points to the key property that holds the data to write. State.KeyData points to the key property's data. State.ValueProperty points to the property that holds the value to write. State.ValueData points to the actual data to write. State.TypeInfo contains the data's type information State.ArrayIndex is the optional index if the data is a value in an array.
- 参数
-
| State | The serializer's current state. |
- 参见
- BeginArray, BeginStructure, EndArray, EndStructure, WriteComment
实现了 IStructSerializerBackend.
该类的文档由以下文件生成:
- CborStructSerializerBackend.h