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

◆ StringHolder() [1/4]

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

Definition at line 235 of file str.cpp.

235 {
236 mLength = strlen(str); // Don't include null terminator in length
237 mCapacity = mLength + 1; // Capacity includes null terminator
238 mData = new char[mCapacity];
239 memcpy(mData, str, mLength);
240 mData[mLength] = '\0';
241}
char * mData
Definition str.h:133
fl::size mLength
Definition str.h:134
fl::size mCapacity
Definition str.h:135

References mCapacity, mData, and mLength.

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

+ Here is the caller graph for this function: