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

◆ StringHolder() [1/4]

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

Definition at line 104 of file str.cpp.

104 {
105 mLength = strlen(str); // Don't include null terminator in length
106 mCapacity = mLength + 1; // Capacity includes null terminator
107 mData = new char[mCapacity];
108 memcpy(mData, str, mLength);
109 mData[mLength] = '\0';
110}
char * mData
Definition str.h:74
size_t mLength
Definition str.h:75
size_t mCapacity
Definition str.h:76

References mCapacity, mData, and mLength.

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

+ Here is the caller graph for this function: