#include "buffer.hpp"
#include "endian.hpp"
#include <cstring>
#include <iterator>
#include <ostream>
#include <type_traits>
Go to the source code of this file.
Classes | |
class | ndn::tlv::Error |
represents an error in TLV encoding or decoding More... | |
class | ndn::tlv::detail::ReadNumberSlow< Iterator > |
Function object to read a number from InputIterator. More... | |
class | ndn::tlv::detail::ReadNumberFast< Iterator > |
Function object to read a number from ContiguousIterator. More... | |
class | ndn::tlv::detail::ReadNumber< Iterator > |
Namespaces | |
ndn | |
Copyright (c) 2011-2015 Regents of the University of California. | |
ndn::tlv | |
Namespace defining NDN-TLV related constants and procedures. | |
ndn::tlv::detail | |
Functions | |
std::ostream & | ndn::tlv::operator<< (std::ostream &os, SignatureTypeValue signatureType) |
template<typename Iterator > | |
bool | ndn::tlv::readVarNumber (Iterator &begin, const Iterator &end, uint64_t &number) |
Read VAR-NUMBER in NDN-TLV encoding. More... | |
template<typename Iterator > | |
bool | ndn::tlv::readType (Iterator &begin, const Iterator &end, uint32_t &type) |
Read TLV-TYPE. More... | |
template<typename Iterator > | |
uint64_t | ndn::tlv::readVarNumber (Iterator &begin, const Iterator &end) |
Read VAR-NUMBER in NDN-TLV encoding. More... | |
template<typename Iterator > | |
uint32_t | ndn::tlv::readType (Iterator &begin, const Iterator &end) |
Read TLV Type. More... | |
constexpr size_t | ndn::tlv::sizeOfVarNumber (uint64_t number) |
Get number of bytes necessary to hold value of VAR-NUMBER. More... | |
size_t | ndn::tlv::writeVarNumber (std::ostream &os, uint64_t number) |
Write VAR-NUMBER to the specified stream. More... | |
template<typename Iterator > | |
uint64_t | ndn::tlv::readNonNegativeInteger (size_t size, Iterator &begin, const Iterator &end) |
Read nonNegativeInteger in NDN-TLV encoding. More... | |
constexpr size_t | ndn::tlv::sizeOfNonNegativeInteger (uint64_t integer) |
Get number of bytes necessary to hold value of nonNegativeInteger. More... | |
size_t | ndn::tlv::writeNonNegativeInteger (std::ostream &os, uint64_t integer) |
Write nonNegativeInteger to the specified stream. More... | |
template<typename Iterator , typename DecayedIterator = typename std::decay<Iterator>::type, typename ValueType = typename std::iterator_traits<DecayedIterator>::value_type> | |
constexpr bool | ndn::tlv::detail::shouldSelectContiguousReadNumber () |
Determine whether to select ReadNumber implementation for ContiguousIterator. More... | |
Variables | |
const size_t | ndn::MAX_NDN_PACKET_SIZE = 8800 |
practical limit of network layer packet size More... | |