Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Tue, 13 Nov 2018 04:37:08 +0000


No type declaration for enums in .proto file

Support Request:
[2017-05-14 12:20:30]
Queeq - Posts: 31
Hello,

While trying to use generated protobuf wrapper for binary encoding, I found no way to detect enum types correctly. In the C++ header file different enums have type declaration, like int32_t or int8_t, while there are no clues about types in .proto file. Consequently, the generated descriptors have no idea what's the underlying type.

How is it possible to serialize the field correctly if expected length is unknown?
[2017-05-15 05:56:20]
DTC Engineering - Posts: 270
Based on the documentation here explain to us where the issue is:
https://developers.google.com/protocol-buffers/docs/proto#enum
[2017-05-15 18:49:10]
Queeq - Posts: 31
Seems I tried to use it for the purpose it's not suitable. Thanks for the responsiveness, though.
[2017-05-17 15:45:53]
DTC Engineering - Posts: 270
Understood.

To post a message in this thread, you need to login with your Sierra Chart account:

Login


Login Page - Create Account