Struct flate2::bufread::GzDecoder
[−]
[src]
pub struct GzDecoder<R: BufRead> { // some fields omitted }
A gzip streaming decoder
This structure exposes a Read
interface that will consume compressed
data from the underlying reader and emit uncompressed data.
Methods
impl<R: BufRead> DecoderReaderBuf<R>
fn new(r: R) -> Result<DecoderReaderBuf<R>>
Creates a new decoder from the given reader, immediately parsing the gzip header.
If an error is encountered when parsing the gzip header, an error is returned.
fn header(&self) -> &Header
Returns the header associated with this stream.