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

Method GetBlockLen

library/cpp/on_disk/chunks/reader.h:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17
18 inline size_t GetBlockLen(size_t index) const {
19 CheckIndex(index);
20
21 if (Version == 0) {
22 if (index + 1 < Offsets.size()) {
23 return Offsets[index + 1] - Offsets[index];
24 }
25
26 return Size - (Offsets.back() - Offsets.front());
27 }
28
29 return Lengths[index];
30 }
31
32 TBlob GetBlob(size_t index) const;
33

Callers 3

TestMethod · 0.80
TestEmptyMethod · 0.80
GetBlockFunction · 0.80

Calls 3

sizeMethod · 0.45
backMethod · 0.45
frontMethod · 0.45

Tested by 2

TestMethod · 0.64
TestEmptyMethod · 0.64