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

Method Write

tools/rescompressor/main.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 void Write(TStringBuf filename, const TString& data, bool raw) {
18 TString constname(Basename(filename));
19 if (constname.rfind('.') != TStringBuf::npos) {
20 constname = constname.substr(0, constname.rfind('.'));
21 }
22 WriteHeader(constname);
23 if (raw) {
24 WriteRaw(constname, data);
25 } else {
26 WriteIncBin(constname, filename, data);
27 }
28 WriteFooter(constname);
29 WriteSymbolSize(constname);
30 }
31
32private:
33 void WriteHeader(const TStringBuf& constname) {

Callers 4

DoFinishMethod · 0.45
DoWriteMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 5

BasenameFunction · 0.50
WriteHeaderFunction · 0.50
WriteRawFunction · 0.50
rfindMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected