27 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
Represents a TLV element of the NDN packet format.
uint32_t type() const
Return the TLV-TYPE of the Block.
size_t size() const
Return the size of the encoded wire, i.e.
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
size_t value_size() const noexcept
Return the size of TLV-VALUE, aka TLV-LENGTH.
const uint8_t * value() const noexcept
Return a raw pointer to the beginning of TLV-VALUE.
size_t appendBlock(const Block &block) const
Append TLV block block.
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.
size_t prependBlock(const Block &block) const
Prepend TLV block block.