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

◆ copy() [3/3]

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

Definition at line 181 of file str.h.

181 {
182 size_t len = other.size();
183 if (len + 1 <= SIZE) {
185 mHeapData.reset();
186 } else {
187 if (other.mHeapData) {
189 } else {
191 }
192 }
193 mLength = len;
194 }
size_t mLength
Definition str.h:108
const char * c_str() const
Definition str.h:272
size_t size() const
Definition str.h:270
StringHolderPtr mHeapData
Definition str.h:110
char mInlineData[SIZE]
Definition str.h:109

References StrN(), c_str(), mHeapData, mInlineData, mLength, and size().

+ Here is the call graph for this function: