diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /library/cpp/blockcodecs/core | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core')
-rw-r--r-- | library/cpp/blockcodecs/core/codecs.cpp | 20 | ||||
-rw-r--r-- | library/cpp/blockcodecs/core/common.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.cpp b/library/cpp/blockcodecs/core/codecs.cpp index 9f37df3044..21506e812b 100644 --- a/library/cpp/blockcodecs/core/codecs.cpp +++ b/library/cpp/blockcodecs/core/codecs.cpp @@ -13,7 +13,7 @@ #include <util/generic/cast.h> #include <util/generic/deque.h> #include <util/generic/buffer.h> -#include <util/generic/array_ref.h> +#include <util/generic/array_ref.h> #include <util/generic/singleton.h> #include <util/generic/algorithm.h> #include <util/generic/mem_copy.h> @@ -129,20 +129,20 @@ void ICodec::Decode(const TData& in, TBuffer& out) const { void ICodec::Encode(const TData& in, TString& out) const { const size_t maxLen = MaxCompressedLength(in); - out.ReserveAndResize(maxLen); + out.ReserveAndResize(maxLen); - size_t actualLen = Compress(in, out.begin()); - Y_ASSERT(actualLen <= maxLen); - out.resize(actualLen); + size_t actualLen = Compress(in, out.begin()); + Y_ASSERT(actualLen <= maxLen); + out.resize(actualLen); } void ICodec::Decode(const TData& in, TString& out) const { - const size_t maxLen = GetDecompressedLength(in); - out.ReserveAndResize(maxLen); + const size_t maxLen = GetDecompressedLength(in); + out.ReserveAndResize(maxLen); - size_t actualLen = Decompress(in, out.begin()); - Y_ASSERT(actualLen <= maxLen); - out.resize(actualLen); + size_t actualLen = Decompress(in, out.begin()); + Y_ASSERT(actualLen <= maxLen); + out.resize(actualLen); } ICodec::~ICodec() = default; diff --git a/library/cpp/blockcodecs/core/common.h b/library/cpp/blockcodecs/core/common.h index 0954098489..f05df4d334 100644 --- a/library/cpp/blockcodecs/core/common.h +++ b/library/cpp/blockcodecs/core/common.h @@ -12,7 +12,7 @@ #include <util/generic/hash.h> #include <util/generic/cast.h> #include <util/generic/buffer.h> -#include <util/generic/array_ref.h> +#include <util/generic/array_ref.h> #include <util/generic/singleton.h> #include <util/generic/algorithm.h> #include <util/generic/mem_copy.h> |