NonNegativeInteger encoding.
More...
#include <nni.hpp>
|
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.
|
|
NonNegativeInteger encoding.
◆ NNI()
ndnph::tlv::NNI::NNI |
( |
uint64_t |
number | ) |
|
|
inlineexplicit |
◆ 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
-
I | destination integer type, which could be narrower than uint64_t. |
- Parameters
-
max | inclusive 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:
- /home/runner/work/esp8266ndn/NDNph/src/ndnph/tlv/nni.hpp