Struct flate2::read::ZlibDecoder
[-] [+]
[src]
pub struct ZlibDecoder<R: Read> { // some fields omitted }
A ZLIB decoder, or decompressor.
This structure implements a Read
interface and takes a stream of
compressed data as input, providing the decompressed data when read from.
Methods
impl<R: Read> DecoderReader<R>
fn new(r: R) -> DecoderReader<R>
Creates a new decoder which will decompress data read from the given stream.
fn new_with_buf(r: R, buf: Vec<u8>) -> DecoderReader<R>
Same as new
, but the intermediate buffer for data is specified.
Note that the specified buffer will only be used up to its current length. The buffer's capacity will also not grow over time.
fn into_inner(self) -> R
Consumes this decoder, returning the underlying reader.