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

Function GenOne

tools/rorescompiler/main.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace NResource;
11
12void GenOne(const TString& raw, const TString& key, IOutputStream& out) {
13 TString size = raw + "Size";
14 TString name = ToString(CityHash64(key.data(), key.size()));
15 out << "extern \"C\" const char " << raw << "[];\n"
16 << "extern \"C\" const unsigned int " << size << ";\n"
17 << "static const NResource::TRegHelper REG_name" << name
18 << "(\"" << EscapeC(key) << "\", TStringBuf(" << raw << ", " << size << "));\n"
19 << "\n";
20};
21
22int main(int argc, char** argv) {
23 if (argc < 3) {

Callers 1

mainFunction · 0.70

Calls 5

ToStringFunction · 0.50
CityHash64Function · 0.50
EscapeCFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected