Writes a integer to the underlying output file as a 4-byte value.

def write_int(self, number):
        """ Writes a integer to the underlying output file as a 4-byte value. """
        buf = pack(self.byte_order + "i", number)
        self.write(buf)