File: inline.proto

package info (click to toggle)
nanopb 0.4.9.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,676 kB
  • sloc: ansic: 12,144; python: 2,795; cpp: 190; sh: 163; makefile: 85
file content (17 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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];
}