(
data: &[u8],
d: &mut D,
bufsize: usize,
max_length: Option<usize>,
calc_flush: impl Fn(bool) -> D::Flush,
)
| 113 | } |
| 114 | |
| 115 | pub fn _decompress<D: Decompressor>( |
| 116 | data: &[u8], |
| 117 | d: &mut D, |
| 118 | bufsize: usize, |
| 119 | max_length: Option<usize>, |
| 120 | calc_flush: impl Fn(bool) -> D::Flush, |
| 121 | ) -> Result<(Vec<u8>, bool), D::Error> { |
| 122 | let mut data = Chunker::new(data); |
| 123 | _decompress_chunks(&mut data, d, bufsize, max_length, calc_flush) |
| 124 | } |
| 125 | |
| 126 | pub fn _decompress_chunks<D: Decompressor>( |
| 127 | data: &mut Chunker<'_>, |
no test coverage detected