21 #ifndef NDN_ELEMENT_READER_H
22 #define NDN_ELEMENT_READER_H
24 #include "element-listener.h"
25 #include "tlv/tlv-structure-decoder.h"
26 #include "../util/dynamic-uint8-array.h"
27 #include <ndn-cpp/c/encoding/element-reader-types.h>
45 static __inline
void ndn_ElementReader_initialize
49 self->elementListener = elementListener;
50 ndn_TlvStructureDecoder_initialize(&self->tlvStructureDecoder);
51 self->partialData = buffer;
52 self->usePartialData = 0;
63 static __inline
void ndn_ElementReader_reset
66 self->elementListener = elementListener;
67 ndn_TlvStructureDecoder_reset(&self->tlvStructureDecoder);
68 self->usePartialData = 0;
79 ndn_Error ndn_ElementReader_onReceivedData
An ndn_ElementListener struct holds a function pointer onReceivedElement.
Definition: element-reader-types.h:37
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:40
A ndn_ElementReader lets you call ndn_ElementReader_onReceivedData multiple times which uses an ndn_T...
Definition: element-reader-types.h:59