A MetaInfoLite holds a type and other info to represent the meta info of a Data packet.
More...
#include <meta-info-lite.hpp>
A MetaInfoLite holds a type and other info to represent the meta info of a Data packet.
| int ndn::MetaInfoLite::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.
| ndn_ContentType ndn::MetaInfoLite::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.
Set the final block ID.
- Parameters
-
| finalBlockId | The final block ID. This takes the pointer but does not copy the bytes of the name component. |
| void ndn::MetaInfoLite::setOtherTypeCode |
( |
int |
otherTypeCode | ) |
|
|
inline |
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 ndn::MetaInfoLite::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: