NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::encoding::EncodingImpl< EstimatorTag > Class Template Reference

EncodingImpl specialization for TLV size estimation. More...

#include <encoding-buffer.hpp>

Inheritance diagram for ndn::encoding::EncodingImpl< EstimatorTag >:
Collaboration diagram for ndn::encoding::EncodingImpl< EstimatorTag >:

Public Member Functions

 EncodingImpl (size_t totalReserve=0, size_t totalFromBack=0)
 
- Public Member Functions inherited from ndn::encoding::Estimator
 Estimator (size_t totalReserve=0, size_t reserveFromBack=0)
 Create instance of the estimator. More...
 
 Estimator (const Estimator &)=delete
 
Estimatoroperator= (const Estimator &)=delete
 
size_t prependByte (uint8_t value)
 Prepend a byte. More...
 
size_t appendByte (uint8_t value)
 Append a byte. More...
 
size_t prependByteArray (const uint8_t *array, size_t length)
 Prepend a byte array array of length length. More...
 
size_t appendByteArray (const uint8_t *array, size_t length)
 Append a byte array array of length length. More...
 
template<class Iterator >
size_t prependRange (Iterator first, Iterator last)
 Prepend range of bytes from the range [first, last) More...
 
template<class Iterator >
size_t appendRange (Iterator first, Iterator last)
 Append range of bytes from the range [first, last) More...
 
size_t prependVarNumber (uint64_t varNumber)
 Prepend VarNumber varNumber of NDN TLV encoding. More...
 
size_t appendVarNumber (uint64_t varNumber)
 Prepend VarNumber varNumber of NDN TLV encoding. More...
 
size_t prependNonNegativeInteger (uint64_t integer)
 Prepend non-negative integer integer of NDN TLV encoding. More...
 
size_t appendNonNegativeInteger (uint64_t integer)
 Append non-negative integer integer of NDN TLV encoding. More...
 
size_t prependByteArrayBlock (uint32_t type, const uint8_t *array, size_t arraySize)
 Prepend TLV block of type type and value from buffer array of size arraySize. More...
 
size_t appendByteArrayBlock (uint32_t type, const uint8_t *array, size_t arraySize)
 Append TLV block of type type and value from buffer array of size arraySize. More...
 
size_t prependBlock (const Block &block)
 Prepend TLV block block. More...
 
size_t appendBlock (const Block &block)
 Append TLV block block. More...
 

Detailed Description

template<>
class ndn::encoding::EncodingImpl< EstimatorTag >

EncodingImpl specialization for TLV size estimation.

Definition at line 56 of file encoding-buffer.hpp.

Constructor & Destructor Documentation

◆ EncodingImpl()

ndn::encoding::EncodingImpl< EstimatorTag >::EncodingImpl ( size_t  totalReserve = 0,
size_t  totalFromBack = 0 
)
inlineexplicit

Definition at line 60 of file encoding-buffer.hpp.


The documentation for this class was generated from the following file: