|
CCSDS 124.0-B-1 C 1.0.0
CCSDS 124.0-B-1 Lossless Compression
|
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 |
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.
| 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().
| 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().
| 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().
| size_t bitbuffer::num_bits |
Number of bits written
Definition at line 310 of file ccsds124.h.
Referenced by bitbuffer_append_bit(), bitbuffer_append_bits(), bitbuffer_append_value(), bitbuffer_flush_acc(), bitbuffer_init(), bitbuffer_size(), and bitbuffer_to_bytes().