Reader for a the cbor protocol encoded stream
更多...
#include <CborReader.h>
Reader for a the cbor protocol encoded stream
- 参见
- http://cbor.io
◆ FCborReader()
| FCborReader::FCborReader |
( |
FArchive * |
InStream, |
|
|
ECborEndianness |
InReaderEndianness = ECborEndianness::Platform |
|
) |
| |
Construct a CBOR reader.
- 参数
-
| InStream | The stream containing the CBOR data. |
| InReaderEndianness | Specify which endianness should be use to read the archive. |
- 注解
- 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.
◆ GetArchive()
| const FArchive * FCborReader::GetArchive |
( |
| ) |
const |
- 返回
- 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.
- 返回
- The current cbor context.
◆ GetError()
- 返回
- A cbor Header containing an error code as its raw code.
◆ IsError()
| bool FCborReader::IsError |
( |
| ) |
const |
- 返回
- true if the reader is in error.
◆ ReadNext()
Read the next value from the cbor stream.
- 参数
-
| OutContext | the context to read the value into. |
- 返回
- true if successful, false if an error was returned or the end of the stream was reached.
◆ SkipContainer()
| bool FCborReader::SkipContainer |
( |
ECborCode |
ContainerType | ) |
|
Skip a container of ContainerType type
- 参数
-
| ContainerType | the container we expect to skip. |
- 返回
- true if successful, false if the current container wasn't a ContainerType or an error occurred.
该类的文档由以下文件生成: