Feature #4172
Updated by Junxiao Shi over 7 years ago
`ndn::tlv::readVarNumber` and `ndn::tlv::readNonNegativeInteger` function templates are designed for InputIterator, through which only one octet of input can be read at a time. A majority of use cases for these function templates are over contiguous continuous memory, such as `const uint8_t*` and `std::vector<uint8_t>` (underlying type of `ndn::Buffer`). Specializations of `ndn::tlv::readVarNumber` and `ndn::tlv::readNonNegativeInteger` may deliver faster performance. Caution: those specializations should avoid misaligned memory accesses (#4097).