Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Human-readable representations in protobuf-net

Does protobuf-net have any APIs to dump a protobuf into human readable form? I was hoping for something like TextFormat.

like image 354
pepsi Avatar asked Jul 14 '11 21:07

pepsi


2 Answers

At the moment, no. I'm in two minds as to whether it is worthwhile adding; in my mind, this defeats most of the benefits of protocol buffers.

However, since Jon's version is a port of the java version you should find that it is feature compatible, so it should exist there.

like image 125
Marc Gravell Avatar answered Oct 29 '22 11:10

Marc Gravell


there is one for java. the build.toString() method returns a string representation but you'll loose the serialization.

like image 34
ShadowFax Avatar answered Oct 29 '22 10:10

ShadowFax