pub struct XzStream { /* private fields */ }Available on crate feature
xz only.Expand description
Sans-I/O XZ stream decoder.
Implements a buffer-pair API: call process() repeatedly with input/output
buffers until Status::StreamEnd is returned.
§Limitations
A block may contain at most one non-LZMA2 filter (a single BCJ or Delta
filter) preceding the terminating LZMA2 filter. Streams that chain multiple
non-LZMA2 filters in a block are rejected with an error. Use the blocking
XzReader to decode those.
Implementations§
Source§impl XzStream
impl XzStream
Sourcepub fn new(allow_multiple_streams: bool) -> Self
pub fn new(allow_multiple_streams: bool) -> Self
Create a new XZ stream decoder.
If allow_multiple_streams is true, concatenated XZ streams are decoded
sequentially until EOF.
Sourcepub fn check_type(&self) -> Option<CheckType>
pub fn check_type(&self) -> Option<CheckType>
The integrity check type used by the current stream.
This is read from the stream header during decoding.
Before the header has been parsed, returns CheckType::None.
Auto Trait Implementations§
impl Freeze for XzStream
impl RefUnwindSafe for XzStream
impl Send for XzStream
impl Sync for XzStream
impl Unpin for XzStream
impl UnsafeUnpin for XzStream
impl UnwindSafe for XzStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more