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

Method ToString

library/cpp/yt/memory/ref.cpp:445–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445TString TSharedRefArray::ToString() const
446{
447 if (!Impl_) {
448 return {};
449 }
450
451 TString result;
452 size_t size = 0;
453 for (const auto& part : *this) {
454 size += part.size();
455 }
456 result.ReserveAndResize(size);
457 char* ptr = result.begin();
458 for (const auto& part : *this) {
459 size += part.size();
460 ::memcpy(ptr, part.begin(), part.size());
461 ptr += part.size();
462 }
463 return result;
464}
465
466TSharedRefArray TSharedRefArray::MakeCopy(
467 const TSharedRefArray& array,

Callers 3

OnResponseMethod · 0.45
PrintToFunction · 0.45
OnErrorMethod · 0.45

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected