42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
// Module ID: 5015
|
|
// Function ID: 5016
|
|
// Name: is7Z
|
|
// Dependencies: [5010, 5011]
|
|
|
|
// Module 5015 (is7Z)
|
|
import getFileChunk from "getFileChunk" /* 5010 */;
|
|
import _mod5011 from "module_5011" /* 5011 */;
|
|
|
|
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 = _mod5011.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "_7z");
|
|
};
|
|
arg5.isLZH = function isLZH(fileChunk) {
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5011.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "lzh");
|
|
};
|
|
arg5.isRAR = function isRAR(fileChunk) {
|
|
fileChunk = getFileChunk.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5011.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 = _mod5011.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "zip");
|
|
};
|