Trait weezl::decode::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§
fn new(min_size: u8) -> Self
fn reset(&mut self, min_size: u8)
fn bump_code_size(&mut self)
sourcefn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>
fn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>
Retrieve the next symbol, refilling if necessary.
sourcefn refill_bits(&mut self, inp: &mut &[u8])
fn refill_bits(&mut self, inp: &mut &[u8])
Refill the internal buffer.
fn max_code(&self) -> u16
fn code_size(&self) -> u8
Object Safety§
This trait is not object safe.