小编Bor*_*eas的帖子

使用protobuf时如何将字符串转换为ByteString?

我想将字符串对象转换为ByteString。我尝试使用ByteString.CopyFrom()函数进行转换,但是返回值始终为“ {Google.ProtocolBuffers.ByteString}”。为什么?我能怎么做?

我使用的功能是这样的。

结果

c# protocol-buffers protobuf-csharp-port

5
推荐指数
1
解决办法
6362
查看次数