pub struct CompressionReader { /* private fields */ }Expand description
Compression reader for streaming decompression
Implementations§
Source§impl CompressionReader
impl CompressionReader
Sourcepub fn new(algorithm: CompressionAlgorithm) -> Self
pub fn new(algorithm: CompressionAlgorithm) -> Self
Create a new compression reader
Sourcepub fn with_block_size(
algorithm: CompressionAlgorithm,
block_size: usize,
) -> Self
pub fn with_block_size( algorithm: CompressionAlgorithm, block_size: usize, ) -> Self
Create a new compression reader with specific block size
Sourcepub fn read_streaming(&mut self, compressed_chunks: &[&[u8]]) -> Result<Vec<u8>>
pub fn read_streaming(&mut self, compressed_chunks: &[&[u8]]) -> Result<Vec<u8>>
Read and decompress data in streaming fashion
Sourcepub fn algorithm(&self) -> &CompressionAlgorithm
pub fn algorithm(&self) -> &CompressionAlgorithm
Get the compression algorithm
Sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Get the block size
Auto Trait Implementations§
impl Freeze for CompressionReader
impl RefUnwindSafe for CompressionReader
impl Send for CompressionReader
impl Sync for CompressionReader
impl Unpin for CompressionReader
impl UnsafeUnpin for CompressionReader
impl UnwindSafe for CompressionReader
Blanket Implementations§
impl<T> Allocation for T
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