| 105 | } |
| 106 | |
| 107 | size_t StringHandle::GetLength() const noexcept |
| 108 | { |
| 109 | if (slotPtr == nullptr) |
| 110 | { |
| 111 | return 0; |
| 112 | } |
| 113 | |
| 114 | ReadLocker locker(Heap::heapLock); |
| 115 | |
| 116 | #if CHECK_HANDLES |
| 117 | Heap::CheckSlotGood(slotPtr); |
| 118 | #endif |
| 119 | |
| 120 | return strlen(slotPtr->storage->data); |
| 121 | } |
| 122 | |
| 123 | // AutoStringHandle members |
| 124 |
no outgoing calls
no test coverage detected