diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:30 +0300 |
commit | 4b839d0704ee9be1dabb0310a1f03af24963637b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/zlib.cpp | |
parent | f773626848a7c7456803654292e716b83d69cc12 (diff) | |
download | ydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 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 5e9659b197..60f4e9439f 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) |