Added initial BinaryXMLEncoder
diff --git a/ndn-cpp/encoding/BinaryXMLEncoder.c b/ndn-cpp/encoding/BinaryXMLEncoder.c
new file mode 100644
index 0000000..8aa2d0f
--- /dev/null
+++ b/ndn-cpp/encoding/BinaryXMLEncoder.c
@@ -0,0 +1,7 @@
+/*
+ * Author: Jeff Thompson
+ *
+ * BSD license, See the LICENSE file for more information.
+ */
+
+#include "BinaryXMLEncoder.h"
diff --git a/ndn-cpp/encoding/BinaryXMLEncoder.h b/ndn-cpp/encoding/BinaryXMLEncoder.h
new file mode 100644
index 0000000..cb20787
--- /dev/null
+++ b/ndn-cpp/encoding/BinaryXMLEncoder.h
@@ -0,0 +1,42 @@
+/*
+ * Author: Jeff Thompson
+ *
+ * BSD license, See the LICENSE file for more information.
+ */
+
+#ifndef NDN_BINARYXMLENCODER_H
+#define NDN_BINARYXMLENCODER_H
+
+#include "../util/DynamicUCharArray.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct ndn_BinaryXMLEncoder {
+ struct ndn_DynamicUCharArray output; /**< receives the encoded output */
+ unsigned int offset; /**< the offset into output.array for the next encoding */
+};
+
+/**
+ * Initialize an ndn_BinaryXMLEncoder_init struct with the arguments for initializing the ndn_DynamicUCharArray.
+ * @param self pointer to the ndn_BinaryXMLEncoder struct
+ * @param outputArray the allocated array buffer to receive the encoding
+ * @param outputArrayLength the length of outputArray
+ * @param reallocFunction the realloc function used by ndn_DynamicUCharArray_ensureLength. If outputArrayLength
+ * is large enough to receive the entire encoding, this can be 0.
+ */
+static inline void ndn_BinaryXMLEncoder_init
+ (struct ndn_BinaryXMLEncoder *self, unsigned char *outputArray, unsigned int outputArrayLength,
+ unsigned char (*reallocFunction)(unsigned char *, unsigned int))
+{
+ ndn_DynamicUCharArray_init(&self->output, outputArray, outputArrayLength, reallocFunction);
+ self->offset = 0;
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+