Navigation
API > API/Runtime > API/Runtime/Cbor
Ensure an archive is swapping the bytes according to which endianness was requested to read or write the CBOR. @node The official CBOR endianness is 'big endian', but Unreal uses boths for backward compability reasons.
| Name | ScopedCborArchiveEndianness |
| Type | class |
| Header File | /Engine/Source/Runtime/Cbor/Public/CborTypes.h |
| Include Path | #include "CborTypes.h" |
Syntax
class ScopedCborArchiveEndianness
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ScopedCborArchiveEndianness
(
FArchive& InArchive, |
Set the archive to read or write the data according to the selected endianness. | CborTypes.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~ScopedCborArchiveEndianness() |
CborTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Archive | FArchive & | CborTypes.h | ||
| bOldByteSwappingState | bool | CborTypes.h |