aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/streams/lz/lz4/block.h
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2022-12-02 11:31:25 +0300
committerqrort <qrort@yandex-team.com>2022-12-02 11:31:25 +0300
commitb1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (patch)
tree2a23209faf0fea5586a6d4b9cee60d1b318d29fe /library/cpp/streams/lz/lz4/block.h
parent559174a9144de40d6bb3997ea4073c82289b4974 (diff)
downloadydb-b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806.tar.gz
remove kikimr/driver DEPENDS
Diffstat (limited to 'library/cpp/streams/lz/lz4/block.h')
-rw-r--r--library/cpp/streams/lz/lz4/block.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/library/cpp/streams/lz/lz4/block.h b/library/cpp/streams/lz/lz4/block.h
deleted file mode 100644
index 9a912c0be2..0000000000
--- a/library/cpp/streams/lz/lz4/block.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-
-#include <library/cpp/streams/lz/common/compressor.h>
-
-#include <contrib/libs/lz4/lz4.h>
-
-/*
- * LZ4
- */
-class TLZ4 {
-public:
- static constexpr char signature[]= "LZ.4";
-
- static inline size_t Hint(size_t len) noexcept {
- return Max<size_t>((size_t)(len * 1.06), 100);
- }
-
- inline size_t Compress(const char* data, size_t len, char* ptr, size_t dstMaxSize) {
- return LZ4_compress_default(data, ptr, len, dstMaxSize);
- }
-
- inline size_t Decompress(const char* data, size_t len, char* ptr, size_t max) {
- int res = LZ4_decompress_safe(data, ptr, len, max);
- if (res < 0)
- ythrow TDecompressorError();
- return res;
- }
-
- inline void InitFromStream(IInputStream*) const noexcept {
- }
-
- static inline bool SaveIncompressibleChunks() noexcept {
- return false;
- }
-};