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 <[email protected]> wrote:
> 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 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.

-- 
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