Extend inline / fixed length bytes array support (issue #244)
Adds support for proto3 and POINTER field types to have fixed length bytes arrays. Also changed the .proto option to a separate fixed_length:true, while also supporting the old FT_INLINE option. Restructured the generator and decoder logic to threat the inline bytes fields more like "just another field type".
Showing
- docs/concepts.rst 2 additions, 2 deletionsdocs/concepts.rst
- docs/reference.rst 4 additions, 4 deletionsdocs/reference.rst
- generator/nanopb_generator.py 34 additions, 30 deletionsgenerator/nanopb_generator.py
- generator/proto/nanopb.proto 4 additions, 1 deletiongenerator/proto/nanopb.proto
- pb.h 21 additions, 37 deletionspb.h
- pb_decode.c 25 additions, 7 deletionspb_decode.c
- pb_encode.c 7 additions, 4 deletionspb_encode.c
Loading
Please register or sign in to comment