有人用protobuf的吗 在做websocket传输protobuf的时候 出现一个错误
发布于 7 年前 作者 a69694510 3850 次浏览 来自 问答

QQ图片20170731150850.png 他说我字符串长度不是4的整数 是啥意思。

3 回复

你把protobuf字段里的整数的类型改成uint32或int32就好了,4个字节就是32位。

@plantain-00 多谢

来自酷炫的 CNodeMD

@plantain-00 untitled1.png 我查了查 已经是int32了 为啥不行啊

回到顶部