| 160 | } |
| 161 | |
| 162 | std::unique_ptr<ReadBuffer> wrapReadBufferWithCompressionMethod( |
| 163 | std::unique_ptr<ReadBuffer> nested, CompressionMethod method, int zstd_window_log_max, size_t buf_size, char * existing_memory, size_t alignment) |
| 164 | { |
| 165 | if (method == CompressionMethod::None) |
| 166 | return nested; |
| 167 | return createCompressedWrapper(std::move(nested), method, buf_size, existing_memory, alignment, zstd_window_log_max); |
| 168 | } |
| 169 | |
| 170 | |
| 171 | template<typename WriteBufferT> |
no test coverage detected