Trait FbDec

Source
pub trait FbDec<'a>: Iterator<Item = u64> {
    // Required methods
    fn get_remaining_buffer(&self) -> &'a MyBitSlice;
    fn get_bits_processed(&self) -> usize;
}
Expand description

Marker trait for Fibonacci decoders. This is an iterator over u64 (the decoded integers), and lets you return parts of the buffer not yet decoded.

Required Methods§

Source

fn get_remaining_buffer(&self) -> &'a MyBitSlice

Returns the buffer behind the last bit processed. Comes handy when the buffer contains data OTHER than fibonacci encoded data that needs to be processed externally.

Source

fn get_bits_processed(&self) -> usize

how far did we process into the buffer (pretty much the first bit after a 11).

Implementors§

Source§

impl<'a> FbDec<'a> for FibonacciDecoder<'a>

Source§

impl<'a, T: Integral> FbDec<'a> for FastFibonacciDecoder<'a, T>