FCborStructSerializerBackend

Implements a writer for [UStruct](API\Runtime\CoreUObject\UObject\UStruct) serialization using Cbor.

Windows
MacOS
Linux

Inheritance Hierarchy

IStructSerializerBackend

FCborStructSerializerBackend

References

Module

Serialization

Header

/Engine/Source/Runtime/Serialization/Public/Backends/CborStructSerializerBackend.h

Include

#include "Backends/CborStructSerializerBackend.h"

Syntax

class FCborStructSerializerBackend : public IStructSerializerBackend

Remarks

Implements a writer for UStruct serialization using Cbor.

Constructors

Name Description

Public function

FCborStructSerializerBackend

(
    FArchive& InArchive
)

Use the two-parameter constructor with EStructSerializerBackendFlags::Legacy only if you need backwards compatibility with code compiled prior to 4.22; otherwise use EStructSerializerBackendFlags::Default.

Public function

FCborStructSerializerBackend

(
    FArchive& InArchive,
    const EStructSerializerBackendFlags...
)

Creates and initializes a new instance with the given flags.

Destructors

Overridden from IStructSerializerBackend

Name Description

Public function Virtual

void

 

BeginArray

(
    const FStructSerializerState& Stat...
)

Signals the beginning of an array.

Public function Virtual

void

 

BeginStructure

(
    const FStructSerializerState& Stat...
)

Signals the beginning of a child structure.

Public function Virtual

void

 

EndArray

(
    const FStructSerializerState& Stat...
)

Signals the end of an array.

State.ValueProperty points to the property that holds the array.

Public function Virtual

void

 

EndStructure

(
    const FStructSerializerState& Stat...
)

Signals the end of an object.

State.ValueProperty points to the property that holds the struct.

Public function Virtual

void

 

WriteComment

(
    const FString& Comment
)

Writes a comment to the output stream.

Public function Virtual

bool

 

WritePODArray

(
    const FStructSerializerState& Stat...
)

Writes a POD Array property to the output stream.

Public function Virtual

void

 

WriteProperty

(
    const FStructSerializerState& Stat...,
    int32 ArrayIndex
)

Writes a property to the output stream.

Deprecated Functions

Name Description

Public function

 

FCborStructSerializerBackend

(
    FArchive& InArchive
)

Use the two-parameter constructor with EStructSerializerBackendFlags::Legacy only if you need backwards compatibility with code compiled prior to 4.22; otherwise use EStructSerializerBackendFlags::Default.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss