diff options
author | solar <solar@yandex-team.ru> | 2022-02-10 16:49:59 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:59 +0300 |
commit | da648cf6f097dd42d968802dca7734c68ef57d67 (patch) | |
tree | 7e2a3befe759a1ce261f51c2ef5bb3159257abed /library/cpp/bit_io/bitinput.h | |
parent | bee0f5f332db3abff5839ff24ac18000c161a30a (diff) | |
download | ydb-da648cf6f097dd42d968802dca7734c68ef57d67.tar.gz |
Restoring authorship annotation for <solar@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/bit_io/bitinput.h')
-rw-r--r-- | library/cpp/bit_io/bitinput.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/bit_io/bitinput.h b/library/cpp/bit_io/bitinput.h index 85711eb7f9..bb5d8be04c 100644 --- a/library/cpp/bit_io/bitinput.h +++ b/library/cpp/bit_io/bitinput.h @@ -1,11 +1,11 @@ -#pragma once - +#pragma once + #include "bitinput_impl.h" #include <util/system/yassert.h> #include <util/generic/vector.h> #include <util/generic/yexception.h> - + #include <iterator> namespace NBitIO { @@ -119,7 +119,7 @@ namespace NBitIO { Y_FORCE_INLINE bool Read(ui64& result, ui64 bits) { return ReadImpl(result, bits); } - + // Do not try to read more than 56 bits at once. Split in two reads or use ReadSafe. // Preserves what's in result. template <typename T> @@ -136,7 +136,7 @@ namespace NBitIO { template <ui64 bits, typename T> Y_FORCE_INLINE bool ReadWords(T& result) { ui64 r64 = 0; - + bool retCode = ReadWordsImpl<bits>(r64); result = r64; @@ -152,11 +152,11 @@ namespace NBitIO { Y_FORCE_INLINE bool Back(int bits) { return Seek(BitOffset() - bits); } - + Y_FORCE_INLINE bool Seek(int bitoffset) { return TBitInputImpl::Seek(bitoffset); } - + // A way to read a portion of bits at random location. // Didn't want to complicate sequential read, neither to copypaste. template <typename T> |