NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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
 

Macros

#define NDN_CXX_ENABLE_DEPRECATED_BLOCK_HELPERS
 

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 . 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...
 
template<Tag TAG>
size_t ndn::encoding::prependBlock (EncodingImpl< TAG > &encoder, const Block &block)
 
template<Tag TAG>
size_t ndn::encoding::prependByteArrayBlock (EncodingImpl< TAG > &encoder, uint32_t type, const uint8_t *array, size_t arraySize)
 
Block ndn::encoding::nonNegativeIntegerBlock (uint32_t type, uint64_t value)
 
template<Tag TAG>
size_t ndn::encoding::prependBooleanBlock (EncodingImpl< TAG > &encoder, uint32_t type)
 
Block ndn::encoding::booleanBlock (uint32_t type)
 
Block ndn::encoding::dataBlock (uint32_t type, const uint8_t *data, size_t dataSize)
 
Block ndn::encoding::dataBlock (uint32_t type, const char *data, size_t dataSize)
 
template<class Iterator >
Block ndn::encoding::dataBlock (uint32_t type, Iterator first, Iterator last)
 
template<class U >
Block ndn::encoding::nestedBlock (uint32_t type, const U &value)
 

Macro Definition Documentation

#define NDN_CXX_ENABLE_DEPRECATED_BLOCK_HELPERS

Definition at line 223 of file block-helpers.hpp.