MCPcopy Index your code
hub / github.com/RustPython/RustPython / _decompress

Function _decompress

crates/stdlib/src/compression.rs:115–124  ·  view source on GitHub ↗
(
    data: &[u8],
    d: &mut D,
    bufsize: usize,
    max_length: Option<usize>,
    calc_flush: impl Fn(bool) -> D::Flush,
)

Source from the content-addressed store, hash-verified

113}
114
115pub 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
126pub fn _decompress_chunks<D: Decompressor>(
127 data: &mut Chunker<'_>,

Callers 2

decompressFunction · 0.85
decompress_innerMethod · 0.85

Calls 2

newFunction · 0.85
_decompress_chunksFunction · 0.85

Tested by

no test coverage detected