Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created August 26, 2017 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salrashid123/75d5b15fd051e4ecf5de8477b377a88b to your computer and use it in GitHub Desktop.
Save salrashid123/75d5b15fd051e4ecf5de8477b377a88b to your computer and use it in GitHub Desktop.
$ xxd frame.bin
00000000: 0a04 6a6f 686e 1203 646f 65 ..john..doe
$ xxd -p frame.bin
0a046a6f686e1203646f65
$ echo `xxd -p frame.bin` | xxd -r -p | protoc --decode_raw
1: "john"
2: "doe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment