22 #ifndef NDN_BINARYXMLDECODER_HPP
23 #define NDN_BINARYXMLDECODER_HPP
26 #include "../c/encoding/binary-xml-decoder.h"
42 ndn_BinaryXmlDecoder_initialize(
this, input, inputLength);
56 if ((error = ndn_BinaryXmlDecoder_peekDTag(
this, expectedTag, &gotExpectedTag)))
57 throw runtime_error(ndn_getErrorString(error));
59 return gotExpectedTag != 0;
Copyright (C) 2013-2015 Regents of the University of California.
Definition: common.hpp:35
A BinaryXmlDecoder extends a C ndn_BinaryXmlDecoder struct and wraps related functions.
Definition: binary-xml-decoder.hpp:35
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 expec...
Definition: binary-xml-decoder.hpp:52
Copyright (C) 2015 Regents of the University of California.
BinaryXmlDecoder(const uint8_t *input, size_t inputLength)
Initialize the base ndn_BinaryXmlDecoder struct with the input.
Definition: binary-xml-decoder.hpp:40
Copyright (C) 2013-2015 Regents of the University of California.
Definition: binary-xml-decoder.h:33