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
226
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
}
pos
uint8_t pos
Definition
Blur.ino:11
fl::basic_string::mLength
fl::size mLength
Definition
basic_string.h:490
fl::basic_string::c_str
const char * c_str() const FL_NOEXCEPT
Definition
basic_string.cpp.hpp:32
fl::memcpy
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
Definition
cstring.cpp.hpp:110
References
fl::basic_string::mLength
.
fl
string
Generated on Tue Jun 16 2026 00:07:07 for FastLED by
1.13.2