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

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( size_t length)

Definition at line 111 of file str.cpp.

111 {
112 mData = (char *)malloc(length + 1);
113 if (mData) {
114 mLength = length;
115 mData[mLength] = '\0';
116 } else {
117 mLength = 0;
118 }
120}
char * mData
Definition str.h:74
size_t length() const
Definition str.h:60
size_t mLength
Definition str.h:75
size_t mCapacity
Definition str.h:76

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

+ Here is the call graph for this function: