| 207 | } |
| 208 | |
| 209 | void Compress(Codec* compressor, int64_t input_len, uint8_t* input, |
| 210 | int64_t* output_len, uint8_t** output, bool output_preallocated) { |
| 211 | if (input == NULL && compressor->file_extension() == "bz2") { |
| 212 | // bzip does not allow NULL input |
| 213 | *output = NULL; |
| 214 | *output_len = 0; |
| 215 | return; |
| 216 | } |
| 217 | EXPECT_OK(compressor->ProcessBlock(output_preallocated, input_len, |
| 218 | input, output_len, output)); |
| 219 | } |
| 220 | |
| 221 | Status StreamingDecompress(Codec* decompressor, int64_t input_len, uint8_t* input, |
| 222 | int64_t uncompressed_len, uint8_t* uncompressed_input, bool expected_stream_end, |
nothing calls this directly
no test coverage detected