Trait weezl::encode::Stateful

source ·
trait Stateful {
    // Required methods
    fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult;
    fn mark_ended(&mut 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 mark_ended(&mut self) -> bool

source

fn restart(&mut self)

Reset the state tracking if end code has been written.

source

fn reset(&mut self)

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

Implementors§