diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /library/cpp/codecs/delta_codec.h | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/delta_codec.h')
-rw-r--r-- | library/cpp/codecs/delta_codec.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/codecs/delta_codec.h b/library/cpp/codecs/delta_codec.h index 21325825e6a..e3ac4e769ec 100644 --- a/library/cpp/codecs/delta_codec.h +++ b/library/cpp/codecs/delta_codec.h @@ -2,7 +2,7 @@ #include "codecs.h" -#include <util/generic/array_ref.h> +#include <util/generic/array_ref.h> #include <util/generic/typetraits.h> #include <util/generic/bitops.h> #include <util/string/cast.h> @@ -70,7 +70,7 @@ namespace NCodecs { } TString GetName() const override { - return ToString(MyName()); + return ToString(MyName()); } template <class TItem> @@ -85,16 +85,16 @@ namespace NCodecs { } b.Reserve(s.size()); - TArrayRef<const T> tin{(const T*)s.data(), s.size() / sizeof(T)}; + TArrayRef<const T> tin{(const T*)s.data(), s.size() / sizeof(T)}; - const T* it = tin.begin(); + const T* it = tin.begin(); TDelta last = *(it++); AppendTo(b, last); TDelta maxt = SubSafe(MaxDelta, last); TDelta mint = AddSafe(MinDelta, last); - for (; it != tin.end(); ++it) { + for (; it != tin.end(); ++it) { TDelta t = *it; if (Y_LIKELY((t >= mint) & (t <= maxt))) { @@ -122,11 +122,11 @@ namespace NCodecs { } b.Reserve(s.size()); - TArrayRef<const T> tin{(const T*)s.data(), s.size() / sizeof(T)}; + TArrayRef<const T> tin{(const T*)s.data(), s.size() / sizeof(T)}; TDecoder dec; - for (const T* it = tin.begin(); it != tin.end(); ++it) { + for (const T* it = tin.begin(); it != tin.end(); ++it) { T tmp; memcpy(&tmp, it, sizeof(tmp)); if (dec.Decode(tmp)) { |