MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetLength

Method GetLength

src/Platform/StringHandle.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107size_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

Callers 5

decreaseFunction · 0.45
THROWSFunction · 0.45
WriteEvaluationResultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected