diff options
author | Alexander Fokin <apfokin@gmail.com> | 2022-02-10 16:45:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:38 +0300 |
commit | bf9e69a933f89af083d895185f01ed65e4d90766 (patch) | |
tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /library/cpp/streams/lzma | |
parent | 863a59a65247c24db7cb06789bc5cf79d04da32f (diff) | |
download | ydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/streams/lzma')
-rw-r--r-- | library/cpp/streams/lzma/lzma.cpp | 8 | ||||
-rw-r--r-- | library/cpp/streams/lzma/lzma_ut.cpp | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/streams/lzma/lzma.cpp b/library/cpp/streams/lzma/lzma.cpp index e0d3e896fd..f1942fa546 100644 --- a/library/cpp/streams/lzma/lzma.cpp +++ b/library/cpp/streams/lzma/lzma.cpp @@ -179,7 +179,7 @@ namespace { inline bool FlushImpl() { if (Out_.Avail()) { - TransferData(&Out_, Slave_); + TransferData(&Out_, Slave_); Out_.Reset(nullptr, 0); return true; @@ -464,12 +464,12 @@ public: private: bool Fill() override { - size_t size = Input_->Next(&InBegin_); + size_t size = Input_->Next(&InBegin_); - if (size) { + if (size) { InEnd_ = InBegin_ + size; - return true; + return true; } return false; diff --git a/library/cpp/streams/lzma/lzma_ut.cpp b/library/cpp/streams/lzma/lzma_ut.cpp index f73d8509b6..847e98d1ca 100644 --- a/library/cpp/streams/lzma/lzma_ut.cpp +++ b/library/cpp/streams/lzma/lzma_ut.cpp @@ -17,12 +17,12 @@ public: private: size_t DoNext(const void** ptr, size_t len) override { if (Pos < Data.end()) { - len = Min(len, static_cast<size_t>(1)); - *ptr = Pos; - Pos += len; - return len; + len = Min(len, static_cast<size_t>(1)); + *ptr = Pos; + Pos += len; + return len; } else { - return 0; + return 0; } } @@ -69,7 +69,7 @@ private: try { TLzmaCompress c(&out); - TransferData(&mi, &c); + TransferData(&mi, &c); } catch (int i) { UNIT_ASSERT_EQUAL(i, 12345); } @@ -85,7 +85,7 @@ private: TStringOutput so(res); TLzmaCompress c(&so); - TransferData(&mi, &c); + TransferData(&mi, &c); c.Finish(); } @@ -104,7 +104,7 @@ private: { TMemoryInput mi(res.data(), res.size()); TStringOutput so(data1); - TLzmaDecompress d(&mi); + TLzmaDecompress d(&mi); TransferData(&d, &so); } @@ -115,7 +115,7 @@ private: { TStrokaByOneByte mi(res); TStringOutput so(data1); - TLzmaDecompress d(&mi); + TLzmaDecompress d(&mi); TransferData(&d, &so); } |