diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
commit | f773626848a7c7456803654292e716b83d69cc12 (patch) | |
tree | db052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/stream/zlib.cpp | |
parent | f43ab775d197d300eb67bd4497632b909cd7c2a5 (diff) | |
download | ydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream/zlib.cpp')
-rw-r--r-- | util/stream/zlib.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/zlib.cpp b/util/stream/zlib.cpp index 60f4e9439f..5e9659b197 100644 --- a/util/stream/zlib.cpp +++ b/util/stream/zlib.cpp @@ -208,13 +208,13 @@ public: ythrow TZLibCompressorError() << "can not init inflate engine"; } - // Create exactly the same files on all platforms by fixing OS field in the header. - if (p.Type == ZLib::GZip) { + // Create exactly the same files on all platforms by fixing OS field in the header. + if (p.Type == ZLib::GZip) { GZHeader_ = MakeHolder<gz_header>(); - GZHeader_->os = 3; // UNIX - deflateSetHeader(Z(), GZHeader_.Get()); - } - + GZHeader_->os = 3; // UNIX + deflateSetHeader(Z(), GZHeader_.Get()); + } + if (p.Dict.size()) { if (deflateSetDictionary(Z(), (const Bytef*)p.Dict.data(), p.Dict.size())) { ythrow TZLibCompressorError() << "can not set deflate dictionary"; @@ -315,7 +315,7 @@ private: private: IOutputStream* Stream_; - THolder<gz_header> GZHeader_; + THolder<gz_header> GZHeader_; }; TZLibDecompress::TZLibDecompress(IZeroCopyInput* input, ZLib::StreamType type, TStringBuf dict) |