Add inline allocation of bytes fields
authorTom Roeder <tmroeder@google.com>
Tue, 2 Aug 2016 21:57:37 +0000 (14:57 -0700)
committerTom Roeder <tmroeder@google.com>
Thu, 4 Aug 2016 23:01:43 +0000 (19:01 -0400)
commit62afd54964528c1fbd5ab802134f7e9ad912d904
treeb96eaefeaeaacd123e8d7e2f033dda3ba1698681
parent0198210f2cc349e7bc5199e8db7f4afc8208d843
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).
13 files changed:
AUTHORS [new file with mode: 0644]
docs/concepts.rst
docs/index.rst
docs/reference.rst
generator/nanopb_generator.py
generator/proto/nanopb.proto
pb.h
pb_decode.c
pb_encode.c
tests/inline/SConscript [new file with mode: 0644]
tests/inline/inline.expected [new file with mode: 0644]
tests/inline/inline.proto [new file with mode: 0644]
tests/inline/inline_unittests.c [new file with mode: 0644]