iamandi / nanopb

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

Allow uint8_t* parameter to pb_istream_from_buffer() #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the requested feature:
It would be nice if pb_istream_from_buffer() casts away const internally, so 
that one can give it const uint8_t* parameter.

In what situation would the feature be useful:
When trying to maintain const-correctness in the user application.

Original issue reported on code.google.com by Petteri.Aimonen on 5 Apr 2015 at 6:16