FastLED 3.10.6
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 421 of file basic_string.cpp.hpp.

421 {
422 if (!dest) return 0;
423 if (pos >= mLength) return 0;
424 fl::size actualCount = count;
425 if (actualCount > mLength - pos) {
426 actualCount = mLength - pos;
427 }
428 if (actualCount > 0) {
429 fl::memcpy(dest, c_str() + pos, actualCount);
430 }
431 return actualCount;
432}
uint8_t pos
Definition Blur.ino:11
const char * c_str() const FL_NO_EXCEPT
void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT

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

+ Here is the call graph for this function: