bits-io 0.6.4

Bit-level IO operations
Documentation
1
2
3
4
/// Returns the number of bytes needed to accommodate the given number of bits
pub(crate) fn bytes_needed(num_bits: usize) -> usize {
    num_bits.div_ceil(8)
}