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

Method Load

util/ysaveload.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void TSerializer<TBuffer>::Load(IInputStream* rh, TBuffer& buf) {
11 const size_t s = ::LoadSize(rh);
12 buf.Resize(s);
13 ::LoadPodArray(rh, buf.Data(), buf.Size());
14}
15
16[[noreturn]] void NPrivate::ThrowLoadEOFException(size_t typeSize, size_t realSize, TStringBuf structName) {
17 ythrow TLoadEOF() << "can not load " << structName << "(" << typeSize << ", " << realSize << " bytes)";

Callers

nothing calls this directly

Calls 5

LoadSizeFunction · 0.85
LoadPodArrayFunction · 0.85
ResizeMethod · 0.45
DataMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected