59 return static_cast<int>(x) < static_cast<int>(y);
72 template<encoding::Tag TAG>
78 length += encoder.prependVarNumber(length);
79 length += encoder.prependVarNumber(
tlv::Nack);
98 m_wire = buffer.block();
Copyright (c) 2013-2017 Regents of the University of California.
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
Represents a TLV element of NDN packet format.
NackReason
indicates the reason type of a network NACK
uint64_t readNonNegativeInteger(const Block &block)
Read a non-negative integer from a TLV element.
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
size_t elements_size() const
Equivalent to elements().size()
void reset()
Reset wire buffer of the element.
void parse() const
Parse TLV-VALUE into sub elements.
uint32_t type() const
Get TLV-TYPE.
std::ostream & operator<<(std::ostream &os, CachePolicyType policy)
bool hasWire() const
Check if the Block has fully encoded wire.
element_const_iterator elements_begin() const
Equivalent to elements().begin()
bool isLessSevere(lp::NackReason x, lp::NackReason y)
compare NackReason for severity
EncodingImpl< EncoderTag > EncodingBuffer
represents an error in TLV encoding or decoding
EncodingImpl< EstimatorTag > EncodingEstimator