CCSDS 124.0-B-1 C 1.0.0
CCSDS 124.0-B-1 Lossless Compression
Loading...
Searching...
No Matches
bitbuffer Struct Reference

Variable-length bit buffer structure. More...

#include <ccsds124.h>

Data Fields

uint8_t data [CCSDS124_MAX_OUTPUT_BYTES]
 
size_t num_bits
 
uint32_t acc
 
size_t acc_len
 

Detailed Description

Variable-length bit buffer structure.

Accumulates bits during compression, then converts to bytes. Uses a 32-bit accumulator for efficient bit packing.

Definition at line 308 of file ccsds124.h.

Field Documentation

◆ acc

uint32_t bitbuffer::acc

Bit accumulator (up to 32 bits)

Definition at line 311 of file ccsds124.h.

Referenced by bitbuffer_append_bit(), bitbuffer_append_value(), bitbuffer_flush_acc(), bitbuffer_init(), and bitbuffer_to_bytes().

◆ acc_len

size_t bitbuffer::acc_len

Number of bits in accumulator

Definition at line 312 of file ccsds124.h.

Referenced by bitbuffer_append_bit(), bitbuffer_append_value(), bitbuffer_flush_acc(), bitbuffer_init(), and bitbuffer_to_bytes().

◆ data

uint8_t bitbuffer::data[CCSDS124_MAX_OUTPUT_BYTES]

Byte storage

Definition at line 309 of file ccsds124.h.

Referenced by bitbuffer_flush_acc(), bitbuffer_init(), and bitbuffer_to_bytes().

◆ num_bits

size_t bitbuffer::num_bits

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