ClickHouse/src/IO/LZMAInflatingReadBuffer.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
532 B
C++
Raw Normal View History

#pragma once
2022-04-15 23:56:45 +00:00
#include <IO/CompressedReadBufferWrapper.h>
#include <IO/ReadBuffer.h>
2021-10-27 23:10:39 +00:00
#include <lzma.h>
namespace DB
{
2022-04-15 23:56:45 +00:00
class LZMAInflatingReadBuffer : public CompressedReadBufferWrapper
{
public:
explicit LZMAInflatingReadBuffer(
std::unique_ptr<ReadBuffer> in_,
size_t buf_size = DBMS_DEFAULT_BUFFER_SIZE,
char * existing_memory = nullptr,
size_t alignment = 0);
~LZMAInflatingReadBuffer() override;
private:
bool nextImpl() override;
lzma_stream lstr;
2021-12-30 04:47:34 +00:00
bool eof_flag;
};
2020-11-12 09:21:33 +00:00
2020-11-03 23:47:39 +00:00
}