A decompression stream which wraps a compressed stream of data. Decompressed data will be read from the stream.
Create a new decompression stream, which will read compressed
data from the given input stream, and decompress one xz stream.
It may also consume input data that follows the xz stream.
xz::bufread::XzDecoder] instead to process a mix of xz and non-xz data.
pub fn new_multi_decoder(r: R) -> XzDecoder<R>ⓘ[src]
Create a new decompression stream, which will read compressed data from the given input and decompress all the xz stream it contains.
pub fn new_stream(r: R, stream: Stream) -> XzDecoder<R>ⓘ[src]
Creates a new decoder with a custom
Stream can be pre-configured for various checks, different
decompression options/tuning, etc.
Acquires a reference to the underlying stream
Acquires a mutable reference to the underlying stream
Note that mutation of the stream may result in surprising results if this encoder is continued to be used.
pub fn into_inner(self) -> R[src]
Unwrap the underlying writer, finishing the compression stream.
Returns the number of bytes produced by the decompressor (e.g. the number of bytes read from this stream)
Note that, due to buffering, this only bears any relation to
total_in() when the decompressor reaches a sync point
(e.g. where the original compressed stream was flushed).
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 read from the underlying stream)
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>1.36.0[src]
fn is_read_vectored(&self) -> bool[src]
unsafe fn initializer(&self) -> Initializer[src]
fn is_write_vectored(&self) -> bool[src]
impl<R> RefUnwindSafe for XzDecoder<R> where
impl<R> UnwindSafe for XzDecoder<R> where
type Error = Infallible
The type returned in the event of a conversion error.