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

Method Append

util/memory/tempbuf.cpp:263–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void TTempBuf::Append(const void* data, size_t len) {
264 if (len > Left()) {
265 ythrow yexception() << "temp buf exhausted(" << Left() << ", " << len << ")";
266 }
267
268 memcpy(Current(), data, len);
269 Proceed(len);
270}
271
272bool TTempBuf::IsNull() const noexcept {
273 return !Impl_;

Callers 8

TestSaveLoadMethod · 0.45
TestAppendMethod · 0.45
DoWriteMethod · 0.45
DoWriteCMethod · 0.45
Y_NO_INLINE TestFunction · 0.45
DoWriteMethod · 0.45
FillMethod · 0.45
ClearMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestSaveLoadMethod · 0.36
TestAppendMethod · 0.36