59 template<encoding::Tag TAG>
65 static_cast<uint32_t>(m_reason));
66 length += encoder.prependVarNumber(length);
67 length += encoder.prependVarNumber(
tlv::Nack);
72 NackHeader::wireEncode<encoding::EncoderTag>(EncodingImpl<encoding::EncoderTag>& encoder)
const;
75 NackHeader::wireEncode<encoding::EstimatorTag>(EncodingImpl<encoding::EstimatorTag>& encoder)
const;
90 m_wire = buffer.block();
Copyright (c) 2013-2016 Regents of the University of California.
size_t prependNonNegativeIntegerBlock(EncodingImpl< TAG > &encoder, uint32_t type, uint64_t value)
Helper to prepend TLV block type type containing non-negative integer value.
EncodingImpl< EstimatorTag > EncodingEstimator
Class representing a wire element of NDN-TLV packet format.
NackReason
indicates the reason type of a network NACK
uint64_t readNonNegativeInteger(const Block &block)
Helper to read a non-negative integer from a block.
element_const_iterator elements_begin() const
EncodingImpl< EncoderTag > EncodingBuffer
element_container::const_iterator element_const_iterator
size_t elements_size() const
void reset()
Reset wire buffer of the element.
void parse() const
Parse wire buffer into subblocks.
std::ostream & operator<<(std::ostream &os, CachePolicyType policy)
bool hasWire() const
Check if the Block has fully encoded wire.
represents an error in TLV encoding or decoding