pub struct ZranDecoder { /* private fields */ }Expand description
Gzip/zlib decoder to randomly uncompress Gzip/zlib stream.
Implementations§
Source§impl ZranDecoder
impl ZranDecoder
Sourcepub fn uncompress(
&mut self,
ctx: &ZranContext,
dict: Option<&[u8]>,
input: &[u8],
output: &mut [u8],
) -> Result<usize>
pub fn uncompress( &mut self, ctx: &ZranContext, dict: Option<&[u8]>, input: &[u8], output: &mut [u8], ) -> Result<usize>
Uncompress gzip/zlib compressed data chunk.
§Arguments
- ctx: context to random access compressed stream.
- dict: use this dictionary instead of
ctx.dictto decode data - input: input compressed data stream
- output: buffer to receive uncompressed data
Auto Trait Implementations§
impl Freeze for ZranDecoder
impl RefUnwindSafe for ZranDecoder
impl !Send for ZranDecoder
impl !Sync for ZranDecoder
impl Unpin for ZranDecoder
impl UnwindSafe for ZranDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more