FastLED 3.10.6
Loading...
Searching...
No Matches

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( size length)

Definition at line 37 of file string_holder.cpp.hpp.

38 : mData((char*)fl::malloc(length + 1))
40 , mCapacity(length + 1) {
41 if (mData == nullptr) {
42 mLength = 0;
43 mCapacity = 0;
44 return;
45 }
46 mData[mLength] = '\0';
47}
size length() const FL_NO_EXCEPT
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References length(), fl::malloc(), mCapacity, mData, and mLength.

+ Here is the call graph for this function: