ContentMetaInfo represents the information in the _meta packet of a Generalized Content.
More...
#include <content-meta-info.hpp>
ContentMetaInfo represents the information in the _meta packet of a Generalized Content.
| const std::string& ndntools::ContentMetaInfo::getContentType |
( |
| ) |
const |
|
inline |
Get the content type.
- Returns
- The content type. If not specified, return an empty string.
| bool ndntools::ContentMetaInfo::getHasSegments |
( |
| ) |
const |
|
inline |
Get the hasSegments flag.
- Returns
- The hasSegments flag.
| const ndn::Blob& ndntools::ContentMetaInfo::getOther |
( |
| ) |
const |
|
inline |
Get the Blob containing the optional other info.
- Returns
- The other info. If not specified, return an isNull Blob.
Get the time stamp.
- Returns
- The time stamp as milliseconds since Jan 1, 1970 UTC. If not specified, return -1.
| ContentMetaInfo& ndntools::ContentMetaInfo::setContentType |
( |
const std::string & |
contentType | ) |
|
|
inline |
Set the content type.
- Parameters
-
| contentType | The content type. |
- Returns
- This ContentMetaInfo so that you can chain calls to update values.
| ContentMetaInfo& ndntools::ContentMetaInfo::setHasSegments |
( |
bool |
hasSegments | ) |
|
|
inline |
Set the hasSegments flag.
- Parameters
-
| hasSegments | The hasSegments flag. |
- Returns
- This ContentMetaInfo so that you can chain calls to update values.
Set the Blob containing the optional other info.
- Parameters
-
| other | The other info, or a default null Blob() if not specified. |
- Returns
- This ContentMetaInfo so that you can chain calls to update values.
Set the time stamp.
- Parameters
-
- Returns
- This ContentMetaInfo so that you can chain calls to update values.
| void ndntools::ContentMetaInfo::wireDecode |
( |
const uint8_t * |
input, |
|
|
size_t |
inputLength |
|
) |
| |
Decode the input and update this ContentMetaInfo.
- Parameters
-
| input | The input byte array to be decoded. |
| inputLength | The length of input. |
| void ndntools::ContentMetaInfo::wireDecode |
( |
const std::vector< uint8_t > & |
input | ) |
|
|
inline |
Decode the input and update this Schedule.
- Parameters
-
| input | The input byte array to be decoded. |
| void ndntools::ContentMetaInfo::wireDecode |
( |
const ndn::Blob & |
input | ) |
|
|
inline |
Decode the input and update this Schedule.
- Parameters
-
| input | The input byte array to be decoded as an immutable Blob. |
| ndn::Blob ndntools::ContentMetaInfo::wireEncode |
( |
| ) |
const |
The documentation for this class was generated from the following file: