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

Method LoadOrFail

util/stream/input.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void IInputStream::LoadOrFail(void* buf, size_t len) {
75 const size_t realLen = Load(buf, len);
76 if (Y_UNLIKELY(realLen != len)) {
77 ythrow yexception() << "Failed to read required number of bytes from stream! Expected: " << len << ", gained: " << realLen << "!";
78 }
79}
80
81size_t IInputStream::ReadLine(TString& st) {
82 const size_t ret = ReadTo(st, '\n');

Callers 14

DoUnboundedNextMethod · 0.80
ProcessHeadersMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
TMersenne64Method · 0.80
ExtraDataMethod · 0.80
Y_UNIT_TESTFunction · 0.80
TArgsMethod · 0.80

Calls 1

LoadFunction · 0.50

Tested by

no test coverage detected