Request for review - std.serialization (orange)

Matt Soucy msoucy at csh.rit.edu
Mon Apr 1 11:41:57 PDT 2013


On 04/01/2013 02:37 PM, Kagamin wrote:
> AFAIK, it's opposite: an array serialized in chunks, and they are
> concatenated on deserialization. Useful if you don't know how much
> elements you're sending, so you send them in finite chunks as the data
> becomes available. Client can also close connection, so you don't have
> to see the end of the sequence.

https://developers.google.com/protocol-buffers/docs/encoding#optional

The "packed repeated fields" section explains it and breaks it down with 
an example. If the client can close like that, you probably don't want 
to use packed.
-Soucy


More information about the Digitalmars-d mailing list