diff options
author | babenko <babenko@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
commit | f31097c96270919a1f49360bdaaa69ea4f3fefab (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/coding/varint.h | |
parent | cec37806d8847aa3db53bafc9e251d4aaf325c12 (diff) | |
download | ydb-f31097c96270919a1f49360bdaaa69ea4f3fefab.tar.gz |
Restoring authorship annotation for <babenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/coding/varint.h')
-rw-r--r-- | library/cpp/yt/coding/varint.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/yt/coding/varint.h b/library/cpp/yt/coding/varint.h index 78e7e5990c..c5399f8b06 100644 --- a/library/cpp/yt/coding/varint.h +++ b/library/cpp/yt/coding/varint.h @@ -1,23 +1,23 @@ #pragma once -#include <library/cpp/yt/exception/exception.h> - +#include <library/cpp/yt/exception/exception.h> + #include <util/system/defaults.h> -#include <util/stream/input.h> -#include <util/stream/output.h> +#include <util/stream/input.h> +#include <util/stream/output.h> namespace NYT { //////////////////////////////////////////////////////////////////////////////// -constexpr size_t MaxVarInt64Size = (8 * sizeof(ui64) - 1) / 7 + 1; -constexpr size_t MaxVarUint64Size = (8 * sizeof(ui64) - 1) / 7 + 1; +constexpr size_t MaxVarInt64Size = (8 * sizeof(ui64) - 1) / 7 + 1; +constexpr size_t MaxVarUint64Size = (8 * sizeof(ui64) - 1) / 7 + 1; -constexpr size_t MaxVarInt32Size = (8 * sizeof(ui32) - 1) / 7 + 1; -constexpr size_t MaxVarUint32Size = (8 * sizeof(ui32) - 1) / 7 + 1; +constexpr size_t MaxVarInt32Size = (8 * sizeof(ui32) - 1) / 7 + 1; +constexpr size_t MaxVarUint32Size = (8 * sizeof(ui32) - 1) / 7 + 1; -// Various functions to read/write varints. +// Various functions to read/write varints. // Returns the number of bytes written. int WriteVarUint64(IOutputStream* output, ui64 value); @@ -27,8 +27,8 @@ int WriteVarInt64(IOutputStream* output, i64 value); int WriteVarUint64(char* output, ui64 value); int WriteVarUint32(char* output, ui32 value); -int WriteVarInt32(char* output, i32 value); -int WriteVarInt64(char* output, i64 value); +int WriteVarInt32(char* output, i32 value); +int WriteVarInt64(char* output, i64 value); // Returns the number of bytes read. int ReadVarUint64(IInputStream* input, ui64* value); @@ -38,8 +38,8 @@ int ReadVarInt64(IInputStream* input, i64* value); int ReadVarUint64(const char* input, ui64* value); int ReadVarUint32(const char* input, ui32* value); -int ReadVarInt32(const char* input, i32* value); -int ReadVarInt64(const char* input, i64* value); +int ReadVarInt32(const char* input, i32* value); +int ReadVarInt64(const char* input, i64* value); // Throws exception if integer is not complete when `end' is reached. int ReadVarUint64(const char* input, const char* end, ui64* value); |