ScopedCborArchiveEndianness

Ensure an archive is swapping the bytes according to which endianness was requested to read or write the CBOR.

Choose your operating system:

Windows

macOS

Linux

References

Module

Cbor

Header

/Engine/Source/Runtime/Cbor/Public/CborTypes.h

Include

#include "CborTypes.h"

Syntax

class ScopedCborArchiveEndianness

Remarks

Ensure an archive is swapping the bytes according to which endianness was requested to read or write the CBOR. The official CBOR endianness is 'big endian', but Unreal uses boths for backward compability reasons.

Constructors

Name Description

Public function

ScopedCborArchiveEndianness

(
    FArchive& InArchive,
    ECborEndianness Endianness
)

Set the archive to read or write the data according to the selected endianness.

Destructors