对应生成的.pb.c //添加packages前PB_BIND(Open, Open, AUTO) PB_BIND(Foo, Foo, AUTO) //添加packages后PB_BIND(foo_bar_Open, foo_bar_Open, AUTO) PB_BIND(foo_bar_Foo, foo_bar_Foo, AUTO) 使用不同的语言,包标识的生成的代码有所差异: 在c++中,生成的类包装在c++ namespace中,如上示例,Ope...
This is a c++ project, but the project is configured to build .c files with the c compiler. I've confirmed that the c compiler is being used by placing a check at the top of the .pb.c file to emit a warning if __cplusplus is set. The full build string, stripping out a million...
20 - PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, google_protobuf_Any, type_url, type_url, 0), 21 - PB_FIELD( 2, BYTES , SINGULAR, CALLBACK, OTHER, google_protobuf_Any, value, type_url, 0), 22 - PB_LAST_FIELD 23 - }; 9 + PB_BIND(Any, Any, AUTO) 24 10...
#define PB_WITHOUT_64BIT 1 */ /* Don't encode scalar arrays as packed This is only to be used when the decoder on the receiving side process packed scalar arrays. * Suchexample is older protobuf.js */ /* #define PB_ENCODE_ARRAYS_UNPACKED 1 */ /* Enable conversion...