FastLED 3.9.15
Loading...
Searching...
No Matches

◆ copy()

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

Definition at line 127 of file string_view.h.

127 {
128 if (!dest || pos >= mSize) {
129 return 0;
130 }
131 fl::size actual_count = count;
132 if (actual_count > mSize - pos) {
133 actual_count = mSize - pos;
134 }
135 if (actual_count > 0) {
136 fl::memcpy(dest, mData + pos, actual_count);
137 }
138 return actual_count;
139 }
uint8_t pos
Definition Blur.ino:11
const char * mData
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT

References FL_NOEXCEPT, mData, fl::memcpy(), mSize, and pos.

+ Here is the call graph for this function: