/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/containers/comptrie/writeable_node.h
26 строк
575 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#pragma once #include <cstddef> namespace NCompactTrie { class TNode; class TWriteableNode { public: const char* LeafPos; size_t LeafLength; size_t ForwardOffset; size_t LeftOffset; size_t RightOffset; char Label; TWriteableNode(); TWriteableNode(const TNode& node, const char* data); // When you call this, the offsets should be relative to the end of the node. Use NPOS to indicate an absent offset. size_t Pack(char* buffer) const; size_t Measure() const; }; }