DeflateOutput

Trait DeflateOutput 

Source
pub trait DeflateOutput {
    const MAX_LOOK_BACK: usize = 32_768usize;
    const OVERWRITE_MAX: usize = 16usize;

    // Required methods
    fn has_writable_length(&mut self, length: usize) -> bool;
    fn flush_ensure_length(&mut self, length: usize) -> bool;
    fn get_output_ptr(&mut self) -> *mut u8;
    unsafe fn set_output_ptr(&mut self, ptr: *mut u8);
    fn final_flush(&mut self) -> Result<OutStreamResult, ()>;
}

Provided Associated Constants§

Source

const MAX_LOOK_BACK: usize = 32_768usize

Source

const OVERWRITE_MAX: usize = 16usize

Required Methods§

Source

fn has_writable_length(&mut self, length: usize) -> bool

Source

fn flush_ensure_length(&mut self, length: usize) -> bool

Source

fn get_output_ptr(&mut self) -> *mut u8

Source

unsafe fn set_output_ptr(&mut self, ptr: *mut u8)

Source

fn final_flush(&mut self) -> Result<OutStreamResult, ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§