diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/streams/lzma | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/streams/lzma')
-rw-r--r-- | library/cpp/streams/lzma/lzma.cpp | 18 | ||||
-rw-r--r-- | library/cpp/streams/lzma/lzma.h | 4 | ||||
-rw-r--r-- | library/cpp/streams/lzma/lzma_ut.cpp | 20 |
3 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/streams/lzma/lzma.cpp b/library/cpp/streams/lzma/lzma.cpp index f1942fa546..34c4e50c84 100644 --- a/library/cpp/streams/lzma/lzma.cpp +++ b/library/cpp/streams/lzma/lzma.cpp @@ -31,7 +31,7 @@ namespace { return ret->AdditionalData(); } - inline void Deallocate(void* ptr) noexcept { + inline void Deallocate(void* ptr) noexcept { if (ptr) { delete TAllocation::ObjectFromData(ptr); } @@ -65,7 +65,7 @@ namespace { { } - ~TInput() override { + ~TInput() override { } size_t DoRead(void* ptr, size_t len) override { @@ -83,7 +83,7 @@ namespace { { } - ~TOutput() override { + ~TOutput() override { } void DoWrite(const void* ptr, size_t len) override { @@ -105,7 +105,7 @@ namespace { { } - virtual ~TInverseFilter() { + virtual ~TInverseFilter() { if (!UncaughtException()) { try { Finish(); @@ -277,7 +277,7 @@ namespace { TMemoryGc Gc_; }; - inline ISzAlloc* Alloc() noexcept { + inline ISzAlloc* Alloc() noexcept { return &Alloc_; } @@ -317,7 +317,7 @@ namespace { Check(LzmaEnc_WriteProperties(H_, PropsBuf_, &bufLen)); } - inline ~TLzmaCompressBase() { + inline ~TLzmaCompressBase() { LzmaEnc_Destroy(H_, Alloc(), Alloc()); } @@ -354,7 +354,7 @@ public: { LzmaDec_Construct(&H_); } - inline virtual ~TImpl() { + inline virtual ~TImpl() { LzmaDec_Free(&H_, Alloc()); } @@ -483,7 +483,7 @@ TLzmaCompress::TLzmaCompress(IOutputStream* slave, size_t level) { } -TLzmaCompress::~TLzmaCompress() { +TLzmaCompress::~TLzmaCompress() { } void TLzmaCompress::DoWrite(const void* buf, size_t len) { @@ -512,7 +512,7 @@ TLzmaDecompress::TLzmaDecompress(IZeroCopyInput* input) { } -TLzmaDecompress::~TLzmaDecompress() { +TLzmaDecompress::~TLzmaDecompress() { } size_t TLzmaDecompress::DoRead(void* buf, size_t len) { diff --git a/library/cpp/streams/lzma/lzma.h b/library/cpp/streams/lzma/lzma.h index ca1e06e9ef..daf9dd66b9 100644 --- a/library/cpp/streams/lzma/lzma.h +++ b/library/cpp/streams/lzma/lzma.h @@ -9,7 +9,7 @@ class TLzmaCompress: public IOutputStream { public: TLzmaCompress(IOutputStream* slave, size_t level = 7); - ~TLzmaCompress() override; + ~TLzmaCompress() override; private: void DoWrite(const void* buf, size_t len) override; @@ -24,7 +24,7 @@ class TLzmaDecompress: public IInputStream { public: TLzmaDecompress(IInputStream* slave); TLzmaDecompress(IZeroCopyInput* input); - ~TLzmaDecompress() override; + ~TLzmaDecompress() override; private: size_t DoRead(void* buf, size_t len) override; diff --git a/library/cpp/streams/lzma/lzma_ut.cpp b/library/cpp/streams/lzma/lzma_ut.cpp index 847e98d1ca..907de209b5 100644 --- a/library/cpp/streams/lzma/lzma_ut.cpp +++ b/library/cpp/streams/lzma/lzma_ut.cpp @@ -8,7 +8,7 @@ class TStrokaByOneByte: public IZeroCopyInput { public: - TStrokaByOneByte(const TString& s) + TStrokaByOneByte(const TString& s) : Data(s) , Pos(s.data()) { @@ -26,7 +26,7 @@ private: } } - TString Data; + TString Data; const char* Pos; }; @@ -37,15 +37,15 @@ class TLzmaTest: public TTestBase { UNIT_TEST_SUITE_END(); private: - inline TString GenData() { - TString data; + inline TString GenData() { + TString data; TReallyFastRng32 rnd(RandomNumber<ui64>()); for (size_t i = 0; i < 50000; ++i) { const char ch = rnd.Uniform(256); const size_t len = 1 + rnd.Uniform(10); - data += TString(len, ch); + data += TString(len, ch); } return data; @@ -54,7 +54,7 @@ private: inline void Test2() { class TExcOutput: public IOutputStream { public: - ~TExcOutput() override { + ~TExcOutput() override { } void DoWrite(const void*, size_t) override { @@ -62,7 +62,7 @@ private: } }; - TString data(GenData()); + TString data(GenData()); TMemoryInput mi(data.data(), data.size()); TExcOutput out; @@ -76,9 +76,9 @@ private: } inline void Test1() { - TString data(GenData()); - TString data1; - TString res; + TString data(GenData()); + TString data1; + TString res; { TMemoryInput mi(data.data(), data.size()); |