esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
ndnph::Decoder Class Reference

TLV decoder. More...

#include <decoder.hpp>

Classes

class  Iterator
 Iterator over TLV elements. More...
 
class  Tlv
 Decoded TLV. More...
 

Public Member Functions

 Decoder (const uint8_t *input, size_t count)
 
Iterator begin () const
 
Iterator end () const
 
template<typename T >
bool decode (T &target) const
 Decode first TLV into target object. More...
 

Static Public Member Functions

static bool readTlv (Tlv &d, const uint8_t *input, const uint8_t *end)
 

Detailed Description

TLV decoder.

Constructor & Destructor Documentation

◆ Decoder()

ndnph::Decoder::Decoder ( const uint8_t *  input,
size_t  count 
)
inlineexplicit

Member Function Documentation

◆ begin()

Iterator ndnph::Decoder::begin ( ) const
inline

◆ decode()

template<typename T >
bool ndnph::Decoder::decode ( T &  target) const
inline

Decode first TLV into target object.

See also
Decoder::Tlv::decode

◆ end()

Iterator ndnph::Decoder::end ( ) const
inline

◆ readTlv()

static bool ndnph::Decoder::readTlv ( Tlv d,
const uint8_t *  input,
const uint8_t *  end 
)
inlinestatic

The documentation for this class was generated from the following file: