(&mut self, buf: &mut [u8])
| 75 | |
| 76 | impl Read for CompressionDecoder<'_> { |
| 77 | fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { |
| 78 | match self { |
| 79 | CompressionDecoder::Bzip2(decoder) => decoder.read(buf), |
| 80 | CompressionDecoder::Gzip(decoder) => decoder.read(buf), |
| 81 | CompressionDecoder::Xz(decoder) => decoder.read(buf), |
| 82 | CompressionDecoder::Zstd(decoder) => decoder.read(buf), |
| 83 | CompressionDecoder::None(reader) => reader.read(buf), |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | fn read_to_end(&mut self, buf: &mut Vec<u8>) -> std::io::Result<usize> { |
| 88 | match self { |
nothing calls this directly
no outgoing calls
no test coverage detected