|
Monado OpenXR Runtime
|
Code to decode and encode COBS (Consistent Overhead Byte Stuffing) packet data. More...
#include <xrt/xrt_compiler.h>
Go to the source code of this file.
Data Structures | |
| struct | u_cobs_decoder |
| A streaming COBS (Consistent Overhead Byte Stuffing) decoder with automatic error recovery. More... | |
Typedefs | |
| typedef void(* | cobs_callback_t) (void *user_data, const uint8_t *data, size_t length) |
Functions | |
| int | u_cobs_decoder_create (size_t buffer_size, cobs_callback_t callback, void *user_data, struct u_cobs_decoder *out_decoder) |
| Creates a new COBS decoder. | |
| void | u_cobs_decoder_destroy (struct u_cobs_decoder *cobs) |
| Destroys a COBS decoder previously created by u_cobs_decoder_create. | |
| int | u_cobs_push_bytes (struct u_cobs_decoder *cobs, const uint8_t *data, size_t length) |
| Pushes bytes into the COBS decoder. | |
| int | u_cobs_encode (const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size) |
| Encodes a single packet using COBS. | |
Code to decode and encode COBS (Consistent Overhead Byte Stuffing) packet data.