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

Method DoSkip

util/stream/buffered.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 inline size_t DoSkip(size_t len) {
54 if (MemInput_.Exhausted()) {
55 if (len > BufLen() / 2) {
56 return Slave_->Skip(len);
57 }
58
59 MemInput_.Reset(Buf(), Slave_->Read(Buf(), BufLen()));
60 }
61
62 return MemInput_.Skip(len);
63 }
64
65 inline size_t ReadTo(TString& st, char to) {
66 st.clear();

Callers

nothing calls this directly

Calls 4

ExhaustedMethod · 0.45
SkipMethod · 0.45
ResetMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected