forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve DecodableList when not in list (project-chip#13607)
* Add support for decoding null valued lists Spec treats empty lists and null valued lists equivalently. However DecodableList expects a container, even if empty, and does not support the case where there is no container (i.e. null valued list). Add support for null valued list (i.e. no container) by handling it as a special case in the Decode function, the DecodableList, and its Iterator. This is done using an "empty" mReader (with container type "not specified") in the "no list" case. * Remove changes to Decode Keep the other changes, and adjust the documentation.
- Loading branch information
1 parent
96d040b
commit 4ac1214
Showing
1 changed file
with
34 additions
and
18 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