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
constexpr size_t prependBytes (span< const uint8_t > bytes) const noexcept
 Prepend a sequence of bytes. More...
 
constexpr size_t appendBytes (span< const uint8_t > bytes) const noexcept
 Append a sequence of bytes. More...
 
template<class Iterator >
constexpr size_t prependRange (Iterator first, Iterator last) const noexcept
 Prepend bytes from the range [first, last) More...
 
template<class Iterator >
constexpr size_t appendRange (Iterator first, Iterator last) const noexcept
 Append bytes from the range [first, last) More...
 
constexpr size_t prependVarNumber (uint64_t n) const noexcept
 Prepend n in VarNumber encoding. More...
 
constexpr size_t appendVarNumber (uint64_t n) const noexcept
 Append n in VarNumber encoding. More...
 
constexpr size_t prependNonNegativeInteger (uint64_t n) const noexcept
 Prepend n in NonNegativeInteger encoding. More...
 
constexpr size_t appendNonNegativeInteger (uint64_t n) const noexcept
 Append n in NonNegativeInteger encoding. 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: