Files
nanopb/tests/inline/inline.proto
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

18 lines
361 B
Protocol Buffer

/* Test nanopb option parsing.
* options.expected lists the patterns that are searched for in the output.
*/
syntax = "proto2";
import "nanopb.proto";
message Message1
{
required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32];
}
message Message2
{
optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
}