~bigbes/tarantool

tarantool-protobuf

ref: 6471b5d160a4b8b92995844f37b9909b2d9cfcf6 tarantool-protobuf/test/proto/c_nested.proto -rw-r--r-- 514 bytes
6471b5d1 — Eugene Blikh c_runtime: repeated string + repeated message acceptance at 1KB/10KB/100KB (ra6 3f) 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
syntax = "proto3";

package c_nested;

// 5-level chain of singular sub-messages. Used by the bd-hwe (ra6 3d)
// C-runtime tests to verify recursion across non-trivial depth. Each
// level carries an int32 so the encoded body at each level is
// non-empty (catches off-by-one bugs in the length-prefix path).
message L1 { L2 next = 1; int32 v = 2; }
message L2 { L3 next = 1; int32 v = 2; }
message L3 { L4 next = 1; int32 v = 2; }
message L4 { L5 next = 1; int32 v = 2; }
message L5 {              int32 v = 2; }