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

◆ StringHolder() [3/4]

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

Definition at line 253 of file str.cpp.

253 {
254 mData = (char *)malloc(length + 1);
255 if (mData) {
256 mLength = length;
257 memcpy(mData, str, mLength);
258 mData[mLength] = '\0';
259 } else {
260 mLength = 0;
261 }
263}
char * mData
Definition str.h:133
fl::size length() const
Definition str.h:120
fl::size mLength
Definition str.h:134
fl::size mCapacity
Definition str.h:135

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

+ Here is the call graph for this function: