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

Interface Decompressor

crates/stdlib/src/compression.rs:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40pub trait Decompressor {
41 type Flush: DecompressFlushKind;
42 type Status: DecompressStatus;
43 type Error;
44
45 fn total_in(&self) -> u64;
46 fn decompress_vec(
47 &mut self,
48 input: &[u8],
49 output: &mut Vec<u8>,
50 flush: Self::Flush,
51 ) -> Result<Self::Status, Self::Error>;
52 fn maybe_set_dict(&mut self, err: Self::Error) -> Result<(), Self::Error> {
53 Err(err)
54 }
55}
56
57pub trait DecompressStatus {
58 fn is_stream_end(&self) -> bool;

Callers 1

_decompress_chunksFunction · 0.45

Implementers 3

lzma.rscrates/stdlib/src/lzma.rs
zlib.rscrates/stdlib/src/zlib.rs
bz2.rscrates/stdlib/src/bz2.rs

Calls

no outgoing calls

Tested by

no test coverage detected