Add inline allocation of bytes fields
This commit adds a new FT_INLINE allocation type that forces bytes fields to be inlined into the struct. E.g., pb_byte_t my_bytes[32]. This requires max_size for the bytes field. The FT_INLINE type is represented as a new LTYPE: FT_LTYPE_FIXED_LENGTH_BYTES. This commit also updates the documentation with FT_INLINE and FT_LTYPE_FIXED_LENGTH_BYTES. Added an AUTHORS file in apparent order of appearance in the git log history from $(git log --all).
Showing
- AUTHORS 24 additions, 0 deletionsAUTHORS
- docs/concepts.rst 3 additions, 1 deletiondocs/concepts.rst
- docs/index.rst 2 additions, 2 deletionsdocs/index.rst
- docs/reference.rst 27 additions, 22 deletionsdocs/reference.rst
- generator/nanopb_generator.py 29 additions, 6 deletionsgenerator/nanopb_generator.py
- generator/proto/nanopb.proto 1 addition, 0 deletionsgenerator/proto/nanopb.proto
- pb.h 25 additions, 2 deletionspb.h
- pb_decode.c 8 additions, 1 deletionpb_decode.c
- pb_encode.c 11 additions, 4 deletionspb_encode.c
- tests/inline/SConscript 16 additions, 0 deletionstests/inline/SConscript
- tests/inline/inline.expected 3 additions, 0 deletionstests/inline/inline.expected
- tests/inline/inline.proto 17 additions, 0 deletionstests/inline/inline.proto
- tests/inline/inline_unittests.c 73 additions, 0 deletionstests/inline/inline_unittests.c
Loading
Please register or sign in to comment