EncodingImpl specialization for TLV size estimation. More...
#include <encoding-buffer.hpp>
Public Member Functions | |
EncodingImpl (size_t totalReserve=0, size_t totalFromBack=0) | |
![]() | |
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... | |
EncodingImpl specialization for TLV size estimation.
Definition at line 56 of file encoding-buffer.hpp.
|
inlineexplicit |
Definition at line 60 of file encoding-buffer.hpp.