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

Method ZeroTerminate

util/generic/yexception.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void NPrivateException::yexception::ZeroTerminate() noexcept {
142 char* end = (char*)Buf_.Current();
143
144 if (!Buf_.Left()) {
145 --end;
146 }
147
148 *end = 0;
149}
150
151const char* NPrivateException::yexception::what() const noexcept {
152 return Buf_.Data();

Callers

nothing calls this directly

Calls 2

CurrentMethod · 0.45
LeftMethod · 0.45

Tested by

no test coverage detected