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