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

Method Refresh

library/cpp/yson/detail.h:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119 template <bool AllowFinish>
120 void Refresh() {
121 while (IsEmpty() && !TBlockStream::IsFinished()) {
122 TBlockStream::RefreshBlock();
123 }
124 if (IsEmpty() && TBlockStream::IsFinished() && !AllowFinish) {
125 ythrow TYsonException() << "Premature end of yson stream";
126 }
127 }
128
129 void Refresh() {
130 return Refresh<false>();

Callers

nothing calls this directly

Calls 1

IsEmptyFunction · 0.50

Tested by

no test coverage detected