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

Function PackOffset

library/cpp/containers/comptrie/comptrie_impl.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 size_t PackOffset(char* buffer, size_t offset) {
21 size_t len = MeasureOffset(offset);
22 size_t i = len;
23
24 while (i--) {
25 buffer[i] = (char)(offset & 0xFF);
26 offset >>= 8;
27 }
28
29 return len;
30 }
31
32 void ShowProgress(size_t n) {
33 if (n % 1000000 == 0)

Callers 2

PackMethod · 0.85
ArcSaveOffsetFunction · 0.85

Calls 1

MeasureOffsetFunction · 0.85

Tested by

no test coverage detected