pub struct PreflateContainerProcessor { /* private fields */ }
Expand description
Takes a sequence of bytes that may contain deflate streams, find the streams, and emits a new stream that containus the decompressed streams along with the corrections needed to recreate the original.
This output can then be compressed with a better algorithm, like Zstandard and achieve much better compression than if we tried to compress the deflate stream directlyh.
Implementations§
Source§impl PreflateContainerProcessor
impl PreflateContainerProcessor
pub fn new(config: PreflateConfig) -> Self
Trait Implementations§
Source§impl ProcessBuffer for PreflateContainerProcessor
impl ProcessBuffer for PreflateContainerProcessor
fn process_buffer( &mut self, input: &[u8], input_complete: bool, writer: &mut impl Write, max_output_write: usize, ) -> Result<bool>
fn stats(&self) -> PreflateStats
Auto Trait Implementations§
impl Freeze for PreflateContainerProcessor
impl !RefUnwindSafe for PreflateContainerProcessor
impl !Send for PreflateContainerProcessor
impl !Sync for PreflateContainerProcessor
impl Unpin for PreflateContainerProcessor
impl !UnwindSafe for PreflateContainerProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more