|
size_t | appendBlock (const Block &block) const |
| Append TLV block block . More...
|
|
constexpr size_t | appendByte (uint8_t) const noexcept |
| Append a single byte. More...
|
|
constexpr size_t | appendByteArray (const uint8_t *, size_t length) const noexcept |
| Append a byte array array of length length . More...
|
|
constexpr size_t | appendByteArrayBlock (uint32_t type, const uint8_t *array, size_t arraySize) const noexcept |
| Append TLV block of type type and value from buffer array of size arraySize . More...
|
|
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...
|
|
size_t | prependBlock (const Block &block) const |
| Prepend TLV block block . More...
|
|
constexpr size_t | prependByte (uint8_t) const noexcept |
| Prepend a single byte. More...
|
|
constexpr size_t | prependByteArray (const uint8_t *, size_t length) const noexcept |
| Prepend a byte array array of length length . More...
|
|
constexpr size_t | prependByteArrayBlock (uint32_t type, const uint8_t *array, size_t arraySize) const noexcept |
| Prepend TLV block of type type and value from buffer array of size arraySize . 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...
|
|
Helper class to estimate size of TLV encoding.
The interface of this class (mostly) matches that of the Encoder class.
- See also
- Encoder
Definition at line 37 of file estimator.hpp.