| 522 | |
| 523 | void String::setOnHeap() noexcept { *reinterpret_cast<unsigned char*>(&buf[last]) = 128; } |
| 524 | void String::setLast(size_type in) noexcept { buf[last] = char(in); } |
| 525 | void String::setSize(size_type sz) noexcept { |
| 526 | if (isOnStack()) { buf[sz] = '\0'; setLast(last - sz); } |
| 527 | else { data.ptr[sz] = '\0'; data.size = sz; } |
no outgoing calls
no test coverage detected