aakash-sahai / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Clean up the field decoder interface #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The pb_dec_bytes, pb_dec_string and pb_dec_submessage functions are probably 
unnecessary for any library users, and should be hidden from the public 
interface.

The pb_dec_varint, pb_dec_svarint etc. would be easier to use if there were 
small wrapper functions around them. Should probably write the wrappers to 
pb_decode.h as inline/static functions, so they don't take up code space.

Original issue reported on code.google.com by Petteri.Aimonen on 23 Jan 2012 at 4:43

GoogleCodeExporter commented 9 years ago
Actually there might be use for pb_dec_submessage etc. also from user code. 
They should be wrapped similar to the new pb_encode_* functions introduced in 
commit 9fbe9a.

Original comment by Petteri.Aimonen on 16 Jun 2012 at 10:59

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 2941e90e041b.

Original comment by Petteri.Aimonen on 24 Aug 2012 at 5:26

GoogleCodeExporter commented 9 years ago
Fix released in nanopb-0.1.6.

Original comment by Petteri.Aimonen on 3 Sep 2012 at 5:45