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

◆ copy() [2/3]

template<size_t SIZE = 64>
void fl::StrN< SIZE >::copy ( const char * str,
size_t len )
inline

Definition at line 172 of file str.h.

172 {
173 mLength = len;
174 if (len + 1 <= SIZE) {
175 memcpy(mInlineData, str, len + 1);
176 mHeapData.reset();
177 } else {
179 }
180 }
size_t mLength
Definition str.h:109
StringHolderPtr mHeapData
Definition str.h:111
char mInlineData[SIZE]
Definition str.h:110

References mHeapData, mInlineData, and mLength.