Created
October 19, 2023 21:01
-
-
Save thebapi/002aa9fc35dca0908991b6212e300163 to your computer and use it in GitHub Desktop.
Prost message encoding/decoding
This file contains hidden or 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
| Rust | |
| Encoding Prost Message | |
| pl.encode_to_vec() | |
| Decoding Prost message | |
| let new_pl = integration_pb::UplinkEvent | |
| ::decode(&mut Cursor::new(buf)) | |
| .unwrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment