diff options
author | qrort <qrort@yandex-team.com> | 2022-12-02 11:31:25 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-12-02 11:31:25 +0300 |
commit | b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (patch) | |
tree | 2a23209faf0fea5586a6d4b9cee60d1b318d29fe /library/cpp/streams/xz/decompress.h | |
parent | 559174a9144de40d6bb3997ea4073c82289b4974 (diff) | |
download | ydb-b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806.tar.gz |
remove kikimr/driver DEPENDS
Diffstat (limited to 'library/cpp/streams/xz/decompress.h')
-rw-r--r-- | library/cpp/streams/xz/decompress.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/library/cpp/streams/xz/decompress.h b/library/cpp/streams/xz/decompress.h deleted file mode 100644 index 8389cbdaf9..0000000000 --- a/library/cpp/streams/xz/decompress.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include <util/stream/buffered.h> -#include <util/stream/input.h> - -class IZeroCopyInput; - -/** - * Unbuffered decompressing stream for .XZ and .LZMA files. - * - * Do not use it for reading in small pieces. - */ -class TUnbufferedXzDecompress: public IInputStream { -public: - TUnbufferedXzDecompress(IInputStream* slave); - TUnbufferedXzDecompress(IZeroCopyInput* slave); - ~TUnbufferedXzDecompress() override; - -private: - size_t DoRead(void* buf, size_t len) override; - -private: - class TImpl; - std::unique_ptr<TImpl> Impl_; -}; - -/** - * Buffered decompressing stream for .XZ and .LZMA files. - * - * Supports efficient `ReadLine` calls and similar "reading in small pieces" - * usage patterns. - */ -class TXzDecompress: public TBuffered<TUnbufferedXzDecompress> { -public: - template <class T> - inline TXzDecompress(T&& t, size_t buf = 1 << 13) - : TBuffered<TUnbufferedXzDecompress>(buf, std::forward<T>(t)) - { - } -}; |