On Tuesday, July 31, 2018 at 6:10:27 AM UTC-7, sanjana gupta wrote:
>
> Hello Marc,
>
> I wanted to let you know that I tried using *fixed32 and fixed64* 
> protobuf types and it has helped me save quite some bytes on the encoded 
> data size. Allow me to show the protobuf message I created which is capable 
> for storing one or multiple v4/v6 IPs :
>
>
All you should need is:
  bytes ip = 1;  // length is 4 for IPv4, 16 for IPv6.

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to