ESP-IDF
ot::Dns::Option::GetOptionLength() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/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::Dns::Option::GetOptionLength() const
ot::Dns::Option::GetOptionLength() const method
Returns the option length value.
Syntax
Show:
Summary
Declaration
from
dns_types.hpp:2450
uint16_t
GetOptionLength
(
void
)
const
;
Return value
The option length (size of option data in bytes).
Examples
References
from
examples
Code
Location
Scope
Referrer
uint16_t
GetOptionLength
(
void
)
const
{
return
BigEndian
::
HostSwap16
(
mOptionLength
)
;
}
dns_types.hpp:2450
VerifyOrExit
(
(
GetOptionLength
(
)
==
kShortLength
)
||
(
GetOptionLength
(
)
>=
kLongLength
)
)
;
dns_types.cpp:1228
ot::Dns::LeaseOption
ot::Dns::LeaseOption::IsValid() const
VerifyOrExit
(
GetOptionLength
(
)
>=
kShortLength
,
error
=
kErrorParse
)
;
dns_types.cpp:1256
ot::Dns::LeaseOption
ot::Dns::LeaseOption::ReadFrom()
uint32_t
GetSize
(
void
)
const
{
return
sizeof
(
Option
)
+
GetOptionLength
(
)
;
}
dns_types.hpp:2464
ot::Dns::Option
ot::Dns::Option::GetSize() const
bool
IsShortVariant
(
void
)
const
{
return
(
GetOptionLength
(
)
==
kShortLength
)
;
}
dns_types.hpp:2507
ot::Dns::LeaseOption
ot::Dns::LeaseOption::IsShortVariant() const
Call Tree
from
examples
ot::Dns::Option::GetOptionLength() const
is called by 4 functions and calls 1 function:
ot::Dns::Option::GetSize() const
ot::Dns::LeaseOption::IsShortVariant() const
ot::Dns::LeaseOption::IsValid() const
ot::Dns::LeaseOption::ReadFrom()
All items filtered out
ot::Dns::Option::GetOptionLength() const
ot::BigEndian::HostSwap16()
All items filtered out
Data Use
from
examples
ot::Dns::Option::GetOptionLength() const
reads 1 variable:
ot::Dns::Option::mOptionLength
All items filtered out
ot::Dns::Option::GetOptionLength() 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