A MetaInfo holds the meta info which is signed inside the data packet.
More...
#include <meta-info.hpp>
A MetaInfo holds the meta info which is signed inside the data packet.
void ndn::MetaInfo::get |
( |
MetaInfoLite & |
metaInfoLite | ) |
const |
Set metaInfoLite to point to the values in this meta info object, without copying any memory.
WARNING: The resulting pointers in metaInfoLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
metaInfoLite | The MetaInfoLite object which receives the values. |
uint64_t ndn::MetaInfo::getChangeCount |
( |
| ) |
const |
|
inline |
Get the change count, which is incremented each time this object is changed.
- Returns
- The change count.
Get the final block ID.
- Returns
- The final block ID as a Name::Component. If the name component getValue().size() is 0, then the final block ID is not specified.
const Name::Component& DEPRECATED_IN_NDN_CPP ndn::MetaInfo::getFinalBlockID |
( |
| ) |
const |
|
inline |
int DEPRECATED_IN_NDN_CPP ndn::MetaInfo::getFreshnessSeconds |
( |
| ) |
const |
|
inline |
- Deprecated:
- Use the application-specific content to store a timestamp.
void ndn::MetaInfo::set |
( |
const MetaInfoLite & |
metaInfoLite | ) |
|
Clear this meta info, and set the values by copying from metaInfoLite.
- Parameters
-
void ndn::MetaInfo::setFinalBlockId |
( |
const Name::Component & |
finalBlockId | ) |
|
|
inline |
Set the final block ID.
- Parameters
-
finalBlockId | The final block ID as a Name::Component. If the name component getValue().size() is 0, then the final block ID is not specified. |
void DEPRECATED_IN_NDN_CPP ndn::MetaInfo::setFinalBlockID |
( |
const Name::Component & |
finalBlockId | ) |
|
|
inline |
void DEPRECATED_IN_NDN_CPP ndn::MetaInfo::setFreshnessSeconds |
( |
int |
freshnessSeconds | ) |
|
|
inline |
void DEPRECATED_IN_NDN_CPP ndn::MetaInfo::setTimestampMilliseconds |
( |
MillisecondsSince1970 |
timestampMilliseconds | ) |
|
|
inline |
- Deprecated:
- Use the application-specific content to store a timestamp.
The documentation for this class was generated from the following files: