Skip to content

tom-code/pbtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utility to encode/decode protobuf data into human readable format (json).

build

Example use:

get help:
pbtool help
pbtool encode --help
pbtool decode --help

Encode using protobuf defintion in test/a.proto type M1. Read input data from test/a.json. Read additional protobuf dependencies from directory test. Output store into file a.bin

pbtool encode test/a.proto .M1 test/a.json  -o a.bin -i test

Encode using protobuf defintion in test/a.proto type M1. Read input data from test/a.json. Read additional protobuf dependencies from directory test. Output store into file a.hex in hexadecimal format

pbtool encode test/a.proto .M1 test/a.json  -o a.hex -i test -f hex

Decode using protobuf defintion in test/a.proto type M1. Read input data from file a.bin. Read additional protobuf dependencies from directory test.

pbtool decode test/a.proto .M1 @a.bin -i test

Decode using protobuf defintion in test/a.proto type M1. Read input data from file a.hex in hexadecimal format. Read additional protobuf dependencies from directory test. Store output json in xx.json.

pbtool decode test/a.proto .M1 @a.hex -i test -f hex -o xx.json

Decode using protobuf defintion in test/a.proto type M1. Use input data from cli argument (CAoSA2FiYxoDCM0C) in base64 format Read additional protobuf dependencies from directory test.

pbtool decode test/a.proto .M1 CAoSA2FiYxoDCM0C  -i test -f base64

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages