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

◆ StringHolder() [3/4]

fl::StringHolder::StringHolder ( const char * str,
size_t length )

Definition at line 123 of file str.cpp.

123 {
124 mData = (char *)malloc(length + 1);
125 if (mData) {
126 mLength = length;
127 memcpy(mData, str, mLength);
128 mData[mLength] = '\0';
129 } else {
130 mLength = 0;
131 }
133}
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: