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

154 {
155 size_t len = other.size();
156 if (len + 1 <= SIZE) {
158 mHeapData.reset();
159 } else {
160 if (other.mHeapData) {
162 } else {
164 }
165 }
166 mLength = len;
167 }
size_t mLength
Definition str.h:81
const char * c_str() const
Definition str.h:247
size_t size() const
Definition str.h:245
StringHolderPtr mHeapData
Definition str.h:83
char mInlineData[SIZE]
Definition str.h:82
Definition str.h:79

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

+ Here is the call graph for this function: