NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
block-helpers.cpp File Reference
#include "block-helpers.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)
 Helper to prepend TLV block type type containing non-negative integer value. More...
 
template size_t ndn::encoding::prependNonNegativeIntegerBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &encoder, uint32_t type, uint64_t value)
 
template size_t ndn::encoding::prependNonNegativeIntegerBlock< EncoderTag > (EncodingImpl< EncoderTag > &encoder, uint32_t type, uint64_t value)
 
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...
 
template size_t ndn::encoding::prependEmptyBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &encoder, uint32_t type)
 
template size_t ndn::encoding::prependEmptyBlock< EncoderTag > (EncodingImpl< EncoderTag > &encoder, uint32_t type)
 
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...
 
template size_t ndn::encoding::prependStringBlock< EstimatorTag > (EncodingImpl< EstimatorTag > &encoder, uint32_t type, const std::string &value)
 
template size_t ndn::encoding::prependStringBlock< EncoderTag > (EncodingImpl< EncoderTag > &encoder, uint32_t type, const std::string &value)
 
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...