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

182 {
183 size_t len = other.size();
184 if (len + 1 <= SIZE) {
186 mHeapData.reset();
187 } else {
188 if (other.mHeapData) {
190 } else {
192 }
193 }
194 mLength = len;
195 }
size_t mLength
Definition str.h:109
const char * c_str() const
Definition str.h:273
size_t size() const
Definition str.h:271
StringHolderPtr mHeapData
Definition str.h:111
char mInlineData[SIZE]
Definition str.h:110

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

+ Here is the call graph for this function: