42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
// Module ID: 4892
|
|
// Function ID: 4893
|
|
// Name: is7Z
|
|
// Dependencies: [4887, 4888]
|
|
|
|
// Module 4892 (is7Z)
|
|
import getFileChunk from "getFileChunk" /* 4887 */;
|
|
import _mod4888 from "module_4888" /* 4888 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
arg5.is7Z = undefined;
|
|
arg5.isLZH = undefined;
|
|
arg5.isRAR = undefined;
|
|
arg5.isZIP = undefined;
|
|
arg5.is7Z = function is7Z(fileChunk) {
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk);
|
|
const FileTypes = _mod4888.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "_7z");
|
|
};
|
|
arg5.isLZH = function isLZH(fileChunk) {
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk);
|
|
const FileTypes = _mod4888.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "lzh");
|
|
};
|
|
arg5.isRAR = function isRAR(fileChunk) {
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk);
|
|
const FileTypes = _mod4888.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "rar");
|
|
};
|
|
arg5.isZIP = function isZIP(fileChunk, chunkSize) {
|
|
let num;
|
|
if (null != chunkSize) {
|
|
num = chunkSize.chunkSize;
|
|
}
|
|
if (!num) {
|
|
num = 64;
|
|
}
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk, num);
|
|
const FileTypes = _mod4888.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "zip");
|
|
};
|