weezl::decode

Trait CodeBuffer

Source
trait CodeBuffer {
    // Required methods
    fn new(min_size: u8) -> Self;
    fn reset(&mut self, min_size: u8);
    fn bump_code_size(&mut self);
    fn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>;
    fn refill_bits(&mut self, inp: &mut &[u8]);
    fn get_bits(&mut self) -> Option<u16>;
    fn max_code(&self) -> u16;
    fn code_size(&self) -> u8;
}

Required Methods§

Source

fn new(min_size: u8) -> Self

Source

fn reset(&mut self, min_size: u8)

Source

fn bump_code_size(&mut self)

Source

fn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>

Retrieve the next symbol, refilling if necessary.

Source

fn refill_bits(&mut self, inp: &mut &[u8])

Refill the internal buffer.

Source

fn get_bits(&mut self) -> Option<u16>

Get the next buffered code word.

Source

fn max_code(&self) -> u16

Source

fn code_size(&self) -> u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§