The protobuf library does not provide any particular code for converting
bytes to hex, but it's pretty easy to do yourself.  You should be able to
find example code on the internet (it's not a protobuf-specific problem).

On Tue, Mar 30, 2010 at 3:48 PM, Rob <r...@rmdashr.com> wrote:

> Hi,
>
> I searched and I did not find an obvious way to do this.  I have
> binary data in my protobufs and I want to print them out as hex if
> possible (using ShortDebugString() or equivalent) .
>
> data: "\377\201\255\r\026\000\000\200>\360"
>
> is not very useful to me...  any quick way to print fields as hex?
>
> 'data' is defined as:
> bytes data = 1;
>
> Thanks a lot!
>
> -Rob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to