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

Method Save

library/cpp/chromium_trace/saveload.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void TSerializer<TEventArgs::TArg>::Save(IOutputStream* out, const TEventArgs::TArg& v) {
139 // TODO: saveload for std::variant (?)
140
141 ::SaveStr(out, v.Name);
142
143 i8 tag = v.Value.index();
144 ::Save(out, tag);
145 std::visit(TSaveVisitor{out}, v.Value);
146}
147
148void TSerializer<TEventArgs::TArg>::Load(IInputStream* in, TEventArgs::TArg& v, TMemoryPool& pool) {
149 ::LoadStr(in, v.Name, pool);

Callers

nothing calls this directly

Calls 10

SaveStrFunction · 0.85
SaveSizeFunction · 0.85
SaveRangeFunction · 0.85
SaveManyFunction · 0.85
SaveFunction · 0.50
visitFunction · 0.50
indexMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected