pub struct XzDecoder<W> { /* private fields */ }
futures-io
and xz
only.Expand description
A xz decoder, or decompressor.
This structure implements an AsyncWrite
interface and will
take in compressed data and write it uncompressed to an underlying stream.
Implementations
Creates a new decoder which will take in compressed data and write it uncompressedd to the given stream.
Acquires a reference to the underlying reader that this decoder is wrapping.
Acquires a mutable reference to the underlying reader that this decoder is wrapping.
Note that care must be taken to avoid tampering with the state of the reader which may otherwise confuse this decoder.
Acquires a pinned mutable reference to the underlying reader that this decoder is wrapping.
Note that care must be taken to avoid tampering with the state of the reader which may otherwise confuse this decoder.
Consumes this decoder returning the underlying reader.
Note that this may discard internal state of this decoder, so care should be taken to avoid losing resources when this is called.