Commit Graph
2 Commits
Author SHA1 Message Date
Petteri Aimonen e31fa8eb03 Add pb_decode_ex(), pb_encode_ex() functions.
This should simplify specifying combinations, so that we don't
need every variant of pb_decode_noinit_delimited() etc.

Also disables zero-terminated decoding in pb_decode (issue #278).
2019-01-25 20:37:15 +02:00
Tom Roeder 62afd54964 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).
2016-08-04 19:01:43 -04:00