FastLED 3.9.15
Loading...
Searching...
No Matches

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( size_t length)

Definition at line 168 of file str.cpp.

168 {
169 mData = (char *)malloc(length + 1);
170 if (mData) {
171 mLength = length;
172 mData[mLength] = '\0';
173 } else {
174 mLength = 0;
175 }
177}
char * mData
Definition str.h:101
size_t length() const
Definition str.h:88
size_t mLength
Definition str.h:102
size_t mCapacity
Definition str.h:103

References length(), mCapacity, mData, and mLength.

+ Here is the call graph for this function: