aakash-sahai / nanopb

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

Documentation on manual decoding. #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The API reference on "Decoding fields manually" says:

"For decoding strings and bytes fields, the length has already been decoded. 
You can therefore check the total length in stream->state and read the data 
using pb_read."

As far as I can tell, the length is stored in stream->bytes_left and not 
stream->state.

Original issue reported on code.google.com by stephan....@gmail.com on 6 Dec 2012 at 8:57

GoogleCodeExporter commented 9 years ago
Yes, you are correct.

Original comment by Petteri.Aimonen on 6 Dec 2012 at 9:14

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 871e5be9dd6b.

Original comment by Petteri.Aimonen on 6 Dec 2012 at 9:15

GoogleCodeExporter commented 9 years ago
Fixed in 0.1.8

Original comment by Petteri.Aimonen on 13 Dec 2012 at 7:35