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 | Friends | List of all members
ndnph::lp::PitToken Class Reference

PIT token field. More...

#include <lp.hpp>

Public Member Functions

 operator bool () const
 Determine whether PIT token exists. More...
 
size_t length () const
 
const uint8_t * value () const
 
uint32_t to4 () const
 Interpret 4-octet PIT token as uint32. More...
 
bool set (size_t length, const uint8_t *value)
 Assign PIT token length and value. More...
 
void encodeTo (Encoder &encoder) const
 
bool decodeFrom (const Decoder::Tlv &d)
 

Static Public Member Functions

static PitToken from4 (uint32_t n)
 Construct 4-octet PIT token from uint32. More...
 

Friends

bool operator== (const PitToken &lhs, const PitToken &rhs)
 

Detailed Description

PIT token field.

Member Function Documentation

◆ decodeFrom()

bool ndnph::lp::PitToken::decodeFrom ( const Decoder::Tlv d)
inline

◆ encodeTo()

void ndnph::lp::PitToken::encodeTo ( Encoder encoder) const
inline

◆ from4()

static PitToken ndnph::lp::PitToken::from4 ( uint32_t  n)
inlinestatic

Construct 4-octet PIT token from uint32.

◆ length()

size_t ndnph::lp::PitToken::length ( ) const
inline

◆ operator bool()

ndnph::lp::PitToken::operator bool ( ) const
inlineexplicit

Determine whether PIT token exists.

◆ set()

bool ndnph::lp::PitToken::set ( size_t  length,
const uint8_t *  value 
)
inline

Assign PIT token length and value.

◆ to4()

uint32_t ndnph::lp::PitToken::to4 ( ) const
inline

Interpret 4-octet PIT token as uint32.

◆ value()

const uint8_t* ndnph::lp::PitToken::value ( ) const
inline

Friends And Related Function Documentation

◆ operator==

bool operator== ( const PitToken lhs,
const PitToken rhs 
)
friend

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