def write_short(self, number):
        """ Writes a short integer to the underlying output file as a 2-byte value. """
        buf = pack(self.byte_order + "h", number)
        self.write(buf)
Writes a short integer to the underlying output file as a 2-byte value.