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

Method DoNext

util/stream/str.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7TStringInput::~TStringInput() = default;
8
9size_t TStringInput::DoNext(const void** ptr, size_t len) {
10 len = Min(len, S_->size() - Pos_);
11 *ptr = S_->data() + Pos_;
12 Pos_ += len;
13 return len;
14}
15
16void TStringInput::DoUndo(size_t len) {
17 Y_ABORT_UNLESS(len <= Pos_);

Callers

nothing calls this directly

Calls 8

FastClp2Function · 0.85
ResizeUninitializedFunction · 0.85
MinFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45
capacityMethod · 0.45
reserveMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected