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

Method Load

library/cpp/yt/memory/serialize-inl.h:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template <class T>
22void TSerializer<NYT::TIntrusivePtr<T>>::Load(IInputStream* input, NYT::TIntrusivePtr<T>& ptr)
23{
24 bool hasValue;
25 ::Load(input, hasValue);
26 if (hasValue) {
27 auto tmp = NYT::New<T>();
28 ::Load(input, *tmp);
29 ptr = std::move(tmp);
30 } else {
31 ptr.Reset();
32 }
33}
34
35////////////////////////////////////////////////////////////////////////////////

Callers 1

ReadMethod · 0.45

Calls 3

LoadFunction · 0.50
moveFunction · 0.50
ResetMethod · 0.45

Tested by

no test coverage detected