pub trait Buffer {
// Required methods
fn append(&mut self, chunk: &[u8]);
fn view(&self) -> &[u8] ⓘ;
fn advance(&mut self, bytes: usize);
}Expand description
Buffer captures the interface we require from the piece that maintains
the crate::State buffer.
This buffer is intended for keeping the undecoded partial chunks.