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

Function SerializeFromStream

library/cpp/binsaver/util_stream_io.h:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <class T>
34inline void SerializeFromStream(IInputStream& stream, T& c) {
35 TYaStreamInput f(stream);
36 {
37 IBinSaver bs(f, true);
38 bs.Add(1, &c);
39 }
40}
41
42template <class T>
43inline void SerializeFromFile(const TString& fileName, T& c) {

Callers 7

SerializeFromFileFunction · 0.85
GetCtrHelperFunction · 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