ScopedCborArchiveEndianness

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

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

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