FastLED 3.9.15
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 397 of file basic_string.cpp.hpp.

397 {
398 if (!dest) return 0;
399 if (pos >= mLength) return 0;
400 fl::size actualCount = count;
401 if (actualCount > mLength - pos) {
402 actualCount = mLength - pos;
403 }
404 if (actualCount > 0) {
405 fl::memcpy(dest, c_str() + pos, actualCount);
406 }
407 return actualCount;
408}
uint8_t pos
Definition Blur.ino:11
const char * c_str() const FL_NOEXCEPT
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT

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

+ Here is the call graph for this function: