| 11 | } |
| 12 | |
| 13 | void SharedString::decref() |
| 14 | { |
| 15 | if (ptr) |
| 16 | { |
| 17 | if (--*(size_t*)ptr == 0) |
| 18 | { |
| 19 | delete[] ptr; |
| 20 | ptr = nullptr; |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void SharedString::init(const char* _begin, const char* _end) |
| 26 | { |
nothing calls this directly
no outgoing calls
no test coverage detected