NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
block-helpers.cpp File Reference
#include "ndn-cxx/encoding/block-helpers.hpp"
#include <boost/endian/conversion.hpp>
Include dependency graph for block-helpers.cpp:

Go to the source code of this file.

Namespaces

 ndn
 Copyright (c) 2011-2015 Regents of the University of California.
 
 ndn::encoding
 

Functions

template<Tag TAG>
size_t ndn::encoding::prependNonNegativeIntegerBlock (EncodingImpl< TAG > &encoder, uint32_t type, uint64_t value)
 Prepend a TLV element containing a non-negative integer. More...
 
template size_t ndn::encoding::prependNonNegativeIntegerBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, uint32_t, uint64_t)
 
template size_t ndn::encoding::prependNonNegativeIntegerBlock< EncoderTag > (EncodingImpl< EncoderTag > &, uint32_t, uint64_t)
 
Block ndn::encoding::makeNonNegativeIntegerBlock (uint32_t type, uint64_t value)
 Create a TLV block containing a non-negative integer. More...
 
uint64_t ndn::encoding::readNonNegativeInteger (const Block &block)
 Read a non-negative integer from a TLV element. More...
 
template<Tag TAG>
size_t ndn::encoding::prependEmptyBlock (EncodingImpl< TAG > &encoder, uint32_t type)
 Prepend an empty TLV element. More...
 
template size_t ndn::encoding::prependEmptyBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, uint32_t)
 
template size_t ndn::encoding::prependEmptyBlock< EncoderTag > (EncodingImpl< EncoderTag > &, uint32_t)
 
Block ndn::encoding::makeEmptyBlock (uint32_t type)
 Create an empty TLV block. More...
 
template<Tag TAG>
size_t ndn::encoding::prependStringBlock (EncodingImpl< TAG > &encoder, uint32_t type, const std::string &value)
 Prepend a TLV element containing a string. More...
 
template size_t ndn::encoding::prependStringBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, uint32_t, const std::string &)
 
template size_t ndn::encoding::prependStringBlock< EncoderTag > (EncodingImpl< EncoderTag > &, uint32_t, const std::string &)
 
Block ndn::encoding::makeStringBlock (uint32_t type, const std::string &value)
 Create a TLV block containing a string. More...
 
std::string ndn::encoding::readString (const Block &block)
 Read TLV-VALUE of a TLV element as a string. More...
 
template<Tag TAG>
size_t ndn::encoding::prependDoubleBlock (EncodingImpl< TAG > &encoder, uint32_t type, double value)
 Prepend a TLV element containing an IEEE 754 double-precision floating-point number. More...
 
template size_t ndn::encoding::prependDoubleBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, uint32_t, double)
 
template size_t ndn::encoding::prependDoubleBlock< EncoderTag > (EncodingImpl< EncoderTag > &, uint32_t, double)
 
Block ndn::encoding::makeDoubleBlock (uint32_t type, double value)
 Create a TLV element containing an IEEE 754 double-precision floating-point number. More...
 
double ndn::encoding::readDouble (const Block &block)
 Read TLV-VALUE of a TLV element as an IEEE 754 double-precision floating-point number. More...
 
template<Tag TAG>
size_t ndn::encoding::prependBinaryBlock (EncodingImpl< TAG > &encoder, uint32_t type, span< const uint8_t > value)
 Prepend a TLV element containing a sequence of raw bytes. More...
 
template size_t ndn::encoding::prependBinaryBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, uint32_t, span< const uint8_t >)
 
template size_t ndn::encoding::prependBinaryBlock< EncoderTag > (EncodingImpl< EncoderTag > &, uint32_t, span< const uint8_t >)
 
Block ndn::encoding::makeBinaryBlock (uint32_t type, span< const uint8_t > value)
 Create a TLV block copying the TLV-VALUE from a byte range. More...
 
template<Tag TAG>
size_t ndn::encoding::prependBlock (EncodingImpl< TAG > &encoder, const Block &block)
 Prepend a TLV element. More...
 
template size_t ndn::encoding::prependBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &, const Block &)
 
template size_t ndn::encoding::prependBlock< EncoderTag > (EncodingImpl< EncoderTag > &, const Block &)