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

◆ copy() [3/3]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
template<fl::size M>
void fl::StrN< SIZE >::copy ( const StrN< M > & other)
inline

Definition at line 229 of file str.h.

229 {
231 if (len + 1 <= SIZE) {
233 mHeapData.reset();
234 } else {
235 if (other.mHeapData) {
237 } else {
239 }
240 }
241 mLength = len;
242 }
fl::size size() const
Definition str.h:324
const char * c_str() const
Definition str.h:326
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 StrN(), c_str(), fl::make_shared(), mHeapData, mInlineData, mLength, and size().

+ Here is the call graph for this function: