A ndn_ElementReader lets you call ndn_ElementReader_onReceivedData multiple times which uses an ndn_TlvStructureDecoder as needed to detect the end of a 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_TlvStructureDecoder | tlvStructureDecoder |
| int | usePartialData |
| boolean | |
| int | gotPartialDataError |
| boolean. More... | |
| struct ndn_DynamicUInt8Array * | partialData |
| size_t | partialDataLength |
A ndn_ElementReader lets you call ndn_ElementReader_onReceivedData multiple times which uses an ndn_TlvStructureDecoder as needed to detect the end of a 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.6