Is anyone else using Google Protocol Buffers on a Zynq running Linux?
I have cross compiled the protobuf libraries and have most of it implemented. However, passing integers and unsigned integers seems to have a problem such that it appears that the value is being padded by a byte.
For example, if I send a value of 150 (intel running RedHat), I receive the data on the Zynq via ethernet. However, when I parse it, the value is 0x9600 instead of 0x0096. I can call htons() and the value is correct, but I thought that was the point of the protobufs? Floats do not seem to work correctly either.
What I don't understand is that enumeration types work perfectly. I thought enums were basically integers?