mirror of
https://github.com/nanopb/nanopb.git
synced 2026-06-06 20:18:31 +00:00
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).
18 lines
361 B
Protocol Buffer
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];
|
|
}
|