Loading src/app/prototest/capnp_c_bench.capnp 0 → 100644 +17 −0 Original line number Diff line number Diff line @0xad5b236043de2389; struct Benchmark { # data @0 :List(Float64); # nesting @1 :Nesting; sensor @0 :Text; time @1 :Int64; # struct Nesting { # foo @0 :Foo; # # struct Foo { # hurr @0 :Text; # qwop @1 :Int64; # } # } } src/app/prototest/main.cc +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ kout << "}" << endl; //struct Benchmark_Nesting_Foo benchmark_nesting_foo; benchmark.time = ts + 1; capn_text sensor_text; sensor_text.len = 3; sensor_text.str = "gps"; sensor_text.seg = NULL; benchmark.sensor = sensor_text; //benchmark.nesting = new_Benchmark_Nesting(cs); //benchmark_nesting.foo = new_Benchmark_Nesting_Foo(cs); Loading Loading
src/app/prototest/capnp_c_bench.capnp 0 → 100644 +17 −0 Original line number Diff line number Diff line @0xad5b236043de2389; struct Benchmark { # data @0 :List(Float64); # nesting @1 :Nesting; sensor @0 :Text; time @1 :Int64; # struct Nesting { # foo @0 :Foo; # # struct Foo { # hurr @0 :Text; # qwop @1 :Int64; # } # } }
src/app/prototest/main.cc +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ kout << "}" << endl; //struct Benchmark_Nesting_Foo benchmark_nesting_foo; benchmark.time = ts + 1; capn_text sensor_text; sensor_text.len = 3; sensor_text.str = "gps"; sensor_text.seg = NULL; benchmark.sensor = sensor_text; //benchmark.nesting = new_Benchmark_Nesting(cs); //benchmark_nesting.foo = new_Benchmark_Nesting_Foo(cs); Loading