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

Method WriteFooter

library/cpp/on_disk/chunks/writer.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void TChunkedDataWriter::WriteFooter() {
30 Lengths.push_back(Offset - Offsets.back());
31 WriteAux(this, Lengths);
32 WriteAux(this, Offsets);
33 WriteBinary<ui64>(Offsets.size());
34 WriteBinary<ui64>(Version);
35 WriteBinary<ui64>(0);
36}
37
38size_t TChunkedDataWriter::GetCurrentBlockOffset() const {
39 Y_ASSERT(!Offsets.empty());

Callers 5

TestStringsMethod · 0.45
TestNamedChunkedDataMethod · 0.45
TestMethod · 0.45
TestEmptyMethod · 0.45
SaveToStreamMethod · 0.45

Calls 4

WriteAuxFunction · 0.85
push_backMethod · 0.45
backMethod · 0.45
sizeMethod · 0.45

Tested by 4

TestStringsMethod · 0.36
TestNamedChunkedDataMethod · 0.36
TestMethod · 0.36
TestEmptyMethod · 0.36