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

Function EmitHexArray

tools/rescompiler/main.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static inline void EmitHexArray(const TString& data, const TString& varName, IOutputStream& out) {
60 const TString c = Compress(data);
61 out << "static const unsigned char " << varName << "[] = {\n";
62 EmitHex(out, c);
63 out << "};\n";
64}
65
66static inline void GenOne(const TString& data, const TString& key, IOutputStream& out, bool isFile, bool useSections) {
67 const TString name = "name" + ToString(CityHash64(key.data(), key.size()));

Callers 1

GenOneFunction · 0.85

Calls 2

EmitHexFunction · 0.85
CompressFunction · 0.50

Tested by

no test coverage detected