|
| | Component ()=default |
| |
| | Component (Region ®ion, uint16_t type, size_t length, const uint8_t *value) |
| | Construct from T-L-V.
|
| |
| | Component (Region ®ion, size_t length, const uint8_t *value) |
| | Construct GenericNameComponent from L-V.
|
| |
| | Component (uint8_t *buf, size_t bufLen, uint16_t type, size_t length, const uint8_t *value, bool writeFromBack=false) |
| | Construct from T-L-V into provided buffer.
|
| |
| | operator bool () const |
| | Return true if Component is valid.
|
| |
| uint16_t | type () const |
| |
| size_t | length () const |
| |
| const uint8_t * | value () const |
| |
| const uint8_t * | tlv () const |
| |
| size_t | size () const |
| |
| void | encodeTo (Encoder &encoder) const |
| |
| bool | decodeFrom (const Decoder::Tlv &d) |
| |
| size_t | printTo (::Print &p) const final |
| |
| template<typename Convention > |
| bool | is () const |
| |
| template<typename Convention , typename... Arg> |
| auto | as (Arg &&... arg) const -> decltype(Convention::parse(*this, std::forward< Arg >(arg)...)) |
| |
| | operator Esp32Printable () const |
| |
|
| static Component | constant (const uint8_t *tlv, size_t size) |
| | Construct from const TLV buffer.
|
| |
| template<typename... Arg> |
| static Component | from (Region ®ion, uint16_t type, const Arg &... arg) |
| | Construct from TLV-TYPE, and several arguments to be encoded to TLV-VALUE.
|
| |
| static Component | parse (Region ®ion, const char *uri) |
| | Parse from URI.
|
| |
| static Component | parse (Region ®ion, const char *uri, size_t uriLen) |
| |
| static Component | parse (uint8_t *buf, size_t bufLen, const char *uri) |
| | Parse from URI into provided buffer.
|
| |
| static Component | parse (uint8_t *buf, size_t bufLen, const char *uri, size_t uriLen, bool writeFromBack=false) |
| |
Name component.
This type is immutable, except `decodeFrom()` method.