Function fast_decode_new

Source
pub fn fast_decode_new<T: Integral>(
    stream: &[T],
    shifted_by_one: bool,
    table: &impl LookupTableNew<T>,
) -> Vec<u64>
Expand description

Fast Fibonacci decoding of the entire bitstream using the precomputed lookup table.

Fibonacci decoding cannot handle zeros, and often during the encoding, every value is incremented by one (to encode zero as 1). If shifted_by_one is true, we decrement each decoded value by 1, assuming that the encoder artificially incremented each value before encoding.