A BinaryXmlEncoder extends a C ndn_BinaryXmlEncoder struct and wraps related functions.
More...
#include <binary-xml-encoder.hpp>
A BinaryXmlEncoder extends a C ndn_BinaryXmlEncoder struct and wraps related functions.
| ndn::BinaryXmlEncoder::BinaryXmlEncoder |
( |
size_t |
initialLength = 16 | ) |
|
|
inline |
Initialize the base ndn_BinaryXmlEncoder struct with the initialLength.
Use simpleRealloc.
- Parameters
-
| initialLength | The initial size of the output. If omitted, use 16. |
| const ptr_lib::shared_ptr<std::vector<uint8_t> >& ndn::BinaryXmlEncoder::getOutput |
( |
| ) |
|
|
inline |
Resize the output vector to the correct encoding length and return.
- Returns
- The encoding as a shared_ptr. Assume that the caller now owns the vector.
The documentation for this class was generated from the following file: