pub struct Decompressor { /* private fields */ }
Expand description

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

Implementations

Returns a newly constructed instance of a Decompressor.

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).

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).

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

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.