Struct flate2::bufread::GzEncoder [] [src]

pub struct GzEncoder<R: BufRead> {
    // some fields omitted
}

A gzip streaming encoder

This structure exposes a Read interface that will read uncompressed data from the underlying reader and expose the compressed version as a Read interface.

Methods

impl<R: BufRead> EncoderReaderBuf<R>
[src]

Creates a new encoder which will use the given compression level.

The encoder is not configured specially for the emitted header. For header configuration, see the Builder type.

The data read from the stream r will be compressed and available through the returned reader.

Returns the underlying stream, consuming this encoder

Trait Implementations

impl<R: BufRead> Read for EncoderReaderBuf<R>
[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an Iterator over its bytes. Read more

Unstable (io)

: the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an Iterator over chars. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more