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 |
int ndn::MetaInfo::getOtherTypeCode |
( |
| ) |
const |
|
inline |
Get the content type code from the packet which is other than a recognized ContentType enum value.
This is only meaningful if getType() is ndn_ContentType_OTHER_CODE.
- Returns
- The type code.
- Deprecated:
- Use the application-specific content to store a timestamp.
ndn_ContentType ndn::MetaInfo::getType |
( |
| ) |
const |
|
inline |
Get the content type.
- Returns
- The content type enum value. If this is ndn_ContentType_OTHER_CODE, then call getOtherTypeCode() to get the unrecognized content type code.
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 ndn::MetaInfo::setOtherTypeCode |
( |
int |
otherTypeCode | ) |
|
Set the packet's content type code to use when the content type enum is ndn_ContentType_OTHER_CODE.
If the packet's content type code is a recognized enum value, just call setType().
- Parameters
-
otherTypeCode | The packet's unrecognized content type code, which must be non-negative. |
void DEPRECATED_IN_NDN_CPP ndn::MetaInfo::setTimestampMilliseconds |
( |
MillisecondsSince1970 |
timestampMilliseconds | ) |
|
|
inline |
- Deprecated:
- Use the application-specific content to store a timestamp.
void ndn::MetaInfo::setType |
( |
ndn_ContentType |
type | ) |
|
|
inline |
Set the content type.
- Parameters
-
type | The content type enum value. If the packet's content type is not a recognized ContentType enum value, use ndn_ContentType_OTHER_CODE and call setOtherTypeCode(). |
The documentation for this class was generated from the following files: