Re: [protobuf] String max length is 255. Correct?

2016-12-14 Thread David Mullineux
You are correct of course. Thanks. The example on the encoding page is for only 1 byte. Hence my initial confusion. Thanks for the speedy response -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop

Re: [protobuf] String max length is 255. Correct?

2016-12-14 Thread Ilia Mirkin
The length is stored as a varint; you should be able to store strings of any length, up to 64-bit. On Wed, Dec 14, 2016 at 8:43 AM, David Mullineux wrote: > The encoding suggests that strings are encoded with a 1 byte length prefix. > This means my strings cannot be larger

[protobuf] String max length is 255. Correct?

2016-12-14 Thread David Mullineux
The encoding suggests that strings are encoded with a 1 byte length prefix. This means my strings cannot be larger than 255 in size. How can I store longer strings please? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe