#include <CborReader.h>
Reader for a the cbor protocol encoded stream
- See also
- http://cbor.io
◆ FCborReader()
Construct a CBOR reader.
- Parameters
-
| InStream | The stream containing the CBOR data. |
| InReaderEndianness | Specify which endianness should be use to read the archive. |
- Note
- CBOR standard endianness is big endian. For interoperability with external tools, the standard endianness should be used. For internal usage, the platform endianness is faster.
◆ ~FCborReader()
| FCborReader::~FCborReader |
( |
| ) |
|
◆ GetArchive()
| const FArchive * FCborReader::GetArchive |
( |
| ) |
const |
- Returns
- the archive we are reading from.
◆ GetContext()
The cbor context of the reader can either be a container context or a dummy. A reference to the context shouldn't be held while calling ReadNext.
- Returns
- The current cbor context.
◆ GetError()
- Returns
- A cbor Header containing an error code as its raw code.
◆ IsError()
| bool FCborReader::IsError |
( |
| ) |
const |
- Returns
- true if the reader is in error.
◆ ReadNext()
Read the next value from the cbor stream.
- Parameters
-
| OutContext | the context to read the value into. |
- Returns
- true if successful, false if an error was returned or the end of the stream was reached.
◆ SkipContainer()
Skip a container of ContainerType type
- Parameters
-
| ContainerType | the container we expect to skip. |
- Returns
- true if successful, false if the current container wasn't a ContainerType or an error occurred.
The documentation for this class was generated from the following files: