MCPcopy Create free account
hub / github.com/catboost/catboost / MeasureOffset

Function MeasureOffset

library/cpp/containers/comptrie/comptrie_impl.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace NCompactTrie {
9 size_t MeasureOffset(size_t offset) {
10 int n = 0;
11
12 while (offset) {
13 offset >>= 8;
14 ++n;
15 }
16
17 return n;
18 }
19
20 size_t PackOffset(char* buffer, size_t offset) {
21 size_t len = MeasureOffset(offset);

Callers 6

PackOffsetFunction · 0.85
ArcMeasureMethod · 0.85
ArcSaveSelfMethod · 0.85
CompactTrieMinimizeImplFunction · 0.85
MeasureMethod · 0.85
PackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected