diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:13 +0300 |
commit | 736dcd8ca259457a136f2f9f9168c44643914323 (patch) | |
tree | ddd46a036d68bfa83aa11b892f31243ea6b068a1 /library/cpp/streams/lz | |
parent | 9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff) | |
download | ydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/streams/lz')
-rw-r--r-- | library/cpp/streams/lz/lz.cpp | 14 | ||||
-rw-r--r-- | library/cpp/streams/lz/lz_ut.cpp | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/streams/lz/lz.cpp b/library/cpp/streams/lz/lz.cpp index b65bb3ed96..3f005a50a9 100644 --- a/library/cpp/streams/lz/lz.cpp +++ b/library/cpp/streams/lz/lz.cpp @@ -102,7 +102,7 @@ private: ui8 compressed = false; if (len) { - const size_t out = this->Compress((const char*)ptr, len, (char*)Block(), this->AdditionalDataLength()); + const size_t out = this->Compress((const char*)ptr, len, (char*)Block(), this->AdditionalDataLength()); // catch compressor buffer overrun (e.g. SEARCH-2043) //Y_VERIFY(out <= this->Hint(this->BlockSize())); @@ -402,7 +402,7 @@ protected: class TMiniLzoCompressor: public TMiniLzo, public TFixedArray<LZO1X_MEM_COMPRESS + 1> { public: - inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { + inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { lzo_uint out = 0; lzo1x_1_compress((const lzo_bytep)data, len, (lzo_bytep)ptr, &out, WorkMem_); @@ -438,7 +438,7 @@ public: 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*/) { + inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { return fastlz_compress(data, len, ptr); } @@ -470,8 +470,8 @@ public: 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 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) { @@ -505,7 +505,7 @@ public: return Max<size_t>(snappy::MaxCompressedLength(len), 100); } - inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { + inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { size_t reslen = 0; snappy::RawCompress(data, len, ptr, &reslen); return reslen; @@ -575,7 +575,7 @@ const char TQuickLZBase::signature[] = "YLZQ"; class TQuickLZCompress: public TQuickLZBase { public: - inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { + inline size_t Compress(const char* data, size_t len, char* ptr, size_t /*dstMaxSize*/) { return Table_->Compress(data, ptr, len, (char*)Mem_.Get()); } }; diff --git a/library/cpp/streams/lz/lz_ut.cpp b/library/cpp/streams/lz/lz_ut.cpp index 6876f070fc..ea8a920429 100644 --- a/library/cpp/streams/lz/lz_ut.cpp +++ b/library/cpp/streams/lz/lz_ut.cpp @@ -1,6 +1,6 @@ #include "lz.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <library/cpp/resource/resource.h> #include <util/stream/file.h> |