// Detect a ZLIB.
// Author: LinXP

function detect_zlib(bFile, nOffset, bShowOptions) {
    var sInfo = "ZLIB compression";
    if (bFile.compare("7801", nOffset)) {
        if (bFile.isVerbose()) { sInfo += " fastest" }
        sOptions = sOptions.append(sInfo);
        return true;
    } else if (bFile.compare("785E", nOffset)) {
        if (bFile.isVerbose()) { sInfo += " fast" }
        sOptions = sOptions.append(sInfo);
        return true;
    } else if (bFile.compare("789C", nOffset)) {
        if (bFile.isVerbose()) { sInfo += " normal" }
        sOptions = sOptions.append(sInfo);
        return true;
    } else if (bFile.compare("78DA", nOffset)) {
        if (bFile.isVerbose()) { sInfo += " best" }
        sOptions = sOptions.append(sInfo);
        return true;
    }
}