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
172
of file
str.h
.
172
{
173
mLength
=
len
;
174
if
(
len
+ 1 <=
SIZE
) {
175
memcpy
(
mInlineData
,
str
,
len
+ 1);
176
mHeapData
.reset();
177
}
else
{
178
mHeapData
=
StringHolderPtr::New
(
str
,
len
);
179
}
180
}
fl::StrN::mLength
size_t mLength
Definition
str.h:109
fl::StrN::mHeapData
StringHolderPtr mHeapData
Definition
str.h:111
fl::StrN::mInlineData
char mInlineData[SIZE]
Definition
str.h:110
fl::StrN
Definition
str.h:107
References
mHeapData
,
mInlineData
, and
mLength
.
fl
StrN
Generated on Mon Jun 16 2025 06:27:50 for FastLED by
1.13.2