mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
34 lines
638 B
C++
34 lines
638 B
C++
#pragma once
|
|
|
|
#include "CompressedReadBufferBase.h"
|
|
#include <IO/BufferWithOwnMemory.h>
|
|
#include <IO/ReadBuffer.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class CompressedReadBuffer : public CompressedReadBufferBase, public BufferWithOwnMemory<ReadBuffer>
|
|
{
|
|
private:
|
|
size_t size_compressed = 0;
|
|
|
|
bool nextImpl() override;
|
|
|
|
public:
|
|
CompressedReadBuffer(ReadBuffer & in_)
|
|
: CompressedReadBufferBase(&in_), BufferWithOwnMemory<ReadBuffer>(0)
|
|
{
|
|
}
|
|
|
|
size_t readBig(char * to, size_t n) override;
|
|
|
|
/// The compressed size of the current block.
|
|
size_t getSizeCompressed() const
|
|
{
|
|
return size_compressed;
|
|
}
|
|
};
|
|
|
|
}
|