-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify TLV <-> JSON parsing (#32342)
* Simplify TLV <-> JSON parsing - Remove error-prone/repeated `strtol` usage, replace with std::from_chars - Remove needless validation logic done de-facto by other parts Fixes #32341 Testing done: - Added test cases for edges of octet strings. - All existing test cases pass otherwise. * Restyled by clang-format * Fix build where CHIP_ERROR doesn't format as string * Fix CI again * Simplify further * Restyled by clang-format * Fix lint --------- Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
1c2f889
commit d8edd82
Showing
4 changed files
with
93 additions
and
95 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