val proto = protoBuf.newBuilder.setUpdateTime(System.currentTimeMillis).build val protoPackStr = carStatus.toByteString.toStringUtf8 val a = protoBuf.parseFrom(ByteString.copyFromUtf8(protoPackStr)) println(a.getUpdateTime)
Some times this work fine. But some times raise: CodedInputStream encountered a malformed varint. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
