diff options
| author | smikler <[email protected]> | 2022-02-10 16:49:33 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:33 +0300 |
| commit | 0e68ae909d3b76a5a001a07880eb0010dec6b2ea (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie/protopacker.h | |
| parent | e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/protopacker.h')
| -rw-r--r-- | library/cpp/containers/comptrie/protopacker.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/containers/comptrie/protopacker.h b/library/cpp/containers/comptrie/protopacker.h index 8349f83582b..3e15866dc54 100644 --- a/library/cpp/containers/comptrie/protopacker.h +++ b/library/cpp/containers/comptrie/protopacker.h @@ -4,22 +4,22 @@ #include <util/ysaveload.h> template <class Proto> -class TProtoPacker { +class TProtoPacker { public: TProtoPacker() = default; - void UnpackLeaf(const char* p, Proto& entry) const { + void UnpackLeaf(const char* p, Proto& entry) const { TMemoryInput in(p + sizeof(ui32), SkipLeaf(p) - sizeof(ui32)); entry.ParseFromArcadiaStream(&in); } - void PackLeaf(char* p, const Proto& entry, size_t size) const { + void PackLeaf(char* p, const Proto& entry, size_t size) const { TMemoryOutput out(p, size + sizeof(ui32)); Save<ui32>(&out, size); entry.SerializeToArcadiaStream(&out); } - size_t MeasureLeaf(const Proto& entry) const { - return entry.ByteSize() + sizeof(ui32); - } + size_t MeasureLeaf(const Proto& entry) const { + return entry.ByteSize() + sizeof(ui32); + } size_t SkipLeaf(const char* p) const { TMemoryInput in(p, sizeof(ui32)); ui32 size; |
