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

Method DoSkip

util/stream/input.cpp:126–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126size_t IInputStream::DoSkip(size_t sz) {
127 if (sz < 128) {
128 return Load(alloca(sz), sz);
129 }
130
131 TTempBuf buf;
132 size_t total = 0;
133
134 while (sz) {
135 const size_t lresult = Read(buf.Data(), Min<size_t>(sz, buf.Size()));
136
137 if (lresult == 0) {
138 return total;
139 }
140
141 total += lresult;
142 sz -= lresult;
143 }
144
145 return total;
146}
147
148TString IInputStream::ReadAll() {
149 TString result;

Callers

nothing calls this directly

Calls 4

LoadFunction · 0.50
ReadFunction · 0.50
DataMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected