| 720 | /** Like realloc but throws/terminates on failure. */ |
| 721 | template <typename T> |
| 722 | RETURNS_NONNULL |
| 723 | inline T* pure_slice::reallocBytes(T* bytes, size_t newSz) { |
| 724 | T* newBytes = (T*)::realloc(bytes, newSz); |
| 725 | if (_usuallyFalse(!newBytes)) failBadAlloc(); |
| 726 | return newBytes; |
| 727 | } |
| 728 | |
| 729 | inline slice pure_slice::copy() const { |
| 730 | if (buf == nullptr) |
nothing calls this directly
no outgoing calls
no test coverage detected