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

Function ConstructFromString

util/memory/blob.cpp:394–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393template <class TCounter, class S>
394TBlob ConstructFromString(S&& s) {
395 using TBase = TStringBlobBase<TCounter>;
396 auto base = MakeHolder<TBase>(std::forward<S>(s));
397
398 TBlob ret(base->String().data(), base->String().size(), base.Get());
399 Y_UNUSED(base.Release());
400
401 return ret;
402}
403
404TBlob TBlob::FromStringSingleThreaded(const TString& s) {
405 return ConstructFromString<TSimpleCounter>(s);

Callers

nothing calls this directly

Calls 6

Y_UNUSEDFunction · 0.85
dataMethod · 0.45
StringMethod · 0.45
sizeMethod · 0.45
GetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected