diff options
author | kelarev <kelarev@yandex-team.ru> | 2022-02-10 16:50:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:25 +0300 |
commit | 3f71754853b8ed102c9371ac075aa81274a39b9b (patch) | |
tree | fabf3a51c2c43e55573ec287c5d8a17a2206cf07 /library/cpp/containers/comptrie/write_trie_backwards.cpp | |
parent | 054d233fbefc50c1a88d0e4092c192bfbec99826 (diff) | |
download | ydb-3f71754853b8ed102c9371ac075aa81274a39b9b.tar.gz |
Restoring authorship annotation for <kelarev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/write_trie_backwards.cpp')
-rw-r--r-- | library/cpp/containers/comptrie/write_trie_backwards.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/containers/comptrie/write_trie_backwards.cpp b/library/cpp/containers/comptrie/write_trie_backwards.cpp index fd8c28b0ed..905d01cd12 100644 --- a/library/cpp/containers/comptrie/write_trie_backwards.cpp +++ b/library/cpp/containers/comptrie/write_trie_backwards.cpp @@ -1,8 +1,8 @@ #include "write_trie_backwards.h" #include "comptrie_impl.h" -#include "leaf_skipper.h" - +#include "leaf_skipper.h" + #include <util/generic/buffer.h> #include <util/generic/vector.h> @@ -85,14 +85,14 @@ namespace NCompactTrie { size_t nodeLength = enumerator.RecreateNode(nullptr, end - pos); if (nodeLength > buf.size()) buf.resize(nodeLength); - + size_t realLength = enumerator.RecreateNode(buf.data(), end - pos); Y_ASSERT(realLength == nodeLength); - + pos -= nodeLength; memcpy(pos, buf.data(), nodeLength); } - + switch (mode) { case MM_NOALLOC: os.Write(pos, end - pos); @@ -103,8 +103,8 @@ namespace NCompactTrie { default: Y_VERIFY(false); } - + return end - pos; - } - -} + } + +} |