Request for review - std.serialization (orange)
Jesse Phillips
Jessekphillips+D at gmail.com
Mon Apr 1 13:38:40 PDT 2013
On Monday, 1 April 2013 at 17:24:05 UTC, Matt Soucy wrote:
> From what I got from the examples, Repeated fields are done
> roughly as following:
> auto msg = fields.map!(a=>a.serialize())().reduce!(a,b=>a~b)();
> return ((id<<3)|2) ~ msg.length.toVarint() ~ msg;
> Where msg is a ubyte[].
> -Matt Soucy
I think that would fall under some form of compression, namely
compressing the ID :P
BTW, I love how easy that is to read.
More information about the Digitalmars-d
mailing list