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

Function SerializeToArcadiaStream

library/cpp/binsaver/util_stream_io.h:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template <class T>
74inline void SerializeToArcadiaStream(IOutputStream& stream, T& c) {
75 TYaStreamOutput f(stream);
76 {
77 IBinSaver bs(f, false);
78 bs.Add(1, &c);
79 }
80}
81
82template <class T>
83inline void SerializeToFile(const TString& fileName, T& c) {

Callers 6

SerializeToFileFunction · 0.85
Y_UNIT_TESTMethod · 0.85
TestSaveAndLoadFunction · 0.85
TestSaveAndLoadFunction · 0.85
TestSerializationCaseFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by 3

TestSaveAndLoadFunction · 0.68
TestSaveAndLoadFunction · 0.68
TestSerializationCaseFunction · 0.68