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

NonNegativeInteger encoding. More...

#include <nni.hpp>

Public Member Functions

 NNI (uint64_t number)
 
void encodeTo (Encoder &encoder) const
 

Static Public Member Functions

template<typename I , typename Limit = typename std::enable_if<std::is_integral<I>::value, std::numeric_limits<I>>::type>
static bool decode (const Decoder::Tlv &d, I &value, uint64_t max=Limit::max())
 Decode NonNegativeInteger.
 

Detailed Description

NonNegativeInteger encoding.

Constructor & Destructor Documentation

◆ NNI()

ndnph::tlv::NNI::NNI ( uint64_t  number)
inlineexplicit

Member Function Documentation

◆ decode()

template<typename I , typename Limit = typename std::enable_if<std::is_integral<I>::value, std::numeric_limits<I>>::type>
static bool ndnph::tlv::NNI::decode ( const Decoder::Tlv d,
I &  value,
uint64_t  max = Limit::max() 
)
inlinestatic

Decode NonNegativeInteger.

Template Parameters
Idestination integer type, which could be narrower than uint64_t.
Parameters
maxinclusive maximum value; default is max possible value of I type.

◆ encodeTo()

void ndnph::tlv::NNI::encodeTo ( Encoder encoder) const
inline

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