SofaBuffers C/C++ 0.12.0
API Documentation
Loading...
Searching...
No Matches
sofab_istream_decoder Struct Reference

Decoder context used for Sofab sequences. More...

#include <istream.h>

Collaboration diagram for sofab_istream_decoder:
[legend]

Data Fields

struct sofab_istream_decoder * parent
 
sofab_istream_field_cb_t field_callback
 
void * usrptr
 
uint8_t state
 
uint8_t skip_depth
 

Detailed Description

Decoder context used for Sofab sequences.

Each sequence has its own decoder instance. Decoders form a parent-child chain and inherit the decoding state related to sequence depth and skip levels.

Definition at line 122 of file istream.h.

Field Documentation

◆ field_callback

sofab_istream_field_cb_t sofab_istream_decoder::field_callback

User callback for handling field IDs

Definition at line 125 of file istream.h.

◆ parent

struct sofab_istream_decoder* sofab_istream_decoder::parent

Pointer to parent decoder for nested levels

Definition at line 124 of file istream.h.

◆ skip_depth

uint8_t sofab_istream_decoder::skip_depth

Counter for skipped nested fields

Definition at line 128 of file istream.h.

◆ state

uint8_t sofab_istream_decoder::state

Internal parsing state machine

Definition at line 127 of file istream.h.

◆ usrptr

void* sofab_istream_decoder::usrptr

Optional user pointer for the field callback

Definition at line 126 of file istream.h.


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