FastLED
3.9.15
Loading...
Searching...
No Matches
◆
copy()
[2/3]
template<size_t SIZE = 64>
void
fl::StrN
< SIZE >::copy
(
const char *
str
,
size_t
len
)
inline
Definition at line
144
of file
str.h
.
144
{
145
mLength
=
len
;
146
if
(
len
+ 1 <=
SIZE
) {
147
memcpy
(
mInlineData
,
str
,
len
+ 1);
148
mHeapData
.reset();
149
}
else
{
150
mHeapData
=
StringHolderPtr::New
(
str
,
len
);
151
}
152
}
fl::StrN::mLength
size_t mLength
Definition
str.h:81
fl::StrN::mHeapData
StringHolderPtr mHeapData
Definition
str.h:83
fl::StrN::mInlineData
char mInlineData[SIZE]
Definition
str.h:82
fl::StrN
Definition
str.h:79
References
mHeapData
,
mInlineData
, and
mLength
.
fl
StrN
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2