22 #ifndef NDN_BINARYXMLENCODER_HPP
23 #define NDN_BINARYXMLENCODER_HPP
26 #include <ndn-cpp/common.hpp>
27 #include "../util/dynamic-uint8-vector.hpp"
28 #include "../c/encoding/binary-xml-encoder.h"
44 ndn_BinaryXmlEncoder_initialize(
this, &output_);
51 const ptr_lib::shared_ptr<std::vector<uint8_t> >&
Copyright (C) 2013-2015 Regents of the University of California.
Definition: common.hpp:35
Copyright (C) 2013-2015 Regents of the University of California.
Definition: binary-xml-encoder.h:36
size_t offset
the offset into output.array for the next encoding
Definition: binary-xml-encoder.h:38
A BinaryXmlEncoder extends a C ndn_BinaryXmlEncoder struct and wraps related functions.
Definition: binary-xml-encoder.hpp:35
ptr_lib::shared_ptr< std::vector< uint8_t > > & get()
Get the shared_ptr to the allocated vector.
Definition: dynamic-uint8-vector.hpp:126
BinaryXmlEncoder(size_t initialLength=16)
Initialize the base ndn_BinaryXmlEncoder struct with the initialLength.
Definition: binary-xml-encoder.hpp:41
const ptr_lib::shared_ptr< std::vector< uint8_t > > & getOutput()
Resize the output vector to the correct encoding length and return.
Definition: binary-xml-encoder.hpp:52
A DynamicUInt8Vector extends ndn_DynamicUInt8Array to hold a shared_ptr > for use wit...
Definition: dynamic-uint8-vector.hpp:36