Navigation
API > API/Runtime > API/Runtime/Serialization
Implements a writer for UStruct serialization using Cbor.
| Name | FCborStructSerializerBackend |
| Type | class |
| Header File | /Engine/Source/Runtime/Serialization/Public/Backends/CborStructSerializerBackend.h |
| Include Path | #include "Backends/CborStructSerializerBackend.h" |
Syntax
class FCborStructSerializerBackend : public IStructSerializerBackend
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCborStructSerializerBackend
(
FArchive& InArchive |
Creates and initializes a new legacy instance. | Backends/CborStructSerializerBackend.h | |
FCborStructSerializerBackend
(
FArchive& InArchive, |
Creates and initializes a new instance with the given flags. | Backends/CborStructSerializerBackend.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FCborStructSerializerBackend() |
Backends/CborStructSerializerBackend.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AccumulatedBytes | TArray< uint8 > | Stores the accumulated bytes extracted from UByteProperty/UIntProperty when writing a TArray |
Backends/CborStructSerializerBackend.h | |
| bSerializingByteArray | bool | Whether the serializer is encoding array of uint8/int8 | Backends/CborStructSerializerBackend.h | |
| CborWriter | FCborWriter | Holds the Cbor writer used for the actual serialization. | Backends/CborStructSerializerBackend.h | |
| Flags | EStructSerializerBackendFlags | Flags controlling the serialization behavior. | Backends/CborStructSerializerBackend.h |
Functions
Public
Overridden from IStructSerializerBackend
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginArray
(
const FStructSerializerState& State |
Signals the beginning of an array. | Backends/CborStructSerializerBackend.h | |
virtual void BeginStructure
(
const FStructSerializerState& State |
Signals the beginning of a child structure. | Backends/CborStructSerializerBackend.h | |
virtual void EndArray
(
const FStructSerializerState& State |
Signals the end of an array.State.ValueProperty points to the property that holds the array. | Backends/CborStructSerializerBackend.h | |
virtual void EndStructure
(
const FStructSerializerState& State |
Signals the end of an object.State.ValueProperty points to the property that holds the struct. | Backends/CborStructSerializerBackend.h | |
virtual void WriteComment
(
const FString& Comment |
Writes a comment to the output stream. | Backends/CborStructSerializerBackend.h | |
virtual bool WritePODArray
(
const FStructSerializerState& State |
Writes a POD Array property to the output stream. | Backends/CborStructSerializerBackend.h | |
virtual void WriteProperty
(
const FStructSerializerState& State, |
Writes a property to the output stream. | Backends/CborStructSerializerBackend.h |