ndn-lite
Data Fields
ndn_trust_schema_pattern_component Struct Reference

The structure to represent an NDN Trust Schema Pattern Component. More...

#include <ndn-trust-schema-pattern-component.h>

Collaboration diagram for ndn_trust_schema_pattern_component:
Collaboration graph

Data Fields

uint32_t type
 The component type. More...
 
uint8_t value [NDN_TRUST_SCHEMA_PATTERN_COMPONENT_BUFFER_SIZE]
 The value which the trust schema pattern component holds. More...
 
uint8_t subpattern_info
 A bit field for storing information regarding subpattern indexing information. More...
 
uint32_t size
 The size of component value buffer. More...
 

Detailed Description

The structure to represent an NDN Trust Schema Pattern Component.

Field Documentation

◆ size

uint32_t ndn_trust_schema_pattern_component::size

The size of component value buffer.

◆ subpattern_info

uint8_t ndn_trust_schema_pattern_component::subpattern_info

A bit field for storing information regarding subpattern indexing information.

The first two bits interpreted as an unsigned integer store whether this component is the beginning of a subpattern, the end of a subpattern, both, or neither. The actual values can be found in ndn-constants.h. The next three bits interpreted as an unsigned integer store the index x of the subpattern if the pattern component is the beginning of a subpattern with index x. The last three bits interpreted as an unsigned integer store the index x of the subpattern if the pattern component is the end of a subpattern with index x.

◆ type

uint32_t ndn_trust_schema_pattern_component::type

The component type.

◆ value

uint8_t ndn_trust_schema_pattern_component::value[NDN_TRUST_SCHEMA_PATTERN_COMPONENT_BUFFER_SIZE]

The value which the trust schema pattern component holds.

Format of the buffer depends on the trust schema pattern component type.


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