ESP-IDF
ot::Tlv::GetSize() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Tlv::GetSize() const
ot::Tlv::GetSize() const method
Returns the TLV's total size (number of bytes) including Type, Length, and Value fields. Correctly returns the TLV size independent of whether the TLV is an Extended TLV or not.
Syntax
Show:
Summary
Declaration
Definition
from
tlvs.hpp:111
uint32_t
GetSize
(
void
)
const
;
Implemented in
tlvs.cpp:42
Return value
The total size include Type, Length, and Value fields.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint32_t
Tlv
::
GetSize
(
void
)
const
tlvs.cpp:42
uint32_t
GetSize
(
void
)
const
;
tlvs.hpp:111
VerifyOrExit
(
memcmp
(
tlv
,
otherTlv
,
tlv
->
GetSize
(
)
)
==
0
)
;
dataset.cpp:575
ot::MeshCoP::Dataset
ot::MeshCoP::Dataset::IsSubsetOf() const
static_cast
<
uint8_t
>
(
discoveryRequest
.
GetSize
(
)
+
(
(
mAdvDataLength
!=
0
)
?
joinerAdvertisement
.
GetSize
(
)
:
0
)
)
)
;
discover_scanner.cpp:119
ot::Mle::DiscoverScanner::Discover()
aMessage
.
SetOffset
(
static_cast
<
uint16_t
>
(
offset
+
childTlv
.
GetSize
(
)
)
)
;
mesh_diag.cpp:326
ot::Utils::MeshDiag::ProcessChildTableAnswer()
aMessage
.
SetOffset
(
static_cast
<
uint16_t
>
(
offset
+
neighborTlv
.
GetSize
(
)
)
)
;
mesh_diag.cpp:367
ot::Utils::MeshDiag::ProcessRouterNeighborTableAnswer()
VerifyOrExit
(
offset
+
tlv
.
GetSize
(
)
<=
aMessage
.
GetLength
(
)
,
error
=
kErrorParse
)
;
network_diagnostic.cpp:1043
ot::NetworkDiagnostic::Client
ot::NetworkDiagnostic::Client::GetNextDiagTlv()
uint16_t
bytesToRead
=
static_cast
<
uint16_t
>
(
Min
(
tlv
.
GetSize
(
)
,
static_cast
<
uint32_t
>
(
sizeof
(
routeTlv
)
)
)
)
;
network_diagnostic.cpp:1083
ot::NetworkDiagnostic::Client
ot::NetworkDiagnostic::Client::GetNextDiagTlv()
offset
+=
tlv
.
GetSize
(
)
;
network_diagnostic.cpp:1245
ot::NetworkDiagnostic::Client
ot::NetworkDiagnostic::Client::GetNextDiagTlv()
Error
Tlv
::
AppendTo
(
Message
&
aMessage
)
const
{
return
aMessage
.
AppendBytes
(
this
,
static_cast
<
uint16_t
>
(
GetSize
(
)
)
)
;
}
tlvs.cpp:57
ot::Tlv
ot::Tlv::AppendTo() const
Tlv
*
GetNext
(
void
)
{
return
reinterpret_cast
<
Tlv
*
>
(
reinterpret_cast
<
uint8_t
*
>
(
this
)
+
GetSize
(
)
)
;
}
tlvs.hpp:138
ot::Tlv
ot::Tlv::GetNext()
return
reinterpret_cast
<
const
Tlv
*
>
(
reinterpret_cast
<
const
uint8_t
*
>
(
this
)
+
GetSize
(
)
)
;
tlvs.hpp:149
ot::Tlv
ot::Tlv::GetNext() const
Call Tree
from
examples
ot::Tlv::GetSize() const
is called by 5 functions and calls 2 functions:
ot::Tlv::AppendTo() const
ot::Tlv::GetNext()
ot::Tlv::GetNext() const
ot::NetworkDiagnostic::Client::GetNextDiagTlv()
ot::MeshCoP::Dataset::IsSubsetOf() const
All items filtered out
ot::Tlv::GetSize() const
ot::Tlv::IsExtended() const
ot::Tlv::GetLength() const
All items filtered out
Data Use
from
examples
ot::Tlv::GetSize() const
writes 3 variables:
All items filtered out
ot::Tlv::GetSize() const
ot::Mle::DiscoverScanner::Discover()
ot::Utils::MeshDiag::ProcessChildTableAnswer()
ot::Utils::MeshDiag::ProcessRouterNeighborTableAnswer()
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