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

Method DoWrite

util/stream/tempbuf.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7} // namespace
8
9void TTempBufOutput::DoWrite(const void* data, size_t len) {
10 if (Y_LIKELY(len <= Left())) {
11 Append(data, len);
12 } else {
13 const size_t filled = Filled();
14
15 TTempBuf buf(Next(filled + len));
16
17 buf.Append(Data(), filled);
18 buf.Append(data, len);
19
20 static_cast<TTempBuf&>(*this) = buf;
21 }
22}

Callers

nothing calls this directly

Calls 4

NextFunction · 0.70
AppendFunction · 0.50
DataClass · 0.50
AppendMethod · 0.45

Tested by

no test coverage detected