Closed GoogleCodeExporter closed 9 years ago
The protobuf standard encodes int32_t (and others except fixed32_t) as varints.
This means that they only take as much space as the value requires:
Values 0-127: 1 byte
Values 128-16383: 2 bytes
etc.
So you are not generating any unneeded traffic. Only local RAM usage is a bit
higher, but if you have a large uint16_t array, you can encode it using
callbacks.
Original comment by Petteri.Aimonen
on 11 Mar 2014 at 2:26
Original issue reported on code.google.com by
cszawisza
on 11 Mar 2014 at 7:46