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

◆ StringHolder() [1/4]

fl::StringHolder::StringHolder ( const char * str)

Definition at line 161 of file str.cpp.

161 {
162 mLength = strlen(str); // Don't include null terminator in length
163 mCapacity = mLength + 1; // Capacity includes null terminator
164 mData = new char[mCapacity];
165 memcpy(mData, str, mLength);
166 mData[mLength] = '\0';
167}
char * mData
Definition str.h:101
size_t mLength
Definition str.h:102
size_t mCapacity
Definition str.h:103

References mCapacity, mData, and mLength.

Referenced by StringHolder(), and operator=().

+ Here is the caller graph for this function: