forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tlvs] add
ReadValueAs()
& WriteValueAs()
to simplify `MeshCop::T…
…lv` (openthread#9661) This commit introduces template methods `ReadValueAs<>()` and `WriteValueAs<>()` in `Tlv` class for handling simple TLV types (single value and uint value). These methods are employed to simplify the handling of `MeshCoP::Tlv` in `Dataset`. Specifically, the following TLVs are simplified: - `PanIdTlv` - `ExtendedPanIdTlv` - `PskcTlv` - `NetworkKeyTlv` - `MeshLocalPrefixTlv` - `ActiveTimestampTlv` - `PendingTimestampTlv` - `DelayTimerTlv` - `NetworkKeySequenceTlv` - `JoinerUdpPortTlv` These enhance the code by reducing repeated boilerplate code for the these simple TLVs.
- Loading branch information
Showing
12 changed files
with
254 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.