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

◆ StrN() [3/5]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
fl::StrN< SIZE >::StrN ( const char * str)
inline

Definition at line 153 of file str.h.

153 {
155 mLength = len; // Length is without null terminator
156 if (len + 1 <= SIZE) { // Check capacity including null
157 memcpy(mInlineData, str, len + 1); // Copy including null
158 mHeapData.reset();
159 } else {
161 }
162 }
StringHolderPtr mHeapData
Definition str.h:142
char mInlineData[SIZE]
Definition str.h:141
fl::size mLength
Definition str.h:140
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348

References fl::make_shared(), mHeapData, mInlineData, and mLength.

+ Here is the call graph for this function: