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

Method Reserve

library/cpp/yt/string/string_builder-inl.h:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21inline void TStringBuilderBase::Reserve(size_t size)
22{
23 if (Y_UNLIKELY(End_ - Begin_ < static_cast<ssize_t>(size))) {
24 size_t length = GetLength();
25 auto newLength = std::max(size, MinBufferLength);
26 DoReserve(newLength);
27 Current_ = Begin_ + length;
28 }
29}
30
31inline size_t TStringBuilderBase::GetLength() const
32{

Callers

nothing calls this directly

Calls 2

GetLengthFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected