pub mod builder;
pub mod reader;
pub fn get_bit(byte: u8, bit_pos: usize) -> bool {
(byte & (1 << (7 - bit_pos))) != 0
}
pub fn set_bit(byte: &mut u8, bit_pos: usize, value: bool) {
if value {
*byte |= 1 << (7 - bit_pos);
} else {
*byte &= !(1 << (7 - bit_pos));
}
}