Struct bzip2::write::BzDecoder [] [src]

pub struct BzDecoder<W: Write> { /* fields omitted */ }

A compression stream which will have compressed data written to it and will write uncompressed data to an output stream.

Methods

impl<W: Write> BzDecoder<W>
[src]

Create a new compression stream which will compress at the given level to write compress output to the give output stream.

Unwrap the underlying writer, finishing the compression stream.

Returns the number of bytes produced by the decompressor

Note that, due to buffering, this only bears any relation to total_in() after a call to flush(). At that point, total_in() / total_out() is the compression ratio.

Returns the number of bytes consumed by the decompressor (e.g. the number of bytes written to this stream.)

Trait Implementations

impl<W: Write> Write for BzDecoder<W>
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

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

impl<W: Write> Drop for BzDecoder<W>
[src]

A method called when the value goes out of scope. Read more