#include <stdexcept>#include <iostream>#include <iterator>#include <limits>#include "buffer.hpp"#include "endian.hpp"

Go to the source code of this file.
Classes | |
| class | ndn::tlv::Error |
| represents an error in TLV encoding or decoding More... | |
Namespaces | |
| ndn | |
| Copyright (c) 2011-2015 Regents of the University of California. | |
| ndn::tlv | |
| Namespace defining NDN-TLV related constants and procedures. | |
Functions | |
| template<class InputIterator > | |
| bool | ndn::tlv::readVarNumber (InputIterator &begin, const InputIterator &end, uint64_t &number) |
| Read VAR-NUMBER in NDN-TLV encoding. More... | |
| template<class InputIterator > | |
| bool | ndn::tlv::readType (InputIterator &begin, const InputIterator &end, uint32_t &type) |
| Read TLV Type. More... | |
| template<class InputIterator > | |
| uint64_t | ndn::tlv::readVarNumber (InputIterator &begin, const InputIterator &end) |
| Read VAR-NUMBER in NDN-TLV encoding. More... | |
| template<class InputIterator > | |
| uint32_t | ndn::tlv::readType (InputIterator &begin, const InputIterator &end) |
| Read TLV Type. More... | |
| size_t | ndn::tlv::sizeOfVarNumber (uint64_t varNumber) |
| Get number of bytes necessary to hold value of VAR-NUMBER. More... | |
| size_t | ndn::tlv::writeVarNumber (std::ostream &os, uint64_t varNumber) |
| Write VAR-NUMBER to the specified stream. More... | |
| template<class InputIterator > | |
| uint64_t | ndn::tlv::readNonNegativeInteger (size_t size, InputIterator &begin, const InputIterator &end) |
| Read nonNegativeInteger in NDN-TLV encoding. More... | |
| size_t | ndn::tlv::sizeOfNonNegativeInteger (uint64_t varNumber) |
| Get number of bytes necessary to hold value of nonNegativeInteger. More... | |
| size_t | ndn::tlv::writeNonNegativeInteger (std::ostream &os, uint64_t varNumber) |
| Write nonNegativeInteger to the specified stream. More... | |
| template<> | |
| bool | ndn::tlv::readVarNumber< std::istream_iterator< uint8_t > > (std::istream_iterator< uint8_t > &begin, const std::istream_iterator< uint8_t > &end, uint64_t &value) |
| template<> | |
| uint64_t | ndn::tlv::readNonNegativeInteger< std::istream_iterator< uint8_t > > (size_t size, std::istream_iterator< uint8_t > &begin, const std::istream_iterator< uint8_t > &end) |
Variables | |
| const size_t | ndn::MAX_NDN_PACKET_SIZE = 8800 |
| practical limit of network layer packet size More... | |