Detach from any shared copy and return a writable pointer; null if unset.
| 78 | |
| 79 | // Detach from any shared copy and return a writable pointer; null if unset. |
| 80 | char* MutableData() |
| 81 | { |
| 82 | if (!_ref) |
| 83 | { |
| 84 | return nullptr; |
| 85 | } |
| 86 | MakeMutable(); |
| 87 | return _ref->Data(); |
| 88 | } |
| 89 | __forceinline operator const char*() const { return Data(); } |
| 90 | int GetLength() const { return _ref ? strlen(_ref->Data()) : 0; } |
| 91 | int GetRefCount() const { return _ref->RefCounter(); } |
no test coverage detected