中文 | English
转换Protobuf消息类为c++结构体, 或者转换c++结构体为Protobuf消息类
支持的Protobuf类型:
- 基本类型, 如int32, int64, bool, Enum, string等
- 容器, repeated, map
不支持: oneof
支持的结构体类型:
- 结构体不能设置对齐参数
- 基本类型, 如int, int64_t, bool, enum等
- 字符串必须是std::string
- repeated对应的类型为std::vector
- map对应的类型必须是std::map
不支持: 位域
可参考test中的示例