-
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: Force use of callbacks for oneof
pw_protobuf's message structures previously generated each of the members of a oneof group as a separate struct member, allowing multiple of them to be set to serialize semantically-invalid wire messages. This replaces oneof struct member generation with a single callback for the entire oneof group, allowing the user to encode/decode the desired oneof field using the wire stream encoder and decoder. Change-Id: I2e4f79c5f7d2ec99eb036e0f93a77675a29a625c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/236592 Reviewed-by: Armando Montanez <[email protected]> Lint: Lint 🤖 <[email protected]>
- Loading branch information
Showing
12 changed files
with
587 additions
and
76 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.