Closed GoogleCodeExporter closed 8 years ago
The serializer? or the deserializer? A feature of the protobuf wire format
(defined by Google) is that it *does not include termination data* by default;
so it has no way of knowing when the data is complete (for technical reasons
you can't assume any point is the end) - and thus it will keep reading until
the input stream is closed. However, if you use SerializeWithLengthPrefix and
DeserializeWithLengthPrefix, protobuf-net includes some extra metadata to allow
it to consume (repeatedly) a single object from a stream *without* having to
close the stream.
So; try the *WithLengthPrefix methods; does this fix it?
Original comment by marc.gravell
on 3 Dec 2010 at 6:19
You are the man, Marc. It fix the issue.
Maybe the gettingstart document needs to be updated for newbies like me.
Original comment by maxzh...@gmail.com
on 3 Dec 2010 at 2:11
Original comment by marc.gravell
on 4 Dec 2010 at 11:37
Original issue reported on code.google.com by
maxzh...@gmail.com
on 3 Dec 2010 at 3:24