34 return os <<
"Congestion";
36 return os <<
"Duplicate";
38 return os <<
"NoRoute";
67 template<encoding::Tag TAG>
73 length += encoder.prependVarNumber(length);
74 length += encoder.prependVarNumber(
tlv::Nack);
93 m_wire = buffer.block();
size_t prependNonNegativeIntegerBlock(EncodingImpl< TAG > &encoder, uint32_t type, uint64_t value)
Prepend a TLV element containing a non-negative integer.
element_container::const_iterator element_const_iterator
void parse() const
Parse TLV-VALUE into sub-elements.
Represents a TLV element of NDN packet format.
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
NackReason
indicates the reason type of a network NACK
element_const_iterator elements_begin() const
Equivalent to elements().begin()
uint64_t readNonNegativeInteger(const Block &block)
Read a non-negative integer from a TLV element.
void reset() noexcept
Reset the Block to a default-constructed state.
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
size_t elements_size() const
Equivalent to elements().size()
std::ostream & operator<<(std::ostream &os, CachePolicyType policy)
constexpr std::underlying_type_t< T > to_underlying(T val) noexcept
bool isLessSevere(lp::NackReason x, lp::NackReason y)
compare NackReason for severity
EncodingImpl< EncoderTag > EncodingBuffer
uint32_t type() const
Return the TLV-TYPE of the Block.
represents an error in TLV encoding or decoding
EncodingImpl< EstimatorTag > EncodingEstimator