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

Method AsStrBuf

util/generic/yexception.cpp:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133TStringBuf NPrivateException::yexception::AsStrBuf() const {
134 if (Buf_.Left()) {
135 return TStringBuf(Buf_.Data(), Buf_.Filled());
136 }
137
138 return TStringBuf(Buf_.Data(), Buf_.Filled() - 1);
139}
140
141void NPrivateException::yexception::ZeroTerminate() noexcept {
142 char* end = (char*)Buf_.Current();

Callers 8

DoIoSleepFunction · 0.80
DoMainFunction · 0.80
DecodeContentMethod · 0.80
TestMacroOverloadMethod · 0.80
TestMessageCropMethod · 0.80
yexception.hFile · 0.80

Calls 3

LeftMethod · 0.45
DataMethod · 0.45
FilledMethod · 0.45

Tested by 3

TestMacroOverloadMethod · 0.64
TestMessageCropMethod · 0.64