Hi,
I have following .proto file.
// [START declaration]
syntax = "proto3";
package tutorial;
// [END declaration]
// [START ICMP Echo Req messages]
message ICMP {
int32 type = 1;
int32 code = 2;
int32 chksm = 3;
}
Here type is of 1 byte, code is of 1 byte, chksm is of 2 bytes. if given
values are type=8, code=0, chksm=0x1234 then expected output after
serialization is {0x08001234}. proto-buf gives '\x08\x01\x10\x02\x18\xb4$'.
Can i get the expected output using proto-buf?
Regards,
Mano
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/1a201e94-87c9-4809-becf-cc54cb765109%40googlegroups.com.