A sequence of bytes, usually TLV-VALUE.
More...
#include <value.hpp>
A sequence of bytes, usually TLV-VALUE.
◆ Value() [1/4]
ndnph::tlv::Value::Value |
( |
| ) |
|
|
explicitdefault |
◆ Value() [2/4]
ndnph::tlv::Value::Value |
( |
const uint8_t * |
value, |
|
|
size_t |
size |
|
) |
| |
|
inlineexplicit |
◆ Value() [3/4]
ndnph::tlv::Value::Value |
( |
const uint8_t * |
first, |
|
|
const uint8_t * |
last |
|
) |
| |
|
inlineexplicit |
◆ Value() [4/4]
ndnph::tlv::Value::Value |
( |
const Encoder & |
encoder | ) |
|
|
inlineexplicit |
Reference encoder output.
◆ begin()
const uint8_t * ndnph::tlv::Value::begin |
( |
| ) |
const |
|
inline |
◆ clone()
Value ndnph::tlv::Value::clone |
( |
Region & |
region | ) |
const |
|
inline |
Clone buffer into given region.
- Returns
- new Value that does not reference memory of this Value, or empty Value if allocation fails.
◆ decodeFrom()
bool ndnph::tlv::Value::decodeFrom |
( |
const Decoder::Tlv & |
d | ) |
|
|
inline |
◆ encodeTo()
void ndnph::tlv::Value::encodeTo |
( |
Encoder & |
encoder | ) |
const |
|
inline |
◆ end()
const uint8_t * ndnph::tlv::Value::end |
( |
| ) |
const |
|
inline |
◆ fromString()
static Value ndnph::tlv::Value::fromString |
( |
const char * |
str | ) |
|
|
inlinestatic |
◆ makeDecoder()
Decoder ndnph::tlv::Value::makeDecoder |
( |
| ) |
const |
|
inline |
Create a Decoder over this value buffer.
◆ operator bool()
ndnph::tlv::Value::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Return true if value is non-empty.
◆ size()
size_t ndnph::tlv::Value::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- /home/runner/work/esp8266ndn/NDNph/src/ndnph/tlv/value.hpp