FastLED 3.10.10
Loading...
Searching...
No Matches

◆ copy() [1/4]

fl::size fl::basic_string::copy ( char * dest,
fl::size count,
fl::size pos = 0 ) const

Definition at line 435 of file basic_string.cpp.hpp.

435 {
436 if (!dest) return 0;
437 if (pos >= mLength) return 0;
438 fl::size actualCount = count;
439 if (actualCount > mLength - pos) {
440 actualCount = mLength - pos;
441 }
442 if (actualCount > 0) {
443 fl::memcpy(dest, c_str() + pos, actualCount);
444 }
445 return actualCount;
446}
uint8_t pos
Definition Blur.ino:11
const char * c_str() const FL_NO_EXCEPT
FASTLED_FORCE_INLINE void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT
Definition cstring.h:136

References c_str(), fl::FL_NO_EXCEPT, fl::memcpy(), mLength, and pos.

+ Here is the call graph for this function: