Function miniz_oxide::inflate::core::read_bits

source ยท
fn read_bits<F>(
    l: &mut LocalVars,
    amount: u32,
    in_iter: &mut Iter<'_, u8>,
    flags: u32,
    f: F,
) -> Action
where F: FnOnce(&mut LocalVars, u64) -> Action,
Expand description

Try to read amount number of bits from in_iter and call the function f with the bits as an an argument after reading, returning the result of that function, or Action::End if there are not enough bytes left.