A ndn_ElementReader lets you call ndn_ElementReader_onReceivedData multiple times which uses an ndn_BinaryXmlStructureDecoder or ndn_TlvStructureDecoder as needed to detect the end of a binary XML or TLV element, and calls (*elementListener->onReceivedElement)(element, elementLength) with the element. More...
#include <element-reader-types.h>
Public Attributes | |
| struct ndn_ElementListener * | elementListener |
| struct ndn_BinaryXmlStructureDecoder | binaryXmlStructureDecoder |
| struct ndn_TlvStructureDecoder | tlvStructureDecoder |
| int | usePartialData |
| boolean | |
| int | gotPartialDataError |
| boolean. More... | |
| struct ndn_DynamicUInt8Array * | partialData |
| size_t | partialDataLength |
| int | useTlv |
| boolean | |
A ndn_ElementReader lets you call ndn_ElementReader_onReceivedData multiple times which uses an ndn_BinaryXmlStructureDecoder or ndn_TlvStructureDecoder as needed to detect the end of a binary XML or TLV element, and calls (*elementListener->onReceivedElement)(element, elementLength) with the element.
This handles the case where a single call to onReceivedData may contain multiple elements.
| int ndn_ElementReader::gotPartialDataError |
boolean.
Only meaningful if usePartialData.
1.8.9.1