~bigbes/tarantool

tarantool-protobuf

ref: 117c6ef9c9919d3c49dc1712df9f3b604fdb607b tarantool-protobuf/test/proto/c_nested.proto -rw-r--r-- 514 bytes
117c6ef9 — Eugene Blikh codegen: type-elision for sint64/fixed64/sfixed64 encode (a7l) 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; }