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.

Reply via email to