35 : m_prefixAnn(std::move(prefixAnn))
37 if (!m_prefixAnn->getData()) {
42 template<encoding::Tag TAG>
47 NDN_THROW(
Error(
"PrefixAnnouncementHeader does not contain a PrefixAnnouncement"));
51 length += m_prefixAnn->getData()->wireEncode(encoder);
52 length += encoder.prependVarNumber(length);
Represents a TLV element of the NDN packet format.
uint32_t type() const noexcept
Return the TLV-TYPE of the Block.
void parse() const
Parse TLV-VALUE into sub-elements.
const Block & get(uint32_t type) const
Return the first sub-element of the specified TLV-TYPE.
A prefix announcement object that represents an application's intent of registering a prefix toward i...
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains classes and functions related to NDNLPv2.