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

Internal state of the Sofab input stream. More...

#include <istream.h>

Collaboration diagram for sofab_istream:
[legend]

Data Fields

sofab_unsigned_t varint_value
 
sofab_istream_decoder_t default_decoder
 
uint8_t * target_ptr
 
sofab_istream_decoder_t * decoder
 
size_t fixlen_remaining
 
size_t target_len
 
size_t target_count
 
size_t array_wire_count
 
sofab_id_t id
 
uint8_t target_opt
 
uint8_t varint_shift
 
uint8_t invalid
 
uint8_t depth
 

Detailed Description

Internal state of the Sofab input stream.

Definition at line 134 of file istream.h.

Field Documentation

◆ array_wire_count

size_t sofab_istream::array_wire_count

Element count declared on the wire (0..capacity)

Definition at line 158 of file istream.h.

◆ decoder

sofab_istream_decoder_t* sofab_istream::decoder

Currently active decoder (may be nested)

Definition at line 154 of file istream.h.

◆ default_decoder

sofab_istream_decoder_t sofab_istream::default_decoder

Top-level decoder instance

Definition at line 147 of file istream.h.

◆ depth

uint8_t sofab_istream::depth

Sequences currently open, bound and skipped !< alike (0..SOFAB_MAX_DEPTH). The per-decoder !< skip_depth counts only the skipped ones, so !< it cannot carry the MAX_DEPTH ceiling.

Definition at line 166 of file istream.h.

◆ fixlen_remaining

size_t sofab_istream::fixlen_remaining

Remaining bytes to read for a fixed-length field

Definition at line 155 of file istream.h.

◆ id

sofab_id_t sofab_istream::id

Current field ID being processed

Definition at line 159 of file istream.h.

◆ invalid

uint8_t sofab_istream::invalid

Sticky flag: the message was rejected — by the !< decoder or by a callback. Makes SOFAB_RET_E_INVALID_MSG !< terminal (CORELIB_PLAN §5.2).

Definition at line 162 of file istream.h.

◆ target_count

size_t sofab_istream::target_count

Number of elements to read into the target array

Definition at line 157 of file istream.h.

◆ target_len

size_t sofab_istream::target_len

Target element size or total buffer length

Definition at line 156 of file istream.h.

◆ target_opt

uint8_t sofab_istream::target_opt

Field options (used for type checks and flags)

Definition at line 160 of file istream.h.

◆ target_ptr

uint8_t* sofab_istream::target_ptr

Pointer to output buffer for field data

Definition at line 148 of file istream.h.

◆ varint_shift

uint8_t sofab_istream::varint_shift

Current shift offset for varint decoding

Definition at line 161 of file istream.h.

◆ varint_value

sofab_unsigned_t sofab_istream::varint_value

Accumulated varint value under construction

Definition at line 146 of file istream.h.


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