Trait flate2::zio::Ops

source ·
pub trait Ops {
    type Flush: Flush;

    // Required methods
    fn total_in(&self) -> u64;
    fn total_out(&self) -> u64;
    fn run(
        &mut self,
        input: &[u8],
        output: &mut [u8],
        flush: Self::Flush
    ) -> Result<Status, DecompressError>;
    fn run_vec(
        &mut self,
        input: &[u8],
        output: &mut Vec<u8>,
        flush: Self::Flush
    ) -> Result<Status, DecompressError>;
}

Required Associated Types§

Required Methods§

source

fn total_in(&self) -> u64

source

fn total_out(&self) -> u64

source

fn run( &mut self, input: &[u8], output: &mut [u8], flush: Self::Flush ) -> Result<Status, DecompressError>

source

fn run_vec( &mut self, input: &[u8], output: &mut Vec<u8>, flush: Self::Flush ) -> Result<Status, DecompressError>

Implementors§