NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
block-helpers.hpp File Reference
#include "block.hpp"
#include "encoding-buffer.hpp"
#include "../util/concepts.hpp"
#include <iterator>
Include dependency graph for block-helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ndn::encoding::DataBlockFast< Iterator >
 Helper class template to create a data block when RandomAccessIterator is used. More...
 
class  ndn::encoding::DataBlockSlow< Iterator >
 Helper class template to create a data block when generic InputIterator is used. More...
 

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)
 Helper to prepend TLV block type type containing non-negative integer value. More...
 
Block ndn::encoding::makeNonNegativeIntegerBlock (uint32_t type, uint64_t value)
 Create a TLV block type type containing non-negative integer value. More...
 
uint64_t ndn::encoding::readNonNegativeInteger (const Block &block)
 Helper to read a non-negative integer from a block. More...
 
template<Tag TAG>
size_t ndn::encoding::prependEmptyBlock (EncodingImpl< TAG > &encoder, uint32_t type)
 Helper to prepend TLV block type type containing no value (i.e., a boolean block) More...
 
Block ndn::encoding::makeEmptyBlock (uint32_t type)
 Create a TLV block type type containing no value (i.e., a boolean block) More...
 
template<Tag TAG>
size_t ndn::encoding::prependStringBlock (EncodingImpl< TAG > &encoder, uint32_t type, const std::string &value)
 Helper to prepend TLV block type type with value from a string value. More...
 
Block ndn::encoding::makeStringBlock (uint32_t type, const std::string &value)
 Create a TLV block type type with value from a string value. More...
 
std::string ndn::encoding::readString (const Block &block)
 Helper to read a string value from a block. More...
 
Block ndn::encoding::makeBinaryBlock (uint32_t type, const uint8_t *value, size_t length)
 Create a TLV block type type with value from a buffer value of size length. More...
 
Block ndn::encoding::makeBinaryBlock (uint32_t type, const char *value, size_t length)
 Create a TLV block type type with value from a buffer value of size length. More...
 
template<class Iterator >
Block ndn::encoding::makeBinaryBlock (uint32_t type, Iterator first, Iterator last)
 Free function to create a block given type and range [first, last) of bytes. More...
 
template<Tag TAG, class U >
size_t ndn::encoding::prependNestedBlock (EncodingImpl< TAG > &encoder, uint32_t type, const U &value)
 Prepend a TLV block of type type with WireEncodable value as a value. More...
 
template<class U >
Block ndn::encoding::makeNestedBlock (uint32_t type, const U &value)
 Create a TLV block of type type with WireEncodable value as a value. More...