protocol buffers - Using Python, how do I get a binary serialization of my Google protobuf message? -


I see the function SerializeAsString, but as this suggests, it gives me a string version of binary data Is there a way to serialize and parse the binary array of protobf data using Python?

We have a C ++ application which stores the protob message as a binary data in a file. We want to use Python to read and write files.

Python wire can hold binary data, hence SerializeAsString binary data gives.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -