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

Method DoUndo

util/stream/buffer.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 inline void DoUndo(size_t len) {
24 Y_ABORT_UNLESS(len <= Data_.Size(), "trying to undo more bytes than actually written");
25 Data_.Resize(Data_.size() - len);
26 }
27
28 inline void DoWrite(const void* buf, size_t len) {
29 Data_.Append((const char*)buf, len);

Callers

nothing calls this directly

Calls 3

SizeMethod · 0.45
ResizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected