A MetaInfoLite holds a type and other info to represent the meta info of a Data packet. More...
#include <meta-info-lite.hpp>
Public Member Functions | |
MetaInfoLite () | |
Create a MetaInfoLite with default field values. | |
ndn_ContentType | getType () const |
Milliseconds | getFreshnessPeriod () const |
const NameLite::Component | getFinalBlockId () const |
void | setType (ndn_ContentType type) |
void | setFreshnessPeriod (Milliseconds freshnessPeriod) |
void | setFinalBlockId (const NameLite::Component &finalBlockId) |
Set the final block ID. More... | |
Static Public Member Functions | |
static MetaInfoLite & | downCast (ndn_MetaInfo &metaInfo) |
Downcast the reference to the ndn_MetaInfo struct to a MetaInfoLite. More... | |
static const MetaInfoLite & | downCast (const ndn_MetaInfo &metaInfo) |
A MetaInfoLite holds a type and other info to represent the meta info of a Data packet.
|
inlinestatic |
Downcast the reference to the ndn_MetaInfo struct to a MetaInfoLite.
metaInfo | A reference to the ndn_MetaInfo struct. |
|
inline |
Set the final block ID.
finalBlockId | The final block ID. This takes the pointer but does not copy the bytes of the name component. |