def set_endianess(self, endianess):
self.endian = endianess<EOL>
Switch the endianess of the defined structure.

        :param endianess: A string giving the new endianess. "little" for
                          little endian and "big" for big endian.