Skip to content
Start free evaluation

PdcommSecsInfo

Struct

Summary of a SECS-II item, filled by pdcomm_secs_info().

typedef struct PdcommSecsInfo { ... } PdcommSecsInfo

Declared in: #include <pdcomm.h>

Members

count

Field

Number of child items for a List; number of elements (payload bytes divided by element width) for a primitive.

size_t count

Declared in: #include <pdcomm.h>

depth

Field

Nesting depth: 1 for a primitive or an empty List.

size_t depth

Declared in: #include <pdcomm.h>

encoded_length

Field

Length of the minimal SECS-II encoding of the whole item, headers included.

size_t encoded_length

Declared in: #include <pdcomm.h>

format

Field

Format code of the item, one of the PDCOMM_SECS_* format macros.

uint8_t format

Declared in: #include <pdcomm.h>

node_count

Field

Number of items in the tree, including this item.

size_t node_count

Declared in: #include <pdcomm.h>

struct_size

Field

Structure size in bytes.

size_t struct_size

Declared in: #include <pdcomm.h>

Set it to sizeof(PdcommSecsInfo) or larger before the call. On success the library stores the size of the layout it wrote.