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

144 {
145 mLength = len;
146 if (len + 1 <= SIZE) {
147 memcpy(mInlineData, str, len + 1);
148 mHeapData.reset();
149 } else {
151 }
152 }
size_t mLength
Definition str.h:81
StringHolderPtr mHeapData
Definition str.h:83
char mInlineData[SIZE]
Definition str.h:82
Definition str.h:79

References mHeapData, mInlineData, and mLength.