If i use bit fields the are always serialized in big endian order, but the encoder seems to respect the endianess set for the parser. The result is only bigendian messages with fields can accuratly go through serialization and deserialization. Little endian parsers result in malformed data.