Public Attributes | List of all members
ndn_ElementReader Struct Reference

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_ElementListenerelementListener
 
struct ndn_TlvStructureDecoder tlvStructureDecoder
 
int usePartialData
 boolean
 
int gotPartialDataError
 boolean. More...
 
struct ndn_DynamicUInt8ArraypartialData
 
size_t partialDataLength
 

Detailed Description

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.

Member Data Documentation

int ndn_ElementReader::gotPartialDataError

boolean.

Only meaningful if usePartialData.


The documentation for this struct was generated from the following file: