-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_protobuf: Allow unset oneof callbacks
Instead of failing to decode a message when a oneof callback is unset, just ignore the oneof fields. This prevents users from having to set a callback for every possible field in a message when they are only interested in a few. Change-Id: I62c5158afd5b6b77af8cf69988f63328ec4b9359 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/246692 Commit-Queue: Auto-Submit <[email protected]> Pigweed-Auto-Submit: Alexei Frolov <[email protected]> Lint: Lint 🤖 <[email protected]> Docs-Not-Needed: Alexei Frolov <[email protected]> Reviewed-by: Wyatt Hepler <[email protected]> Presubmit-Verified: CQ Bot Account <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 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