ndn-lite
Data Fields
ndn_data Struct Reference

The structure to represent an NDN Data packet The best practice of using ndn_data_t is to first declare a ndn_data_t object and init each of its component to save memory. More...

#include <data.h>

Collaboration diagram for ndn_data:
Collaboration graph

Data Fields

ndn_name_t name
 Data Name Value (not including T and L) More...
 
ndn_metainfo_t metainfo
 Data MetaInfo Value (not including T and L) More...
 
uint8_t content_value [NDN_CONTENT_BUFFER_SIZE]
 Data Content Value (not including T and L) More...
 
uint32_t content_size
 Data MetaInfo Content Value Size. More...
 
ndn_signature_t signature
 Data Signature. More...
 

Detailed Description

The structure to represent an NDN Data packet The best practice of using ndn_data_t is to first declare a ndn_data_t object and init each of its component to save memory.

Field Documentation

◆ content_size

uint32_t ndn_data::content_size

Data MetaInfo Content Value Size.

◆ content_value

uint8_t ndn_data::content_value[NDN_CONTENT_BUFFER_SIZE]

Data Content Value (not including T and L)

◆ metainfo

ndn_metainfo_t ndn_data::metainfo

Data MetaInfo Value (not including T and L)

◆ name

ndn_name_t ndn_data::name

Data Name Value (not including T and L)

◆ signature

ndn_signature_t ndn_data::signature

Data Signature.

This attribute should not be manually modified. Use ndn_data_tlv_encode_*_sign functions to generate signature.


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