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 171 of file str.h.

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

References mHeapData, mInlineData, and mLength.