Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 16:44:52 +0000



Post From: No type declaration for enums in .proto file

[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?