Updates:
Status: WorkingAsIntended
Comment #1 on issue 367 by [email protected]:
MessageLite::ParseFromCodedStream: Should check ConsumedEntireMessage()
http://code.google.com/p/protobuf/issues/detail?id=367
This works as intended. The creator of the CodedInputStream has the
responsibility to decide whether the message has consumed to their
satisfactory. In MergePartailFromCodedStream(), this is useful to parse
groups, where the input stream is usually not consumed entirely.
The difference between MergeFrom* and ParseFrom* is whether to Clear() the
message first by convention. We should keep this consistent.
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.