diff options
author | mvel <mvel@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
commit | bd30392c4cc92487950adc375c07adf52da1d592 (patch) | |
tree | e8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /library/cpp/compproto/bit.h | |
parent | 5d50718e66d9c037dc587a0211110b7d25a66185 (diff) | |
download | ydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz |
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/compproto/bit.h')
-rw-r--r-- | library/cpp/compproto/bit.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/compproto/bit.h b/library/cpp/compproto/bit.h index 6a421b65f70..9f59481415c 100644 --- a/library/cpp/compproto/bit.h +++ b/library/cpp/compproto/bit.h @@ -1,15 +1,15 @@ #pragma once - + #include <util/generic/array_ref.h> #include <util/generic/vector.h> -#include <util/stream/output.h> +#include <util/stream/output.h> #include <util/stream/input.h> - + #include "huff.h" #include "compressor.h" #include "metainfo.h" -namespace NCompProto { +namespace NCompProto { struct TBitBuffer { TVector<ui8> Out; ui64 Position; @@ -18,7 +18,7 @@ namespace NCompProto { TBitBuffer() { Clear(); } - + static ui64 Read(const ui8* out, ui64 position, size_t size) { const ui8* dst = out + (size_t(position >> 3)); ui64 outCode = *reinterpret_cast<const ui64*>(dst); |