[][src]Struct libdeflater::Decompressor

pub struct Decompressor { /* fields omitted */ }

A libdeflate decompressor that can inflate DEFLATE, zlib, or gzip data.

Implementations

impl Decompressor[src]

pub fn new() -> Decompressor[src]

Returns a newly constructed instance of a Decompressor.

pub fn gzip_decompress(
    &mut self,
    gz_data: &[u8],
    out: &mut [u8]
) -> Result<usize, DecompressionError>
[src]

Decompresses gz_data (a buffer containing gzip data) and writes the decompressed data into out. Returns the number of decompressed bytes written into out, or an error (see DecompressionError for error cases).

pub fn zlib_decompress(
    &mut self,
    zlib_data: &[u8],
    out: &mut [u8]
) -> Result<usize, DecompressionError>
[src]

Decompresses zlib_data (a buffer containing zlib data) and writes the decompressed data to out. Returns the number of decompressed bytes written into out, or an error (see DecompressionError for error cases).

pub fn deflate_decompress(
    &mut self,
    deflate_data: &[u8],
    out: &mut [u8]
) -> Result<usize, DecompressionError>
[src]

Decompresses deflate_data (a buffer containing deflate data) and writes the decompressed data to out. Returns the number of decompressed bytes written into out, or an error (see DecompressionError for error cases).

Trait Implementations

impl Drop for Decompressor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.