| 86 | } |
| 87 | |
| 88 | int DecompressionWindowBitsForFormat(GZipFormat format, int window_bits) { |
| 89 | if (format == GZipFormat::DEFLATE) { |
| 90 | return -window_bits; |
| 91 | } else { |
| 92 | /* If not deflate, autodetect format from header */ |
| 93 | return window_bits | DETECT_CODEC; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | Status ZlibErrorPrefix(const char* prefix_msg, const char* msg) { |
| 98 | return Status::IOError(prefix_msg, (msg) ? msg : "(unknown error)"); |
no outgoing calls
no test coverage detected