An ExcludeLite holds an array of ExcludeLite::Entry.
More...
#include <exclude-lite.hpp>
Create an ExcludeLite with the entries array.
- Parameters
-
entries | The pre-allocated array of ndn_ExcludeEntry. Instead of an array of ExcludeLite::Entry, this is an array of the underlying ndn_ExcludeEntry struct so that it doesn't run the default constructor unnecessarily. |
maxEntries | The number of elements in the allocated entries array. |
ndn_Error ndn::ExcludeLite::appendAny |
( |
| ) |
|
Append a new entry of type ndn_Exclude_ANY.
- Returns
- 0 for success, or an error code if there is no more room in the entries array (nEntries is already maxEntries).
ndn_Error ndn::ExcludeLite::appendComponent |
( |
const uint8_t * |
component, |
|
|
size_t |
componentLength |
|
) |
| |
Append a new entry of type ndn_Exclude_COMPONENT with the given component value.
- Parameters
-
component | The bytes of the component. This does not copy the bytes. |
componentLength | The number of bytes in component. |
- Returns
- 0 for success, or an error code if there is no more room in the entries array (nEntries is already maxEntries).
Append a new entry of type ndn_Exclude_COMPONENT with the given component value.
- Parameters
-
component | A NameList::Component for the exclude value. This does not copy the bytes. |
- Returns
- 0 for success, or an error code if there is no more room in the entries array (nEntries is already maxEntries).
Get the entry at the given index.
- Parameters
-
i | The index of the entry, starting from 0. |
- Returns
- The entry at the index.
ndn_Error ndn::ExcludeLite::set |
( |
const ExcludeLite & |
other | ) |
|
Set this exclude object to have the values from the other exclude.
- Parameters
-
- Returns
- 0 for success, or an error code if there is not enough room in this object's entries array.
size_t ndn::ExcludeLite::size |
( |
| ) |
const |
|
inline |
Get the number of entries.
- Returns
- The number of entries.
The documentation for this class was generated from the following files: