| 49 | #endif |
| 50 | |
| 51 | void StringHandle::Assign(const char *_ecv_array s) noexcept |
| 52 | { |
| 53 | Delete(); |
| 54 | const size_t len = strlen(s); |
| 55 | if (len != 0) |
| 56 | { |
| 57 | WriteLocker locker(Heap::heapLock); // prevent other tasks modifying the heap |
| 58 | InternalAssign(s, len); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Assign the string. Caller must hold a write lock on the heap. |
| 63 | void StringHandle::InternalAssign(const char *_ecv_array s, size_t len) noexcept |
no test coverage detected