[protobuf] size of protoc byte array

2018-05-17 Thread hiyo828
Hello: For protocol buffer Java implementation, May I know whether there is a official/unofficial document/benchmark about the size comparison between protoc byte array and raw jsong string. And performance of converting Json string to byte[] and from byte[] back to Json string? Thanks. --

Re: [protobuf] Making message reader strict, rejecting non-canonical messages

2018-05-17 Thread Dmitry Timofeev
I see, thank you very much for the explanation! On 16.05.18 21:44, Feng Xiao wrote: On Wed, May 16, 2018 at 7:39 AM Dmitry Timofeev mailto:dmytro.tymof...@bitfury.com>> wrote: Hi, I consider if Protocol Buffers can be possibly used in an application that requires canonical rep

Re: [protobuf] Protobuf3 InvalidProtocolBufferException with some strings

2018-05-17 Thread Marc Gravell
(mainly for the list) see also the stackoverflow question: https://stackoverflow.com/q/50387660/23354 On Thu, 17 May 2018 at 10:42, Alexey Vishnyakov wrote: > Hello > > We using protobuf v.3 to transfer messages from C# client to Java server > over HTTP. > > The message proto looks like this: >

[protobuf] Protobuf3 InvalidProtocolBufferException with some strings

2018-05-17 Thread Alexey Vishnyakov
Hello We using protobuf v.3 to transfer messages from C# client to Java server over HTTP. The message proto looks like this: message CLIENT_MESSAGE { string message = 1; } Both client and server uses UTF-8 character encoding for strings. Everything is fine whe we are using short s