ESP-IDF
OT_ARRAY_LENGTH
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
OT_ARRAY_LENGTH
OT_ARRAY_LENGTH macro
Calculates the number of elements in an array.
Syntax
Show:
Summary
Declaration
from
code_utils.hpp:50
#define
OT_ARRAY_LENGTH
(
aArray
)
(
sizeof
(
aArray
)
/
sizeof
(
aArray
[
0
]
)
)
Arguments
Argument
Description
aArray
Name of the array variable.
Return value
Number of elements in the array.
Examples
References
from
examples
Code
Location
#define
OT_ARRAY_LENGTH
(
aArray
)
(
sizeof
(
aArray
)
/
sizeof
(
aArray
[
0
]
)
)
code_utils.hpp:50
static_assert
(
OT_ARRAY_LENGTH
(
mSupportedProps
)
<=
sizeof
(
mChangedSet
)
*
kBitsPerByte
,
changed_props_set.cpp:100
return
OT_ARRAY_LENGTH
(
mSupportedProps
)
;
changed_props_set.cpp:103
for
(
index
=
0
;
index
<
OT_ARRAY_LENGTH
(
kPowerSupplyStrings
)
;
index
++
)
cli.cpp:3674
VerifyOrExit
(
index
<
OT_ARRAY_LENGTH
(
kPowerSupplyStrings
)
,
error
=
OT_ERROR_INVALID_ARGS
)
;
cli.cpp:3683
for
(
uint8_t
id
=
0
;
id
<
static_cast
<
uint8_t
>
(
OT_ARRAY_LENGTH
(
aRouterInfo
->
mLinkQualities
)
)
;
id
++
)
cli.cpp:5240
for
(
size_t
index
=
0
;
index
<
OT_ARRAY_LENGTH
(
kServiceModeStrings
)
;
index
++
)
cli_dns.cpp:505
IgnoreError
(
otCliSetUserCommands
(
sExtensionCommands
,
OT_ARRAY_LENGTH
(
sExtensionCommands
)
,
NULL
)
)
;
cli_extension_example.c:56
static_assert
(
AreHandlerEntriesSorted
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
)
,
ncp_base_dispatcher.cpp:394
return
FindPropertyHandler
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
,
aKey
)
;
ncp_base_dispatcher.cpp:397
static_assert
(
AreHandlerEntriesSorted
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
)
,
ncp_base_dispatcher.cpp:674
return
FindPropertyHandler
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
,
aKey
)
;
ncp_base_dispatcher.cpp:677
static_assert
(
AreHandlerEntriesSorted
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
)
,
ncp_base_dispatcher.cpp:730
return
FindPropertyHandler
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
,
aKey
)
;
ncp_base_dispatcher.cpp:733
static_assert
(
AreHandlerEntriesSorted
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
)
,
ncp_base_dispatcher.cpp:783
return
FindPropertyHandler
(
sHandlerEntries
,
OT_ARRAY_LENGTH
(
sHandlerEntries
)
,
aKey
)
;
ncp_base_dispatcher.cpp:786
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out