EncodingImpl specialization for TLV size estimation. More...
#include <ndn-cxx/encoding/encoding-buffer.hpp>
Public Member Functions | |
EncodingImpl (size_t totalReserve=0, size_t totalFromBack=0) | |
constexpr size_t | appendBytes (span< const uint8_t > bytes) const noexcept |
Append a sequence of bytes. More... | |
constexpr size_t | appendNonNegativeInteger (uint64_t n) const noexcept |
Append n in NonNegativeInteger encoding. 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 | appendVarNumber (uint64_t n) const noexcept |
Append n in VarNumber encoding. More... | |
constexpr size_t | prependBytes (span< const uint8_t > bytes) const noexcept |
Prepend a sequence of bytes. More... | |
constexpr size_t | prependNonNegativeInteger (uint64_t n) const noexcept |
Prepend n in NonNegativeInteger encoding. More... | |
template<class Iterator > | |
constexpr size_t | prependRange (Iterator first, Iterator last) const noexcept |
Prepend bytes from the range [first , last ) More... | |
constexpr size_t | prependVarNumber (uint64_t n) const noexcept |
Prepend n in VarNumber encoding. More... | |
EncodingImpl specialization for TLV size estimation.
Definition at line 55 of file encoding-buffer.hpp.
|
inlineexplicit |
Definition at line 59 of file encoding-buffer.hpp.
|
inlineconstexprnoexceptinherited |
Append a sequence of bytes.
Definition at line 52 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Append n
in NonNegativeInteger encoding.
Definition at line 108 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Append bytes from the range [first
, last
)
Definition at line 72 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Append n
in VarNumber encoding.
Definition at line 90 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Prepend a sequence of bytes.
Definition at line 43 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Prepend n
in NonNegativeInteger encoding.
Definition at line 99 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Prepend bytes from the range [first
, last
)
Definition at line 62 of file estimator.hpp.
|
inlineconstexprnoexceptinherited |
Prepend n
in VarNumber encoding.
Definition at line 81 of file estimator.hpp.