/// Adds the specified number of bytes to the bit count. panic!() if this would cause numeric
/// overflow.
Adds the specified number of bytes to the bit count. panic!() if this would cause numeric
overflow.
Adds the specified number of bytes to the bit count . panic! () if this would cause numeric overflow .
pub fn add_bytes_to_bits(bits: u64, bytes: u64) -> u64 {
    let (new_high_bits, new_low_bits) = to_bits(bytes);
    if new_high_bits > 0 {
        panic!("Numeric overflow occured.")
    }
    bits.checked_add(new_low_bits).expect("Numeric overflow occured.")
}
pub fn add_bytes_to_bits ( bits : u64 , bytes : u64 ) -> u64 { let ( new_high_bits , new_low_bits ) = to_bits ( bytes ) ; if new_high_bits > 0 { panic ! ( " " ) } bits . checked_add ( new_low_bits ) . expect ( " " ) }
Adds the specified number of bytes to the bit count.
Adds the specified number of bytes to the bit count .
bits
u64
bytes
u64