engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FCborReader类 参考

Reader for a the cbor protocol encoded stream 更多...

#include <CborReader.h>

Public 成员函数

 FCborReader (FArchive *InStream, ECborEndianness InReaderEndianness=ECborEndianness::Platform)
 Construct a CBOR reader. 更多...
 
const FArchive * GetArchive () const
 
const FCborContext & GetContext () const
 The cbor context of the reader can either be a container context or a dummy. 更多...
 
FCborHeader GetError () const
 
bool IsError () const
 
bool ReadNext (FCborContext &OutContext)
 Read the next value from the cbor stream. 更多...
 
bool SkipContainer (ECborCode ContainerType)
 Skip a container of ContainerType type 更多...
 

详细描述

Reader for a the cbor protocol encoded stream

参见
http://cbor.io

构造及析构函数说明

◆ FCborReader()

FCborReader::FCborReader ( FArchive *  InStream,
ECborEndianness  InReaderEndianness = ECborEndianness::Platform 
)

Construct a CBOR reader.

参数
InStreamThe stream containing the CBOR data.
InReaderEndiannessSpecify 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()

const FCborContext & FCborReader::GetContext ( ) const

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()

FCborHeader FCborReader::GetError ( ) const
返回
A cbor Header containing an error code as its raw code.

◆ IsError()

bool FCborReader::IsError ( ) const
返回
true if the reader is in error.

◆ ReadNext()

bool FCborReader::ReadNext ( FCborContext &  OutContext)

Read the next value from the cbor stream.

参数
OutContextthe 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

参数
ContainerTypethe container we expect to skip.
返回
true if successful, false if the current container wasn't a ContainerType or an error occurred.

该类的文档由以下文件生成: