Re: [protobuf] Re: exchanging c# protobufs with native (c++) code with minimal performance hit

2017-05-29 Thread Mike Bennett
Hmm. Ok, it's not what I was hoping for, but kinda what I expected. Thanks for the response, Jon! -m On May 29, 2017 5:56 AM, "Jon Skeet" wrote: No, the in-memory representation of a C# message is in no way related to the serialized representation. If your C++ code is just

[protobuf] Re: exchanging c# protobufs with native (c++) code with minimal performance hit

2017-05-29 Thread Jon Skeet
No, the in-memory representation of a C# message is in no way related to the serialized representation. If your C++ code is just sending the serialized protobuf though, I don't think you'd need to deserialize in the C++ code - just serialize in C#, pass the byte array to the C++ code, and get