Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_cobs_decoder Struct Reference

A streaming COBS (Consistent Overhead Byte Stuffing) decoder with automatic error recovery. More...

#include <util/u_cobs.h>

Collaboration diagram for u_cobs_decoder:

Data Fields

cobs_callback_t callback
 
void * user_data
 
uint8_t * buffer
 
size_t buffer_size
 
size_t read_bytes
 
size_t bytes_until_next_code
 
bool error_recovery
 Whether we're in error recovery mode (trying to reach a 0x00 delimiter)
 

Detailed Description

A streaming COBS (Consistent Overhead Byte Stuffing) decoder with automatic error recovery.

Prefers to drop incomplete packets instead of attempting to parse them.

https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing

Field Documentation

◆ error_recovery

bool u_cobs_decoder::error_recovery

Whether we're in error recovery mode (trying to reach a 0x00 delimiter)

Referenced by u_cobs_push_bytes().


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