Navigation
API > API/Runtime > API/Runtime/Cbor
Reader for a the cbor protocol encoded stream
| Name | FCborReader |
| Type | class |
| Header File | /Engine/Source/Runtime/Cbor/Public/CborReader.h |
| Include Path | #include "CborReader.h" |
Syntax
class FCborReader
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCborReader
(
FArchive* InStream, |
Construct a CBOR reader. | CborReader.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FCborReader() |
CborReader.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ContextStack | TArray< FCborContext > | Holds the context stack for the reader. | CborReader.h | |
| Endianness | ECborEndianness | Read the CBOR data using the specified endianness. | CborReader.h | |
| Stream | FArchive * | The archive we are reading from. | CborReader.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FArchive * GetArchive() |
CborReader.h | ||
const FCborContext & GetContext () |
The cbor context of the reader can either be a container context or a dummy. | CborReader.h | |
FCborHeader GetError() |
CborReader.h | ||
bool IsError() |
CborReader.h | ||
bool ReadNext
(
FCborContext& OutContext |
Read the next value from the cbor stream. | CborReader.h | |
bool SkipContainer
(
ECborCode ContainerType |
Skip a container of ContainerType type | CborReader.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ReadPrimValue
(
FCborContext& OutContext, |
Read a Prim value from Ar into OutContext. | CborReader.h | |
static uint64 ReadUIntValue
(
FCborContext& OutContext, |
Read a uint value from Ar into OutContext and also return it. | CborReader.h |