Public Member Functions | List of all members
ndn::BinaryXmlDecoder Class Reference

A BinaryXmlDecoder extends a C ndn_BinaryXmlDecoder struct and wraps related functions. More...

#include <binary-xml-decoder.hpp>

Inheritance diagram for ndn::BinaryXmlDecoder:
ndn_BinaryXmlDecoder

Public Member Functions

 BinaryXmlDecoder (const uint8_t *input, size_t inputLength)
 Initialize the base ndn_BinaryXmlDecoder struct with the input.
 
bool peekDTag (unsigned int expectedTag)
 Decode the header from the input starting at offset, and if it is a DTAG where the value is the expectedTag, then return true, else false. More...
 

Additional Inherited Members

- Public Attributes inherited from ndn_BinaryXmlDecoder
const uint8_t * input
 
size_t inputLength
 
size_t offset
 
size_t previouslyPeekedDTagStartOffset
 
size_t previouslyPeekedDTagEndOffset
 
unsigned int previouslyPeekedDTag
 

Detailed Description

A BinaryXmlDecoder extends a C ndn_BinaryXmlDecoder struct and wraps related functions.

Member Function Documentation

bool ndn::BinaryXmlDecoder::peekDTag ( unsigned int  expectedTag)
inline

Decode the header from the input starting at offset, and if it is a DTAG where the value is the expectedTag, then return true, else false.

Do not update offset, including if throwing an exception.

Parameters
expectedTagthe expected value for DTAG
Returns
true if got the expected tag, else false

The documentation for this class was generated from the following file: