template<typename LOCATION, typename VALUE, uint64_t TYPE, bool REPEATABLE = false, typename DECODER_TAG = VALUE, typename ENCODER_TAG = VALUE>
class ndn::lp::FieldDecl< LOCATION, VALUE, TYPE, REPEATABLE, DECODER_TAG, ENCODER_TAG >
Declare a field.
- Template Parameters
-
LOCATION | a tag that indicates where the field is in an LpPacket. |
VALUE | type of field value. |
TYPE | TLV-TYPE number of the field. |
REPEATABLE | whether the field is repeatable. |
DECODER_TAG | selects a specialization of DecodeHelper. |
ENCODER_TAG | selects a specialization of EncodeHelper. |
Definition at line 181 of file field-decl.hpp.
template<typename LOCATION , typename VALUE , uint64_t TYPE, bool REPEATABLE = false, typename DECODER_TAG = VALUE, typename ENCODER_TAG = VALUE>
template<typename encoding::Tag TAG>
static size_t ndn::lp::FieldDecl< LOCATION, VALUE, TYPE, REPEATABLE, DECODER_TAG, ENCODER_TAG >::encode |
( |
EncodingImpl< TAG > & |
encoder, |
|
|
const ValueType & |
value |
|
) |
| |
|
inlinestatic |
Encode a field and prepend to encoder
.
- Parameters
-
encoder | a buffer encoder or estimator. |
value | value of the field. |
Definition at line 210 of file field-decl.hpp.