22 #ifndef NDN_ENCODING_ESTIMATOR_HPP    23 #define NDN_ENCODING_ESTIMATOR_HPP    77   template<
class Iterator>
    81     return std::distance(first, last);
    87   template<
class Iterator>
    91     return std::distance(first, last);
   150 #endif // NDN_ENCODING_ESTIMATOR_HPP constexpr size_t appendByte(uint8_t) const noexcept
Append a byte. 
size_t prependByteArrayBlock(uint32_t type, const uint8_t *array, size_t arraySize) const noexcept
Prepend TLV block of type type and value from buffer array of size arraySize. 
Represents a TLV element of NDN packet format. 
size_t prependVarNumber(uint64_t varNumber) const noexcept
Prepend VarNumber varNumber of NDN TLV encoding. 
size_t appendVarNumber(uint64_t varNumber) const noexcept
Prepend VarNumber varNumber of NDN TLV encoding. 
size_t appendBlock(const Block &block) const
Append TLV block block. 
constexpr size_t prependByte(uint8_t) const noexcept
Prepend a byte. 
size_t appendNonNegativeInteger(uint64_t integer) const noexcept
Append non-negative integer integer of NDN TLV encoding. 
size_t appendByteArrayBlock(uint32_t type, const uint8_t *array, size_t arraySize) const noexcept
Append TLV block of type type and value from buffer array of size arraySize. 
constexpr size_t prependByteArray(const uint8_t *, size_t length) const noexcept
Prepend a byte array array of length length. 
Helper class to estimate size of TLV encoding Interface of this class (mostly) matches interface of E...
size_t prependBlock(const Block &block) const
Prepend TLV block block. 
constexpr size_t appendByteArray(const uint8_t *, size_t length) const noexcept
Append a byte array array of length length. 
size_t prependRange(Iterator first, Iterator last) const noexcept
Prepend range of bytes from the range [first, last) 
size_t appendRange(Iterator first, Iterator last) const noexcept
Append range of bytes from the range [first, last) 
size_t prependNonNegativeInteger(uint64_t integer) const noexcept
Prepend non-negative integer integer of NDN TLV encoding.