#pragma once #include #include namespace DB { class CompressedReadBufferWrapper : public BufferWithOwnMemory { public: CompressedReadBufferWrapper( std::unique_ptr in_, size_t buf_size, char * existing_memory, size_t alignment) : BufferWithOwnMemory(buf_size, existing_memory, alignment) , in(std::move(in_)) {} const ReadBuffer & getWrappedReadBuffer() const { return *in; } ReadBuffer & getWrappedReadBuffer() { return *in; } void prefetch() override { in->prefetch(); } protected: std::unique_ptr in; }; }