| 120 | } |
| 121 | |
| 122 | std::pair<uint64_t, uint64_t> getCompressionLevelRange(const CompressionMethod & method) |
| 123 | { |
| 124 | switch (method) |
| 125 | { |
| 126 | case CompressionMethod::Zstd: |
| 127 | return {1, 22}; |
| 128 | case CompressionMethod::Lz4: |
| 129 | return {1, 12}; |
| 130 | default: |
| 131 | return {1, 9}; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | static std::unique_ptr<CompressedReadBufferWrapper> createCompressedWrapper( |
| 136 | std::unique_ptr<ReadBuffer> nested, CompressionMethod method, size_t buf_size, char * existing_memory, size_t alignment, int zstd_window_log_max) |
no outgoing calls
no test coverage detected