Support Board
Date/Time: Sun, 19 Jan 2025 15:02:59 +0000
Post From: Google Protocol Buffers not working
[2018-04-13 07:04:04] |
User942837 - Posts: 108 |
Thank you for your reply. In that link you have sent you are saying that All DTC messages are then serialized into encoded blocks of data via the SerializeTo() methods in the generated API. These encoded messages are then sent over the network. Because the protocol buffer wire format is not self-delimiting, a small header is used to delimit and describe the encoded messages. The header is a 4-byte header containing a 2-byte unsigned integer size and a 2-byte unsigned integer message type. Each field is sent in little endian format.
There is an issue in the above because in C# there is no SerializeTo() methods that I could reference anywhere. The only method I found to write to a stream is to use the WriteTo() on the message (as per previous code samples). The header struct you are referring to is also not defined anywhere in the generated compiler code. Would it be too much to ask if you could provide an example please in c# of just the login. I've literally searched everywhere I could. Thank you Date Time Of Last Edit: 2018-04-13 07:05:01
|