google::protobuf::io::CodedInputStream InputStream((unsigned char*)sIn.c_str(), sIn.length());
InputStream.SetTotalBytesLimit(sIn.length(),sIn.length());
if (!m_pData->m_gglProtoBuf.ParseFromCodedStream(&InputStream))
几行代码,仅供参考。
可以参考以下连接:
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream