DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 14:40:23 +0000
No type declaration for enums in .proto file
View Count: 4230
[2017-05-14 12:20:30] |
Queeq - Posts: 42 |
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: 320 |
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: 42 |
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: 320 |
Understood.
|
To post a message in this thread, you need to log in with your Sierra Chart account: