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

Method Assign

src/Platform/StringHandle.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#endif
50
51void 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.
63void StringHandle::InternalAssign(const char *_ecv_array s, size_t len) noexcept

Callers 2

Platform.cppFile · 0.45
SaveConfigErrorMethod · 0.45

Calls 1

DeleteFunction · 0.85

Tested by

no test coverage detected