MCPcopy Create free account
hub / github.com/catboost/catboost / operator&

Function operator&

catboost/libs/helpers/serialization.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52int operator&(NJson::TJsonValue& jsonValue, IBinSaver& binSaver) {
53 TString serializedData;
54 if (binSaver.IsReading()) {
55 binSaver.Add(0, &serializedData);
56 TStringInput in(serializedData);
57 jsonValue.Load(&in);
58 } else {
59 TStringOutput out(serializedData);
60 jsonValue.Save(&out);
61 out.Finish();
62 binSaver.Add(0, &serializedData);
63 }
64
65 return 0;
66}

Callers

nothing calls this directly

Calls 5

IsReadingMethod · 0.80
AddMethod · 0.45
LoadMethod · 0.45
SaveMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected