Trait weezl::decode::Stateful

source ·
trait Stateful {
    // Required methods
    fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult;
    fn has_ended(&self) -> bool;
    fn restart(&mut self);
    fn reset(&mut self);
}

Required Methods§

source

fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult

source

fn has_ended(&self) -> bool

source

fn restart(&mut self)

Ignore an end code and continue decoding (no implied reset).

source

fn reset(&mut self)

Reset the decoder to the beginning, dropping all buffers etc.

Implementors§