1282 {
1283 if (this == &other) return;
1284
1286 bool otherInline = other.isInline();
1287
1288 if (!thisInline && !otherInline) {
1289
1292 } else if (thisInline && otherInline) {
1293
1295 bool otherFits =
mLength + 1 <= other.mInlineCapacity;
1296 if (thisFits && otherFits) {
1297
1299 for (fl::size i = 0; i <= maxLen; ++i) {
1302 other.inlineBufferPtr()[i] = tmp;
1303 }
1305 } else {
1306
1312 fl::size otherLen = other.mLength;
1313 if (thisFits) {
1316 } else {
1318 }
1320 if (otherFits) {
1321 other.mStorage.reset();
1322 fl::memcpy(other.inlineBufferPtr(), thisData->data(), thisLen + 1);
1323 } else {
1324 other.mStorage = thisData;
1325 }
1326 other.mLength = thisLen;
1327 }
1328 } else if (thisInline) {
1329
1331
1334
1335 other.mStorage.reset();
1336 if (thisLen + 1 <= other.mInlineCapacity) {
1338 } else {
1341 }
1342 other.mLength = thisLen;
1343 } else {
1344
1345 other.swapWith(*this);
1346 }
1347}
char * inlineBufferPtr() FL_NO_EXCEPT
bool isInline() const FL_NO_EXCEPT
fl::variant< NotNullStringHolderPtr, ConstLiteral, ConstView > mStorage
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
enable_if_t< is_same< T, U >::value > swap(T &a, U &b) FL_NO_EXCEPT
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
fl::not_null< StringHolderPtr > NotNullStringHolderPtr
FASTLED_FORCE_INLINE void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT