| 38 | } |
| 39 | |
| 40 | pub 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 | |
| 57 | pub trait DecompressStatus { |
| 58 | fn is_stream_end(&self) -> bool; |
no outgoing calls
no test coverage detected