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
171
of file
str.h
.
171
{
172
mLength
=
len
;
173
if
(
len
+ 1 <=
SIZE
) {
174
memcpy
(
mInlineData
,
str
,
len
+ 1);
175
mHeapData
.reset();
176
}
else
{
177
mHeapData
=
StringHolderPtr::New
(
str
,
len
);
178
}
179
}
fl::StrN::mLength
size_t mLength
Definition
str.h:108
fl::StrN::mHeapData
StringHolderPtr mHeapData
Definition
str.h:110
fl::StrN::mInlineData
char mInlineData[SIZE]
Definition
str.h:109
fl::StrN
Definition
str.h:106
References
mHeapData
,
mInlineData
, and
mLength
.
fl
StrN
Generated on Thu May 29 2025 04:44:59 for FastLED by
1.13.2