function(reader, from, length, compression, uncompressedSize) {
        return function() {

            var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent());
            var uncompressedFileData = compression.uncompress(compressedFileData);

            if (uncompressedFileData.length !== uncompressedSize) {
                throw new Error("Bug : uncompressed data size mismatch");
            }

            return uncompressedFileData;
        };
    }
function(reader, from, length, compression, uncompressedSize) {
        return function() {

            var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent());
            var uncompressedFileData = compression.uncompress(compressedFileData);

            if (uncompressedFileData.length !== uncompressedSize) {
                throw new Error("Bug : uncompressed data size mismatch");
            }

            return uncompressedFileData;
        };
    }
function ( reader , from , length , compression , uncompressedSize ) { return function ( ) { var compressedFileData = utils . transformTo ( compression . uncompressInputType , this . getCompressedContent ( ) ) ; var uncompressedFileData = compression . uncompress ( compressedFileData ) ; if ( uncompressedFileData . length !== uncompressedSize ) { throw new Error ( "Bug : uncompressed data size mismatch" ) ; } return uncompressedFileData ; } ; }
Prepare the function used to generate the uncompressed content from this ZipFile.
@param {DataReader} reader the reader to use.
@param {number} from the offset from where we should read the data.
@param {number} length the length of the data to read.
@param {JSZip.compression} compression the compression used on this file.
@param {number} uncompressedSize the uncompressed size to expect.
@return {Function} the callback to get the uncompressed content (the type depends of the DataReader class).
Prepare the function used to generate the uncompressed content from this ZipFile .
uncompress the file