Updates:
Status: WorkingAsIntended
Owner: xiaof...@google.com
Comment #1 on issue 689 by xiaof...@google.com: Repeated fields do not
serialize the 'size' into the file. Hence deserialize of repeated expects
an unending sequence of repeated fields
https://code.google.com/p/protobuf/issues/detail?id=689
This is by design. Protobuf fields are serialized as <tag, value> pairs.
The parsing routine will check the tag to decide whether a value belongs to
a repeated field and act accordingly. There could be a potentially infinite
number of such <tag, value> pairs in an input stream, but in practice, the
size of a message is usually already known before parsing. For example,
when you send a protobuf message over the wire, you'll first send the size
of the data before serialized bytes of the message.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.