You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protobuf.js version: 7.3.0, C++ protobuf version 21.4
Is it acutally possible to decode cpp-encoded protobuf objects with protobufs.js 7.3.0 and vice versa?
Currently C++ protobuf version 21.4 and protobuf.js version: 7.3.0 are not working well, the generated buffers are quite different.
Is it likely to work with the newest C++ version 27.0?
The text was updated successfully, but these errors were encountered:
Have you tried encoding with one and decoding with the other?
The protobuf spec allows for some variance in how a message can be represented; in particular, the fields can be serialized in any order. As a result, very different looking buffers can represent the exact same message.
Yeah I've encoded a message with c++ and were able to decode it on the javascript side by adding 2 missing header bytes and what seems like padding at the end. Vice versa is just not possible. And it seems like there is no tolerance in encoding right now. I ll try updating the c++ version tho!
If anyone has idea please comment!
protobuf.js version: 7.3.0, C++ protobuf version 21.4
Is it acutally possible to decode cpp-encoded protobuf objects with protobufs.js 7.3.0 and vice versa?
Currently C++ protobuf version 21.4 and protobuf.js version: 7.3.0 are not working well, the generated buffers are quite different.
Is it likely to work with the newest C++ version 27.0?
The text was updated successfully, but these errors were encountered: