On Tue, Apr 7, 2015 at 1:22 AM, sahil goyal <[email protected]> wrote:

> What is the difference between ParseFromArray and ParseFromString? Is
> there any limitation on the data, how much there API's can serialize and
> de-serialize?
>
ParseFromString(value) is the same as ParseFromArray(value.data(),
value.size()). Protobuf uses int32 to store size/length information, so the
maximum a message can be is 2G bytes. The library will start to give
warnings once the size exceeds a much smaller limit though:
https://github.com/google/protobuf/blob/master/src/google/protobuf/io/coded_stream.h#L590


>  --
> 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 http://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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to