mutagen/aiff.py
def resize(self, data_size):
        """Update the size of the chunk"""
        self.__fileobj.seek(self.offset + 4)
        self.__fileobj.write(pack('>I', data_size))
        if self.parent_chunk is not None:
            size_diff = self.data_size - data_size
            self.parent_chunk.resize(self.parent_chunk.data_size - size_diff)
        self.data_size = data_size
        self.size = data_size + self.HEADER_SIZE
def resize(self, data_size):
        """Update the size of the chunk"""
        self.__fileobj.seek(self.offset + 4)
        self.__fileobj.write(pack('>I', data_size))
        if self.parent_chunk is not None:
            size_diff = self.data_size - data_size
            self.parent_chunk.resize(self.parent_chunk.data_size - size_diff)
        self.data_size = data_size
        self.size = data_size + self.HEADER_SIZE
def resize ( self , data_size ) : self . __fileobj . seek ( self . offset + 4 ) self . __fileobj . write ( pack ( '>I' , data_size ) ) if self . parent_chunk is not None : size_diff = self . data_size - data_size self . parent_chunk . resize ( self . parent_chunk . data_size - size_diff ) self . data_size = data_size self . size = data_size + self . HEADER_SIZE
Update the size of the chunk
Update the size of the chunk