ESP-IDF
ot::Ip6::Prefix::GetBytes() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/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::Ip6::Prefix::GetBytes() const
ot::Ip6::Prefix::GetBytes() const method
Gets the prefix as a pointer to a byte array.
Syntax
Show:
Summary
Declaration
from
ip6_address.hpp:108
const
uint8_t
*
GetBytes
(
void
)
const
;
Return value
A pointer to a byte array containing the Prefix.
Examples
References
from
examples
Code
Location
Scope
Referrer
const
uint8_t
*
GetBytes
(
void
)
const
{
return
mPrefix
.
mFields
.
m8
;
}
ip6_address.hpp:108
return
(
mLength
==
aPrefixLength
)
&&
(
MatchLength
(
GetBytes
(
)
,
aPrefixBytes
,
GetBytesSize
(
)
)
>=
mLength
)
;
ip6_address.cpp:72
ot::Ip6::Prefix
ot::Ip6::Prefix::IsEqual() const
(
MatchLength
(
GetBytes
(
)
,
aSubPrefix
.
GetBytes
(
)
,
aSubPrefix
.
GetBytesSize
(
)
)
>=
aSubPrefix
.
GetLength
(
)
)
;
ip6_address.cpp:78
ot::Ip6::Prefix
ot::Ip6::Prefix::ContainsPrefix() const
(
MatchLength
(
GetBytes
(
)
,
aSubPrefix
.
m8
,
NetworkPrefix
::
kSize
)
>=
NetworkPrefix
::
kLength
)
;
ip6_address.cpp:84
ot::Ip6::Prefix
ot::Ip6::Prefix::ContainsPrefix() const
return
(
mLength
==
aOther
.
mLength
)
&&
(
MatchLength
(
GetBytes
(
)
,
aOther
.
GetBytes
(
)
,
GetBytesSize
(
)
)
>=
GetLength
(
)
)
;
ip6_address.cpp:105
ot::Ip6::Prefix
ot::Ip6::Prefix::operator() const
matchedLength
=
MatchLength
(
GetBytes
(
)
,
aOther
.
GetBytes
(
)
,
SizeForLength
(
minLength
)
)
;
ip6_address.cpp:115
ot::Ip6::Prefix
ot::Ip6::Prefix::operator<() const
isSmaller
=
GetBytes
(
)
[
matchedLength
/
kBitsPerByte
]
<
aOther
.
GetBytes
(
)
[
matchedLength
/
kBitsPerByte
]
;
ip6_address.cpp:123
ot::Ip6::Prefix
ot::Ip6::Prefix::operator<() const
Address
::
CopyBits
(
mFields
.
m8
,
aPrefix
.
GetBytes
(
)
+
NetworkPrefix
::
kSize
,
ip6_address.cpp:307
ot::Ip6::InterfaceIdentifier
ot::Ip6::InterfaceIdentifier::ApplyPrefix()
return
Prefix
::
MatchLength
(
mFields
.
m8
,
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetBytesSize
(
)
)
>=
aPrefix
.
GetLength
(
)
;
ip6_address.cpp:396
ot::Ip6::Address
ot::Ip6::Address::MatchesPrefix() const
void
Address
::
SetPrefix
(
const
Prefix
&
aPrefix
)
{
CopyBits
(
mFields
.
m8
,
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
}
ip6_address.cpp:406
ot::Ip6::Address
ot::Ip6::Address::SetPrefix()
SetMulticastNetworkPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
ip6_address.hpp:853
ot::Ip6::Address
ot::Ip6::Address::SetMulticastNetworkPrefix()
memcpy
(
GetPrefixBytes
(
)
,
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetBytesSize
(
)
)
;
nd6.cpp:131
ot::Ip6::Nd::RouteInfoOption
ot::Ip6::Nd::RouteInfoOption::SetPrefix()
return
FindPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
network_data.hpp:418
ot::NetworkData::NetworkData
ot::NetworkData::NetworkData::FindPrefix() const
PrefixTlv
*
FindPrefix
(
const
Ip6
::
Prefix
&
aPrefix
)
{
return
FindPrefix
(
aPrefix
.
GetBytes
(
)
,
aPrefix
.
GetLength
(
)
)
;
}
network_data.hpp:649
ot::NetworkData::MutableNetworkData
ot::NetworkData::MutableNetworkData::FindPrefix()
Init
(
aDomainId
,
aPrefix
.
GetLength
(
)
,
aPrefix
.
GetBytes
(
)
)
;
network_data_tlvs.hpp:606
ot::NetworkData::PrefixTlv
ot::NetworkData::PrefixTlv::Init()
Call Tree
from
examples
ot::Ip6::Prefix::GetBytes() const
is called by 12 functions:
ot::Ip6::Address::SetMulticastNetworkPrefix()
ot::NetworkData::NetworkData::FindPrefix() const
ot::NetworkData::MutableNetworkData::FindPrefix()
ot::NetworkData::PrefixTlv::Init()
ot::Ip6::Prefix::IsEqual() const
ot::Ip6::Prefix::ContainsPrefix() const
ot::Ip6::Prefix::operator() const
ot::Ip6::Prefix::operator<() const
ot::Ip6::InterfaceIdentifier::ApplyPrefix()
ot::Ip6::Address::MatchesPrefix() const
ot::Ip6::Address::SetPrefix()
ot::Ip6::Nd::RouteInfoOption::SetPrefix()
All items filtered out
ot::Ip6::Prefix::GetBytes() const
All items filtered out
Data Use
from
examples
ot::Ip6::Prefix::GetBytes() const
reads 3 variables:
otIp6Address::
::m8
otIp6Address::mFields
otIp6Prefix::mPrefix
All items filtered out
ot::Ip6::Prefix::GetBytes() const
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