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

◆ copy()

bool fl::StringHolder::copy ( const char * str,
fl::size len )
inline

Definition at line 122 of file str.h.

122 {
123 if ((len + 1) > mCapacity) {
124 return false;
125 }
126 memcpy(mData, str, len);
127 mData[len] = '\0';
128 mLength = len;
129 return true;
130 }
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.