-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for parsing byte arrays as Bytes
The Protobuf crate supports using Bytes instead of Vec<u8> when parsing byte arrays from protobuf structs. This can help reduce copying of data shared by multiple consumers of messages. Protobuf's support for using Bytes has been enabled. UMessageBuilder's functions for building with payload have been adapted to accept any payload that can be converted to Bytes.
- Loading branch information
1 parent
3760db3
commit c57d8d3
Showing
4 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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