Protobuf 的 SerializeToString 的输入参数不是string
来源:互联网 发布:人工智能上市公司一览 编辑:程序博客网 时间:2024/05/05 06:46
CCmString aProtocolBuffer;changes.SerializeToString(aProtocolBuffer);
changes 是一个protobuf自动生成的类的对象,上面的代码编译会报错,原因在于,SerializeToString的输入参数不是string, 而是string* !
改成下面这样就ok了:
CCmString aProtocolBuffer;changes.SerializeToString(&aProtocolBuffer);
- Protobuf 的 SerializeToString 的输入参数不是string
- protobuf之string bytes的区别
- 类型 List 不是通用的;不能使用参数 <String> 将它参数化
- eclipse 中如何输入main(String[] args)的参数
- mybatis查询参数为0且类型不是string的小问题
- java的输入参数
- python的输入参数
- 【ProtoBuf】对 ProtoBuf 的调研
- switch 的String参数
- string类数组的输入
- 带输入参数的游标
- 去掉输入参数的tcping
- main函数的输入参数
- String.valueOf()的参数问题
- JNI-String参数的传递
- 在命令行输入参数 判断每个参数输入的次数
- 【Google Protobuf】protobuf的使用(二)
- protobuf的编码规则
- pandaboard 跑 Android注意事项
- Android Button 的单击事件的三种响应方法
- Object Recognition and Scene Understanding(四)OpenCV SVM+HOG分类
- ubuntu中Broadcom BCM4311 无线网卡驱动问题解决
- hadoop-1.1.1 eclipse插件编译
- Protobuf 的 SerializeToString 的输入参数不是string
- UC提速游戏战略:分成3亿追击腾讯
- flush问题
- Cordova2.0(既PhoneGap)中通过Plugin实现Java和JS代码互相调用
- javascript输出今天年份,日期,星期,当前时间
- sql 查询当天,本月,本周的记录
- ubuntu linux 如何用命令行设置日期时间 date 和默认时区
- 设置alertdialog 透明度
- commons-mail发送带附件,显示图片的邮件(图片保存在邮件服务器)