[−][src]Struct libdeflater::Decompressor
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]
&mut self,
gz_data: &[u8],
out: &mut [u8]
) -> Result<usize, DecompressionError>
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]
&mut self,
zlib_data: &[u8],
out: &mut [u8]
) -> Result<usize, DecompressionError>
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]
&mut self,
deflate_data: &[u8],
out: &mut [u8]
) -> Result<usize, DecompressionError>
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
impl RefUnwindSafe for Decompressor
impl !Send for Decompressor
impl !Sync for Decompressor
impl Unpin for Decompressor
impl UnwindSafe for Decompressor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,