diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/packers/region_packer.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/packers/region_packer.h')
-rw-r--r-- | library/cpp/packers/region_packer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/packers/region_packer.h b/library/cpp/packers/region_packer.h index 2c661cb5bc..35ec9f3359 100644 --- a/library/cpp/packers/region_packer.h +++ b/library/cpp/packers/region_packer.h @@ -1,7 +1,7 @@ #pragma once -#include "packers.h" - +#include "packers.h" + #include <util/generic/array_ref.h> // Stores an array of PODs in the trie (copying them with memcpy). @@ -14,8 +14,8 @@ public: void UnpackLeaf(const char* p, TRecords& result) const { size_t len; - NPackers::TIntegralPacker<size_t>().UnpackLeaf(p, len); - size_t start = NPackers::TIntegralPacker<size_t>().SkipLeaf(p); + NPackers::TIntegralPacker<size_t>().UnpackLeaf(p, len); + size_t start = NPackers::TIntegralPacker<size_t>().SkipLeaf(p); result = TRecords((TRecord*)(p + start), len); } @@ -23,19 +23,19 @@ public: size_t len = data.size(); size_t lenChar = len * sizeof(TRecord); size_t start = computedSize - lenChar; - NPackers::TIntegralPacker<size_t>().PackLeaf(buf, len, NPackers::TIntegralPacker<size_t>().MeasureLeaf(len)); + NPackers::TIntegralPacker<size_t>().PackLeaf(buf, len, NPackers::TIntegralPacker<size_t>().MeasureLeaf(len)); memcpy(buf + start, data.data(), lenChar); } size_t MeasureLeaf(const TRecords& data) const { size_t len = data.size(); - return NPackers::TIntegralPacker<size_t>().MeasureLeaf(len) + len * sizeof(TRecord); + return NPackers::TIntegralPacker<size_t>().MeasureLeaf(len) + len * sizeof(TRecord); } size_t SkipLeaf(const char* p) const { - size_t result = NPackers::TIntegralPacker<size_t>().SkipLeaf(p); + size_t result = NPackers::TIntegralPacker<size_t>().SkipLeaf(p); size_t len; - NPackers::TIntegralPacker<size_t>().UnpackLeaf(p, len); + NPackers::TIntegralPacker<size_t>().UnpackLeaf(p, len); result += len * sizeof(TRecord); return result; } |