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§
Sourcefn get_remaining_buffer(&self) -> &'a MyBitSlice
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.
Sourcefn get_bits_processed(&self) -> usize
fn get_bits_processed(&self) -> usize
how far did we process into the buffer (pretty much the first bit after a 11).