| 72 | constexpr int kGZipMaxCompressionLevel = 9; |
| 73 | |
| 74 | int CompressionWindowBitsForFormat(GZipFormat format, int window_bits) { |
| 75 | switch (format) { |
| 76 | case GZipFormat::DEFLATE: |
| 77 | window_bits = -window_bits; |
| 78 | break; |
| 79 | case GZipFormat::GZIP: |
| 80 | window_bits += GZIP_CODEC; |
| 81 | break; |
| 82 | case GZipFormat::ZLIB: |
| 83 | break; |
| 84 | } |
| 85 | return window_bits; |
| 86 | } |
| 87 | |
| 88 | int DecompressionWindowBitsForFormat(GZipFormat format, int window_bits) { |
| 89 | if (format == GZipFormat::DEFLATE) { |
no outgoing calls
no test coverage detected