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

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( fl::size length)

Definition at line 242 of file str.cpp.

242 {
243 mData = (char *)malloc(length + 1);
244 if (mData) {
245 mLength = length;
246 mData[mLength] = '\0';
247 } else {
248 mLength = 0;
249 }
251}
char * mData
Definition str.h:133
fl::size length() const
Definition str.h:120
fl::size mLength
Definition str.h:134
fl::size mCapacity
Definition str.h:135

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

+ Here is the call graph for this function: