21BitBuffer* bit_buffer_alloc(
size_t capacity_bytes);
82void bit_buffer_copy_bytes(
BitBuffer* buf,
const uint8_t* data,
size_t size_bytes);
92void bit_buffer_copy_bits(
BitBuffer* buf,
const uint8_t* data,
size_t size_bits);
102void bit_buffer_copy_bytes_with_parity(
BitBuffer* buf,
const uint8_t* data,
size_t size_bits);
113void bit_buffer_write_bytes(
const BitBuffer* buf,
void* dest,
size_t size_bytes);
126void bit_buffer_write_bytes_with_parity(
130 size_t* bits_written);
142void bit_buffer_write_bytes_mid(
157bool bit_buffer_has_partial_byte(
const BitBuffer* buf);
166bool bit_buffer_starts_with_byte(
const BitBuffer* buf, uint8_t
byte);
176size_t bit_buffer_get_capacity_bytes(
const BitBuffer* buf);
185size_t bit_buffer_get_size(
const BitBuffer* buf);
194size_t bit_buffer_get_size_bytes(
const BitBuffer* buf);
203uint8_t bit_buffer_get_byte(
const BitBuffer* buf,
size_t index);
214uint8_t bit_buffer_get_byte_from_bit(
const BitBuffer* buf,
size_t index_bits);
222const uint8_t* bit_buffer_get_data(
const BitBuffer* buf);
230const uint8_t* bit_buffer_get_parity(
const BitBuffer* buf);
242void bit_buffer_set_byte(
BitBuffer* buf,
size_t index, uint8_t
byte);
253void bit_buffer_set_byte_with_parity(
BitBuffer* buff,
size_t index, uint8_t
byte,
bool parity);
262void bit_buffer_set_size(
BitBuffer* buf,
size_t new_size);
271void bit_buffer_set_size_bytes(
BitBuffer* buf,
size_t new_size_bytes);
293void bit_buffer_append_right(
BitBuffer* buf,
const BitBuffer* other,
size_t start_index);
302void bit_buffer_append_byte(
BitBuffer* buf, uint8_t
byte);
312void bit_buffer_append_bytes(
BitBuffer* buf,
const uint8_t* data,
size_t size_bytes);
321void bit_buffer_append_bit(
BitBuffer* buf,
bool bit);
Definition bit_buffer.c:7