这两天公司开新项目,网络使用proto。服务器基于之前的creator项目pb版本使用的是proto3。我在网上找到两种方案,一种是protoc-gen-lua,还一种是pbc。一顿操作之后protoc-gen-lua被我整出来了,测试的时候序列化和反序列化都OK。。。但是准备和服务器调登录消息的时候发现message层级有点深,head.CommandInfo.wMainCmdID = 100 这样两层的时候SerializeToString序列化可以
msgInfo.head.CommandInfo.wMainCmdID = 200三层的时候导致SerializeToString序列化的时候陷入了死循环。
求大神指点
