pub struct PreflateStreamProcessor { /* private fields */ }
Expand description
Takes a stream of deflate compressed data removes the deflate compression, recording the data that can be used to reconstruct it along with the plain-text.
Implementations§
Source§impl PreflateStreamProcessor
impl PreflateStreamProcessor
Sourcepub fn new(plain_text_limit: usize, verify: bool) -> Self
pub fn new(plain_text_limit: usize, verify: bool) -> Self
Creates a new PreflateStreamProcessor plain_text_limit: the maximum size of the plain text that will decompressed to memory verify: if true, the decompressed data will be recompressed and compared to the original as it is run
pub fn is_done(&self) -> bool
pub fn plain_text(&self) -> &PlainText
pub fn shrink_to_dictionary(&mut self)
pub fn detach_plain_text(self) -> PlainText
Sourcepub fn decompress(
&mut self,
compressed_data: &[u8],
) -> Result<PreflateStreamChunkResult>
pub fn decompress( &mut self, compressed_data: &[u8], ) -> Result<PreflateStreamChunkResult>
decompresses a deflate stream and returns the plaintext and cabac_encoded data that can be used to reconstruct it
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreflateStreamProcessor
impl !RefUnwindSafe for PreflateStreamProcessor
impl !Send for PreflateStreamProcessor
impl !Sync for PreflateStreamProcessor
impl Unpin for PreflateStreamProcessor
impl !UnwindSafe for PreflateStreamProcessor
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