A DataLite holds a NameLite and other fields to represent an NDN Data packet.
More...
#include <data-lite.hpp>
|
class | Tlv0_1_1WireFormatLite |
|
A DataLite holds a NameLite and other fields to represent an NDN Data packet.
Create a DataLite with the pre-allocated nameComponents and keyNameComponents, and defaults for all the values.
- Parameters
-
nameComponents | The pre-allocated array of ndn_NameComponent. Instead of an array of NameLite::Component, this is an array of the underlying ndn_NameComponent struct so that it doesn't run the default constructor unnecessarily. |
maxNameComponents | The number of elements in the allocated nameComponents array. |
keyNameComponents | The pre-allocated array of ndn_NameComponent for the signature.keyLocator. Instead of an array of NameLite::Component, this is an array of the underlying ndn_NameComponent struct so that it doesn't run the default constructor unnecessarily. |
maxKeyNameComponents | The number of elements in the allocated keyNameComponents array. |
ndn_Error ndn::DataLite::set |
( |
const DataLite & |
other | ) |
|
Set this data packet object to have the values from the other data.
- Parameters
-
other | The other DataLite to get values from. |
- Returns
- 0 for success, or an error code if there is not enough room in this object's name or key locator keyName components array.
Set this data packet's content.
- Parameters
-
content | The data packet's content. This does not copy the bytes of the content. |
- Returns
- This DataLite so that you can chain calls to update values.
ndn_Error ndn::DataLite::setName |
( |
const NameLite & |
name | ) |
|
|
inline |
Set this data packet's name to have the values from the given name.
- Parameters
-
name | The name to get values from. |
- Returns
- 0 for success, or an error code if there is not enough room in this object's name components array.
The documentation for this class was generated from the following files: