FastLED
3.9.15
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
w
x
y
z
Functions
_
a
b
c
d
f
g
h
i
l
m
n
p
s
t
u
x
Variables
Typedefs
Enumerations
Enumerator
c
d
h
k
l
m
n
p
r
s
w
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
e
f
i
m
n
p
s
t
v
y
Enumerations
Enumerator
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
y
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
l
n
p
q
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
◆
StrN()
[3/5]
template<size_t SIZE = 64>
fl::StrN
< SIZE >::StrN
(
const char *
str
)
inline
Definition at line
91
of file
str.h
.
91
{
92
size_t
len
=
strlen
(
str
);
93
mLength
=
len
;
// Length is without null terminator
94
if
(
len
+ 1 <=
SIZE
) {
// Check capacity including null
95
memcpy
(
mInlineData
,
str
,
len
+ 1);
// Copy including null
96
mHeapData
.reset();
97
}
else
{
98
mHeapData
=
StringHolderPtr::New
(
str
);
99
}
100
}
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