[protobuf] Re: How to speedup serialization and deserialization process?

2018-01-26 Thread Ravi
Marc, Thank you very much for the detailed explanation. I got it. Due to curiosity, I tried manual explicit serialization. I needed to code more but indeed it worked way faster as you suggested. Thanks again for the wonderful explanation. - Ravi On Wednesday, December 20, 2017 at 10:00:31

Re: [protobuf] Merge serialized and non-serialized protobuf

2018-01-26 Thread 'Adam Cozzette' via Protocol Buffers
Another thing you could do is create another message which exactly matches WrapperContent except that it stores a bytes field instead of the Content field, like this: message WrapperContentBytes { required string metatData = 1; required bytes content = 2; } Then you can just stick the

Re: [protobuf] Merge serialized and non-serialized protobuf

2018-01-26 Thread 'Bo Yang' via Protocol Buffers
You can simply prepending the serialized tag and length before the serialized data of content. Say, content is 0x0A0B0C0D, the you just prepend 0x12 (number is 2, type is length-delimited) and 0x04 (content is 4 bytes long). So 0x12040A0B0C0D will be the data for wrapper. On Fri, Jan 26, 2018 at

[protobuf] How to merge a serialized protobuf with a another protobuf without deserializing the first

2018-01-26 Thread Mike Trienis
I'm trying to understand if it's possible to take a serialized protobuf that makes up part of another protobuf and merge them together without having to deserialize the first protobuf. For example, given a protobuf wrapper: syntax = "proto2"; import "content.proto"; message WrapperContent

[protobuf] Merge serialized and non-serialized protobuf

2018-01-26 Thread Mike Trienis
I'm trying to understand if it's possible to take a serialized protobuf that makes up part of another protobuf and merge them together without having to deserialize the first protobuf. For example, given a protobuf wrapper: syntax = "proto2"; import "content.proto"; message WrapperContent

Re: [protobuf] Generating c++ code with prefixes or sufixes for enums

2018-01-26 Thread 'Adam Cozzette' via Protocol Buffers
Unfortunately there is no flag to prefix enums this way. I have run into a similar problem and the best solution I found was to just pass a flag to the compiler to undefine the problematic macro. On Fri, Jan 19, 2018 at 12:35 AM, Illya Galashko wrote: > Hi, > I have

Re: [protobuf] an error occurs when I build for Android ARM: reference to 'map' is ambiguous

2018-01-26 Thread 'Adam Cozzette' via Protocol Buffers
Great, I'm glad that worked--that was just a guess, but I happen to have a pull request that will fully qualify types like std::map and std::pair, instead of relying on "using" statements in common.h: https://github.com/google/protobuf/pull/4209 So once I get that pull request merged, the problem

Re: [protobuf] Precompiled Version of probuf for VS2017

2018-01-26 Thread Marc Gravell
Protoc is available for multiple OSes here: https://github.com/google/protobuf/releases/tag/v3.5.1 Note sure about pre-compiled libs; for Java, they're on mvnrepository; for C# they're on NuGet, etc. On 26 January 2018 at 15:22, 'Frank Willen' via Protocol Buffers < protobuf@googlegroups.com>

[protobuf] Precompiled Version of probuf for VS2017

2018-01-26 Thread 'Frank Willen' via Protocol Buffers
Hi, I want to use the protocol buffers for a mixed solution (C+, C#, both in VS2017). Where can I download precompiled libs, headers and the protoc.exe? Or is it neccessary to build the probuffers for everyone? Thanks for your support? Grettings Frank -- You received this message because