You can either declare a bytes field and manipulate the data yourself, or 
convert the data structure to the protobuf definition. You won't be able to 
control the wire format protobuf generates though.

On Wednesday, September 27, 2017 at 12:48:54 PM UTC-7, sothy shan wrote:
>
> Hello,
>
> I am looking for example, how to deal with binary data?
> For example, I have 4 byte binary data, in the first byte, some bits are 
> created as a number and one bit is considered as bool value in the message.
> How to do protobuf? 
>
> Thanks
> Best regards
> Sothy
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to