7zip-native 0.0.0-stage → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +293 -2
- package/THIRD_PARTY_NOTICES.md +23 -0
- package/bench/args.mts +69 -0
- package/bench/benchmark.mts +102 -0
- package/bench/compare.mts +546 -0
- package/bench/concurrency.mts +196 -0
- package/binding.gyp +51 -0
- package/dist/index.cjs +528 -0
- package/dist/index.d.cts +63 -0
- package/dist/index.d.mts +63 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.mjs +524 -0
- package/docs/architecture.md +112 -0
- package/examples/basic.mts +19 -0
- package/native/addon.cpp +2154 -0
- package/package.json +85 -5
- package/prebuilds/darwin-arm64/7zip_native.node +0 -0
- package/prebuilds/darwin-arm64/lib7z.dylib +0 -0
- package/prebuilds/darwin-x64/7zip_native.node +0 -0
- package/prebuilds/darwin-x64/lib7z.dylib +0 -0
- package/prebuilds/linux-arm/7z.so +0 -0
- package/prebuilds/linux-arm/7zip_native.node +0 -0
- package/prebuilds/linux-arm64/7z.so +0 -0
- package/prebuilds/linux-arm64/7zip_native.node +0 -0
- package/prebuilds/linux-ia32/7z.so +0 -0
- package/prebuilds/linux-ia32/7zip_native.node +0 -0
- package/prebuilds/linux-x64/7z.so +0 -0
- package/prebuilds/linux-x64/7zip_native.node +0 -0
- package/prebuilds/win32-arm64/7z.dll +0 -0
- package/prebuilds/win32-arm64/7zip_native.node +0 -0
- package/prebuilds/win32-x64/7z.dll +0 -0
- package/prebuilds/win32-x64/7zip_native.node +0 -0
- package/vendor/7zip/.gitattributes +2 -0
- package/vendor/7zip/Asm/arm/7zCrcOpt.asm +100 -0
- package/vendor/7zip/Asm/arm64/7zAsm.S +187 -0
- package/vendor/7zip/Asm/arm64/LzmaDecOpt.S +1487 -0
- package/vendor/7zip/Asm/x86/7zAsm.asm +341 -0
- package/vendor/7zip/Asm/x86/7zCrcOpt.asm +258 -0
- package/vendor/7zip/Asm/x86/AesOpt.asm +742 -0
- package/vendor/7zip/Asm/x86/LzFindOpt.asm +540 -0
- package/vendor/7zip/Asm/x86/LzmaDecOpt.asm +1339 -0
- package/vendor/7zip/Asm/x86/Sha1Opt.asm +263 -0
- package/vendor/7zip/Asm/x86/Sha256Opt.asm +275 -0
- package/vendor/7zip/Asm/x86/Sort.asm +860 -0
- package/vendor/7zip/Asm/x86/XzCrc64Opt.asm +523 -0
- package/vendor/7zip/C/7z.h +204 -0
- package/vendor/7zip/C/7zAlloc.c +89 -0
- package/vendor/7zip/C/7zAlloc.h +19 -0
- package/vendor/7zip/C/7zArcIn.c +1701 -0
- package/vendor/7zip/C/7zBuf.c +36 -0
- package/vendor/7zip/C/7zBuf.h +35 -0
- package/vendor/7zip/C/7zBuf2.c +52 -0
- package/vendor/7zip/C/7zCrc.c +420 -0
- package/vendor/7zip/C/7zCrc.h +28 -0
- package/vendor/7zip/C/7zCrcOpt.c +199 -0
- package/vendor/7zip/C/7zDec.c +672 -0
- package/vendor/7zip/C/7zFile.c +443 -0
- package/vendor/7zip/C/7zFile.h +91 -0
- package/vendor/7zip/C/7zStream.c +199 -0
- package/vendor/7zip/C/7zTypes.h +600 -0
- package/vendor/7zip/C/7zVersion.h +27 -0
- package/vendor/7zip/C/7zVersion.rc +55 -0
- package/vendor/7zip/C/7zWindows.h +107 -0
- package/vendor/7zip/C/7zip_gcc_c.mak +366 -0
- package/vendor/7zip/C/Aes.c +429 -0
- package/vendor/7zip/C/Aes.h +60 -0
- package/vendor/7zip/C/AesOpt.c +1002 -0
- package/vendor/7zip/C/Alloc.c +774 -0
- package/vendor/7zip/C/Alloc.h +76 -0
- package/vendor/7zip/C/Asm_c.mak +12 -0
- package/vendor/7zip/C/Bcj2.c +290 -0
- package/vendor/7zip/C/Bcj2.h +332 -0
- package/vendor/7zip/C/Bcj2Enc.c +509 -0
- package/vendor/7zip/C/Blake2.h +105 -0
- package/vendor/7zip/C/Blake2s.c +2672 -0
- package/vendor/7zip/C/Bra.c +709 -0
- package/vendor/7zip/C/Bra.h +105 -0
- package/vendor/7zip/C/Bra86.c +187 -0
- package/vendor/7zip/C/BraIA64.c +14 -0
- package/vendor/7zip/C/BwtSort.c +630 -0
- package/vendor/7zip/C/BwtSort.h +27 -0
- package/vendor/7zip/C/Compiler.h +287 -0
- package/vendor/7zip/C/CpuArch.c +970 -0
- package/vendor/7zip/C/CpuArch.h +719 -0
- package/vendor/7zip/C/Delta.c +169 -0
- package/vendor/7zip/C/Delta.h +19 -0
- package/vendor/7zip/C/DllSecur.c +99 -0
- package/vendor/7zip/C/DllSecur.h +20 -0
- package/vendor/7zip/C/HuffEnc.c +361 -0
- package/vendor/7zip/C/HuffEnc.h +23 -0
- package/vendor/7zip/C/LzFind.c +1746 -0
- package/vendor/7zip/C/LzFind.h +160 -0
- package/vendor/7zip/C/LzFindMt.c +1422 -0
- package/vendor/7zip/C/LzFindMt.h +114 -0
- package/vendor/7zip/C/LzFindOpt.c +578 -0
- package/vendor/7zip/C/LzHash.h +34 -0
- package/vendor/7zip/C/Lzma2Dec.c +493 -0
- package/vendor/7zip/C/Lzma2Dec.h +121 -0
- package/vendor/7zip/C/Lzma2DecMt.c +1095 -0
- package/vendor/7zip/C/Lzma2DecMt.h +81 -0
- package/vendor/7zip/C/Lzma2Enc.c +799 -0
- package/vendor/7zip/C/Lzma2Enc.h +58 -0
- package/vendor/7zip/C/Lzma86.h +111 -0
- package/vendor/7zip/C/Lzma86Dec.c +53 -0
- package/vendor/7zip/C/Lzma86Enc.c +103 -0
- package/vendor/7zip/C/LzmaDec.c +1367 -0
- package/vendor/7zip/C/LzmaDec.h +237 -0
- package/vendor/7zip/C/LzmaEnc.c +3154 -0
- package/vendor/7zip/C/LzmaEnc.h +85 -0
- package/vendor/7zip/C/LzmaLib.c +42 -0
- package/vendor/7zip/C/LzmaLib.h +138 -0
- package/vendor/7zip/C/Md5.c +206 -0
- package/vendor/7zip/C/Md5.h +34 -0
- package/vendor/7zip/C/MtCoder.c +604 -0
- package/vendor/7zip/C/MtCoder.h +144 -0
- package/vendor/7zip/C/MtDec.c +1124 -0
- package/vendor/7zip/C/MtDec.h +202 -0
- package/vendor/7zip/C/Ppmd.h +169 -0
- package/vendor/7zip/C/Ppmd7.c +1131 -0
- package/vendor/7zip/C/Ppmd7.h +181 -0
- package/vendor/7zip/C/Ppmd7Dec.c +312 -0
- package/vendor/7zip/C/Ppmd7Enc.c +340 -0
- package/vendor/7zip/C/Ppmd7aDec.c +295 -0
- package/vendor/7zip/C/Ppmd8.c +1574 -0
- package/vendor/7zip/C/Ppmd8.h +181 -0
- package/vendor/7zip/C/Ppmd8Dec.c +295 -0
- package/vendor/7zip/C/Ppmd8Enc.c +337 -0
- package/vendor/7zip/C/Precomp.h +127 -0
- package/vendor/7zip/C/RotateDefs.h +50 -0
- package/vendor/7zip/C/Sha1.c +441 -0
- package/vendor/7zip/C/Sha1.h +86 -0
- package/vendor/7zip/C/Sha1Opt.c +424 -0
- package/vendor/7zip/C/Sha256.c +492 -0
- package/vendor/7zip/C/Sha256.h +86 -0
- package/vendor/7zip/C/Sha256Opt.c +451 -0
- package/vendor/7zip/C/Sha3.c +359 -0
- package/vendor/7zip/C/Sha3.h +36 -0
- package/vendor/7zip/C/Sha512.c +711 -0
- package/vendor/7zip/C/Sha512.h +86 -0
- package/vendor/7zip/C/Sha512Opt.c +395 -0
- package/vendor/7zip/C/Sort.c +268 -0
- package/vendor/7zip/C/Sort.h +15 -0
- package/vendor/7zip/C/SwapBytes.c +835 -0
- package/vendor/7zip/C/SwapBytes.h +17 -0
- package/vendor/7zip/C/Threads.c +826 -0
- package/vendor/7zip/C/Threads.h +260 -0
- package/vendor/7zip/C/Util/7z/7z.dsp +249 -0
- package/vendor/7zip/C/Util/7z/7z.dsw +29 -0
- package/vendor/7zip/C/Util/7z/7zMain.c +1210 -0
- package/vendor/7zip/C/Util/7z/Precomp.c +4 -0
- package/vendor/7zip/C/Util/7z/Precomp.h +13 -0
- package/vendor/7zip/C/Util/7z/makefile +44 -0
- package/vendor/7zip/C/Util/7z/makefile.gcc +32 -0
- package/vendor/7zip/C/Util/7zipInstall/7zip.ico +0 -0
- package/vendor/7zip/C/Util/7zipInstall/7zipInstall.c +1699 -0
- package/vendor/7zip/C/Util/7zipInstall/7zipInstall.dsp +248 -0
- package/vendor/7zip/C/Util/7zipInstall/7zipInstall.dsw +29 -0
- package/vendor/7zip/C/Util/7zipInstall/7zipInstall.manifest +18 -0
- package/vendor/7zip/C/Util/7zipInstall/Precomp.c +4 -0
- package/vendor/7zip/C/Util/7zipInstall/Precomp.h +13 -0
- package/vendor/7zip/C/Util/7zipInstall/makefile +47 -0
- package/vendor/7zip/C/Util/7zipInstall/resource.h +9 -0
- package/vendor/7zip/C/Util/7zipInstall/resource.rc +48 -0
- package/vendor/7zip/C/Util/7zipUninstall/7zipUninstall.c +1234 -0
- package/vendor/7zip/C/Util/7zipUninstall/7zipUninstall.dsp +132 -0
- package/vendor/7zip/C/Util/7zipUninstall/7zipUninstall.dsw +29 -0
- package/vendor/7zip/C/Util/7zipUninstall/7zipUninstall.ico +0 -0
- package/vendor/7zip/C/Util/7zipUninstall/7zipUninstall.manifest +18 -0
- package/vendor/7zip/C/Util/7zipUninstall/Precomp.c +4 -0
- package/vendor/7zip/C/Util/7zipUninstall/Precomp.h +13 -0
- package/vendor/7zip/C/Util/7zipUninstall/makefile +18 -0
- package/vendor/7zip/C/Util/7zipUninstall/resource.h +9 -0
- package/vendor/7zip/C/Util/7zipUninstall/resource.rc +48 -0
- package/vendor/7zip/C/Util/Lzma/LzmaUtil.c +313 -0
- package/vendor/7zip/C/Util/Lzma/LzmaUtil.dsp +192 -0
- package/vendor/7zip/C/Util/Lzma/LzmaUtil.dsw +29 -0
- package/vendor/7zip/C/Util/Lzma/Precomp.h +13 -0
- package/vendor/7zip/C/Util/Lzma/makefile +30 -0
- package/vendor/7zip/C/Util/Lzma/makefile.gcc +21 -0
- package/vendor/7zip/C/Util/LzmaLib/LzmaLib.def +4 -0
- package/vendor/7zip/C/Util/LzmaLib/LzmaLib.dsp +206 -0
- package/vendor/7zip/C/Util/LzmaLib/LzmaLib.dsw +29 -0
- package/vendor/7zip/C/Util/LzmaLib/LzmaLibExports.c +15 -0
- package/vendor/7zip/C/Util/LzmaLib/Precomp.c +4 -0
- package/vendor/7zip/C/Util/LzmaLib/Precomp.h +13 -0
- package/vendor/7zip/C/Util/LzmaLib/makefile +59 -0
- package/vendor/7zip/C/Util/LzmaLib/resource.rc +3 -0
- package/vendor/7zip/C/Util/SfxSetup/Precomp.c +4 -0
- package/vendor/7zip/C/Util/SfxSetup/Precomp.h +13 -0
- package/vendor/7zip/C/Util/SfxSetup/SfxSetup.c +657 -0
- package/vendor/7zip/C/Util/SfxSetup/SfxSetup.dsp +231 -0
- package/vendor/7zip/C/Util/SfxSetup/SfxSetup.dsw +29 -0
- package/vendor/7zip/C/Util/SfxSetup/makefile +44 -0
- package/vendor/7zip/C/Util/SfxSetup/makefile_con +40 -0
- package/vendor/7zip/C/Util/SfxSetup/resource.rc +5 -0
- package/vendor/7zip/C/Util/SfxSetup/setup.ico +0 -0
- package/vendor/7zip/C/Xxh64.c +389 -0
- package/vendor/7zip/C/Xxh64.h +50 -0
- package/vendor/7zip/C/Xz.c +92 -0
- package/vendor/7zip/C/Xz.h +542 -0
- package/vendor/7zip/C/XzCrc64.c +140 -0
- package/vendor/7zip/C/XzCrc64.h +26 -0
- package/vendor/7zip/C/XzCrc64Opt.c +261 -0
- package/vendor/7zip/C/XzDec.c +2865 -0
- package/vendor/7zip/C/XzEnc.c +1374 -0
- package/vendor/7zip/C/XzEnc.h +62 -0
- package/vendor/7zip/C/XzIn.c +385 -0
- package/vendor/7zip/C/ZstdDec.c +4067 -0
- package/vendor/7zip/C/ZstdDec.h +173 -0
- package/vendor/7zip/C/var_clang.mak +11 -0
- package/vendor/7zip/C/var_clang_arm64.mak +12 -0
- package/vendor/7zip/C/var_clang_x64.mak +11 -0
- package/vendor/7zip/C/var_clang_x86.mak +11 -0
- package/vendor/7zip/C/var_gcc.mak +12 -0
- package/vendor/7zip/C/var_gcc_arm64.mak +12 -0
- package/vendor/7zip/C/var_gcc_x64.mak +10 -0
- package/vendor/7zip/C/var_gcc_x86.mak +10 -0
- package/vendor/7zip/C/var_mac_arm64.mak +13 -0
- package/vendor/7zip/C/var_mac_x64.mak +13 -0
- package/vendor/7zip/C/warn_clang.mak +1 -0
- package/vendor/7zip/C/warn_clang_mac.mak +1 -0
- package/vendor/7zip/C/warn_gcc.mak +51 -0
- package/vendor/7zip/CPP/7zip/7zip.mak +240 -0
- package/vendor/7zip/CPP/7zip/7zip_gcc.mak +1376 -0
- package/vendor/7zip/CPP/7zip/Aes.mak +10 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7z.dsp +650 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7z.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zCompressionMode.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zCompressionMode.h +92 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zDecode.cpp +599 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zDecode.h +73 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zEncode.cpp +702 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zEncode.h +95 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zExtract.cpp +444 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zFolderInStream.cpp +264 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zFolderInStream.h +101 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zHandler.cpp +800 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zHandler.h +178 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zHandlerOut.cpp +1162 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zHeader.cpp +19 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zHeader.h +156 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zIn.cpp +1815 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zIn.h +454 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zItem.h +207 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zOut.cpp +1026 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zOut.h +346 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zProperties.cpp +182 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zProperties.h +26 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zRegister.cpp +27 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zSpecStream.cpp +31 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zSpecStream.h +49 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zUpdate.cpp +3087 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/7zUpdate.h +167 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/makefile +81 -0
- package/vendor/7zip/CPP/7zip/Archive/7z/resource.rc +11 -0
- package/vendor/7zip/CPP/7zip/Archive/ApfsHandler.cpp +4470 -0
- package/vendor/7zip/CPP/7zip/Archive/ApmHandler.cpp +420 -0
- package/vendor/7zip/CPP/7zip/Archive/ArHandler.cpp +844 -0
- package/vendor/7zip/CPP/7zip/Archive/Archive.def +15 -0
- package/vendor/7zip/CPP/7zip/Archive/Archive2.def +22 -0
- package/vendor/7zip/CPP/7zip/Archive/ArchiveExports.cpp +158 -0
- package/vendor/7zip/CPP/7zip/Archive/ArjHandler.cpp +977 -0
- package/vendor/7zip/CPP/7zip/Archive/AvbHandler.cpp +616 -0
- package/vendor/7zip/CPP/7zip/Archive/Base64Handler.cpp +488 -0
- package/vendor/7zip/CPP/7zip/Archive/Bz2Handler.cpp +482 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabBlockInStream.cpp +122 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabBlockInStream.h +28 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabHandler.cpp +1270 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabHandler.h +29 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabHeader.cpp +15 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabHeader.h +41 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabIn.cpp +485 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabIn.h +169 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabItem.h +69 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/CabRegister.cpp +19 -0
- package/vendor/7zip/CPP/7zip/Archive/Cab/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/Chm/ChmHandler.cpp +790 -0
- package/vendor/7zip/CPP/7zip/Archive/Chm/ChmHandler.h +27 -0
- package/vendor/7zip/CPP/7zip/Archive/Chm/ChmIn.cpp +1026 -0
- package/vendor/7zip/CPP/7zip/Archive/Chm/ChmIn.h +282 -0
- package/vendor/7zip/CPP/7zip/Archive/Chm/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/ComHandler.cpp +1449 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/CoderMixer2.cpp +1144 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/CoderMixer2.h +447 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/DummyOutStream.cpp +17 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/DummyOutStream.h +23 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/FindSignature.cpp +90 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/FindSignature.h +12 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/HandlerOut.cpp +315 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/HandlerOut.h +169 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +57 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/InStreamWithCRC.h +64 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/ItemNameUtils.cpp +140 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/ItemNameUtils.h +33 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/MultiStream.cpp +193 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/MultiStream.h +86 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +18 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/OutStreamWithCRC.h +35 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/OutStreamWithSha1.cpp +29 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/OutStreamWithSha1.h +61 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/ParseProperties.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/ParseProperties.h +6 -0
- package/vendor/7zip/CPP/7zip/Archive/Common/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/CpioHandler.cpp +1110 -0
- package/vendor/7zip/CPP/7zip/Archive/CramfsHandler.cpp +784 -0
- package/vendor/7zip/CPP/7zip/Archive/DeflateProps.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Archive/DeflateProps.h +6 -0
- package/vendor/7zip/CPP/7zip/Archive/DllExports.cpp +96 -0
- package/vendor/7zip/CPP/7zip/Archive/DllExports2.cpp +184 -0
- package/vendor/7zip/CPP/7zip/Archive/DmgHandler.cpp +2336 -0
- package/vendor/7zip/CPP/7zip/Archive/ElfHandler.cpp +1284 -0
- package/vendor/7zip/CPP/7zip/Archive/ExtHandler.cpp +2860 -0
- package/vendor/7zip/CPP/7zip/Archive/FatHandler.cpp +1325 -0
- package/vendor/7zip/CPP/7zip/Archive/FlvHandler.cpp +521 -0
- package/vendor/7zip/CPP/7zip/Archive/GptHandler.cpp +473 -0
- package/vendor/7zip/CPP/7zip/Archive/GzHandler.cpp +1200 -0
- package/vendor/7zip/CPP/7zip/Archive/HandlerCont.cpp +320 -0
- package/vendor/7zip/CPP/7zip/Archive/HandlerCont.h +134 -0
- package/vendor/7zip/CPP/7zip/Archive/HfsHandler.cpp +2631 -0
- package/vendor/7zip/CPP/7zip/Archive/HfsHandler.h +87 -0
- package/vendor/7zip/CPP/7zip/Archive/IArchive.h +755 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/7z.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/apfs.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/arj.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/bz2.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/cab.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/cpio.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/deb.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/dmg.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/fat.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/gz.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/hfs.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/iso.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/lzh.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/lzma.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/ntfs.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/rar.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/rpm.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/split.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/squashfs.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/tar.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/vhd.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/wim.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/xar.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/xz.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/z.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/zip.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/Icons/zst.ico +0 -0
- package/vendor/7zip/CPP/7zip/Archive/IhexHandler.cpp +493 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoHandler.cpp +498 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoHandler.h +24 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoHeader.cpp +12 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoHeader.h +64 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoIn.cpp +801 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoIn.h +328 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoItem.h +316 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/IsoRegister.cpp +21 -0
- package/vendor/7zip/CPP/7zip/Archive/Iso/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/LpHandler.cpp +1172 -0
- package/vendor/7zip/CPP/7zip/Archive/LvmHandler.cpp +1108 -0
- package/vendor/7zip/CPP/7zip/Archive/LzhHandler.cpp +719 -0
- package/vendor/7zip/CPP/7zip/Archive/LzmaHandler.cpp +606 -0
- package/vendor/7zip/CPP/7zip/Archive/MachoHandler.cpp +1075 -0
- package/vendor/7zip/CPP/7zip/Archive/MbrHandler.cpp +648 -0
- package/vendor/7zip/CPP/7zip/Archive/MslzHandler.cpp +389 -0
- package/vendor/7zip/CPP/7zip/Archive/MubHandler.cpp +248 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisDecode.cpp +295 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisDecode.h +97 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisHandler.cpp +703 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisHandler.h +30 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisIn.cpp +6231 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisIn.h +462 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/NsisRegister.cpp +20 -0
- package/vendor/7zip/CPP/7zip/Archive/Nsis/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/NtfsHandler.cpp +2944 -0
- package/vendor/7zip/CPP/7zip/Archive/PeHandler.cpp +3427 -0
- package/vendor/7zip/CPP/7zip/Archive/PpmdHandler.cpp +414 -0
- package/vendor/7zip/CPP/7zip/Archive/QcowHandler.cpp +713 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/Rar5Handler.cpp +3483 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/Rar5Handler.h +527 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/RarHandler.cpp +1775 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/RarHandler.h +115 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/RarHeader.h +209 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/RarItem.h +97 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/RarVol.h +136 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Archive/Rar/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/RpmHandler.cpp +775 -0
- package/vendor/7zip/CPP/7zip/Archive/SparseHandler.cpp +558 -0
- package/vendor/7zip/CPP/7zip/Archive/SplitHandler.cpp +353 -0
- package/vendor/7zip/CPP/7zip/Archive/SquashfsHandler.cpp +2373 -0
- package/vendor/7zip/CPP/7zip/Archive/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/SwfHandler.cpp +996 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarHandler.cpp +1105 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarHandler.h +57 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarHandlerOut.cpp +332 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarHeader.cpp +99 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarHeader.h +90 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarIn.cpp +1151 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarIn.h +151 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarItem.h +365 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarOut.cpp +644 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarOut.h +53 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarRegister.cpp +31 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarUpdate.cpp +563 -0
- package/vendor/7zip/CPP/7zip/Archive/Tar/TarUpdate.h +74 -0
- package/vendor/7zip/CPP/7zip/Archive/Udf/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/Udf/UdfHandler.cpp +427 -0
- package/vendor/7zip/CPP/7zip/Archive/Udf/UdfHandler.h +32 -0
- package/vendor/7zip/CPP/7zip/Archive/Udf/UdfIn.cpp +1756 -0
- package/vendor/7zip/CPP/7zip/Archive/Udf/UdfIn.h +508 -0
- package/vendor/7zip/CPP/7zip/Archive/UefiHandler.cpp +1884 -0
- package/vendor/7zip/CPP/7zip/Archive/VdiHandler.cpp +433 -0
- package/vendor/7zip/CPP/7zip/Archive/VhdHandler.cpp +1106 -0
- package/vendor/7zip/CPP/7zip/Archive/VhdxHandler.cpp +2085 -0
- package/vendor/7zip/CPP/7zip/Archive/VmdkHandler.cpp +1530 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimHandler.cpp +1291 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimHandler.h +117 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimHandlerOut.cpp +2008 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimIn.cpp +2104 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimIn.h +719 -0
- package/vendor/7zip/CPP/7zip/Archive/Wim/WimRegister.cpp +29 -0
- package/vendor/7zip/CPP/7zip/Archive/XarHandler.cpp +1316 -0
- package/vendor/7zip/CPP/7zip/Archive/XzHandler.cpp +1452 -0
- package/vendor/7zip/CPP/7zip/Archive/XzHandler.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/ZHandler.cpp +208 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipAddCommon.cpp +484 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipAddCommon.h +76 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipCompressionMode.h +62 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipHandler.cpp +1679 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipHandler.h +94 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipHandlerOut.cpp +626 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipHeader.h +201 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipIn.cpp +3474 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipIn.h +456 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipItem.cpp +464 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipItem.h +356 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipOut.cpp +428 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipOut.h +103 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipRegister.cpp +38 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipUpdate.cpp +2165 -0
- package/vendor/7zip/CPP/7zip/Archive/Zip/ZipUpdate.h +107 -0
- package/vendor/7zip/CPP/7zip/Archive/ZstdHandler.cpp +1147 -0
- package/vendor/7zip/CPP/7zip/Archive/makefile +23 -0
- package/vendor/7zip/CPP/7zip/Asm.mak +12 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/Alone.dsp +3324 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/Alone.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/makefile +245 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/makefile.gcc +354 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone/resource.rc +7 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone2/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone2/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone2/makefile +31 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone2/makefile.gcc +108 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone2/resource.rc +7 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/Alone.dsp +2090 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/Alone.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/makefile +168 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/makefile.gcc +276 -0
- package/vendor/7zip/CPP/7zip/Bundles/Alone7z/resource.rc +7 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/FM.dsp +2275 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/FM.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/StdAfx.h +6 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/makefile +82 -0
- package/vendor/7zip/CPP/7zip/Bundles/Fm/resource.rc +7 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7z/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7z/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7z/makefile +148 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7z/resource.rc +5 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtract/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtract/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtract/makefile +116 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtract/resource.rc +5 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtractR/makefile +98 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zExtractR/resource.rc +5 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/Arc.mak +310 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/Arc_gcc.mak +395 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/Format7z.dsp +3486 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/Format7z.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/makefile +20 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/makefile.gcc +55 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zF/resource.rc +39 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zR/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zR/makefile +121 -0
- package/vendor/7zip/CPP/7zip/Bundles/Format7zR/resource.rc +5 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +815 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +540 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/makefile +68 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/makefile.gcc +131 -0
- package/vendor/7zip/CPP/7zip/Bundles/LzmaCon/resource.rc +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +1017 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +521 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/makefile +137 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/makefile.gcc +215 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXCon/resource.rc +9 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +246 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +83 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +135 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +11 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +872 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +359 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/StdAfx.h +6 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/makefile +121 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/resource.h +6 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/resource.rc +16 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +1074 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +29 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +268 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/StdAfx.h +6 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/makefile +159 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/resource.h +1 -0
- package/vendor/7zip/CPP/7zip/Bundles/SFXWin/resource.rc +55 -0
- package/vendor/7zip/CPP/7zip/Bundles/makefile +19 -0
- package/vendor/7zip/CPP/7zip/Common/CWrappers.cpp +358 -0
- package/vendor/7zip/CPP/7zip/Common/CWrappers.h +182 -0
- package/vendor/7zip/CPP/7zip/Common/CreateCoder.cpp +548 -0
- package/vendor/7zip/CPP/7zip/Common/CreateCoder.h +200 -0
- package/vendor/7zip/CPP/7zip/Common/FilePathAutoRename.cpp +46 -0
- package/vendor/7zip/CPP/7zip/Common/FilePathAutoRename.h +10 -0
- package/vendor/7zip/CPP/7zip/Common/FileStreams.cpp +923 -0
- package/vendor/7zip/CPP/7zip/Common/FileStreams.h +205 -0
- package/vendor/7zip/CPP/7zip/Common/FilterCoder.cpp +582 -0
- package/vendor/7zip/CPP/7zip/Common/FilterCoder.h +201 -0
- package/vendor/7zip/CPP/7zip/Common/InBuffer.cpp +182 -0
- package/vendor/7zip/CPP/7zip/Common/InBuffer.h +121 -0
- package/vendor/7zip/CPP/7zip/Common/InOutTempBuffer.cpp +237 -0
- package/vendor/7zip/CPP/7zip/Common/InOutTempBuffer.h +45 -0
- package/vendor/7zip/CPP/7zip/Common/LimitedStreams.cpp +395 -0
- package/vendor/7zip/CPP/7zip/Common/LimitedStreams.h +221 -0
- package/vendor/7zip/CPP/7zip/Common/LockedStream.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Common/LockedStream.h +6 -0
- package/vendor/7zip/CPP/7zip/Common/MemBlocks.cpp +215 -0
- package/vendor/7zip/CPP/7zip/Common/MemBlocks.h +72 -0
- package/vendor/7zip/CPP/7zip/Common/MethodId.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Common/MethodId.h +10 -0
- package/vendor/7zip/CPP/7zip/Common/MethodProps.cpp +765 -0
- package/vendor/7zip/CPP/7zip/Common/MethodProps.h +348 -0
- package/vendor/7zip/CPP/7zip/Common/MultiOutStream.cpp +855 -0
- package/vendor/7zip/CPP/7zip/Common/MultiOutStream.h +160 -0
- package/vendor/7zip/CPP/7zip/Common/OffsetStream.cpp +37 -0
- package/vendor/7zip/CPP/7zip/Common/OffsetStream.h +22 -0
- package/vendor/7zip/CPP/7zip/Common/OutBuffer.cpp +111 -0
- package/vendor/7zip/CPP/7zip/Common/OutBuffer.h +133 -0
- package/vendor/7zip/CPP/7zip/Common/OutMemStream.cpp +158 -0
- package/vendor/7zip/CPP/7zip/Common/OutMemStream.h +104 -0
- package/vendor/7zip/CPP/7zip/Common/ProgressMt.cpp +53 -0
- package/vendor/7zip/CPP/7zip/Common/ProgressMt.h +43 -0
- package/vendor/7zip/CPP/7zip/Common/ProgressUtils.cpp +51 -0
- package/vendor/7zip/CPP/7zip/Common/ProgressUtils.h +33 -0
- package/vendor/7zip/CPP/7zip/Common/PropId.cpp +115 -0
- package/vendor/7zip/CPP/7zip/Common/RegisterArc.h +80 -0
- package/vendor/7zip/CPP/7zip/Common/RegisterCodec.h +106 -0
- package/vendor/7zip/CPP/7zip/Common/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Common/StreamBinder.cpp +151 -0
- package/vendor/7zip/CPP/7zip/Common/StreamBinder.h +78 -0
- package/vendor/7zip/CPP/7zip/Common/StreamObjects.cpp +290 -0
- package/vendor/7zip/CPP/7zip/Common/StreamObjects.h +146 -0
- package/vendor/7zip/CPP/7zip/Common/StreamUtils.cpp +101 -0
- package/vendor/7zip/CPP/7zip/Common/StreamUtils.h +31 -0
- package/vendor/7zip/CPP/7zip/Common/UniqBlocks.cpp +57 -0
- package/vendor/7zip/CPP/7zip/Common/UniqBlocks.h +41 -0
- package/vendor/7zip/CPP/7zip/Common/VirtThread.cpp +47 -0
- package/vendor/7zip/CPP/7zip/Common/VirtThread.h +24 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Const.h +71 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Crc.cpp +28 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Crc.h +31 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Decoder.cpp +1777 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Decoder.h +388 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Encoder.cpp +1116 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Encoder.h +273 -0
- package/vendor/7zip/CPP/7zip/Compress/BZip2Register.cpp +25 -0
- package/vendor/7zip/CPP/7zip/Compress/Bcj2Coder.cpp +867 -0
- package/vendor/7zip/CPP/7zip/Compress/Bcj2Coder.h +127 -0
- package/vendor/7zip/CPP/7zip/Compress/Bcj2Register.cpp +24 -0
- package/vendor/7zip/CPP/7zip/Compress/BcjCoder.cpp +24 -0
- package/vendor/7zip/CPP/7zip/Compress/BcjCoder.h +37 -0
- package/vendor/7zip/CPP/7zip/Compress/BcjRegister.cpp +17 -0
- package/vendor/7zip/CPP/7zip/Compress/BitlDecoder.cpp +32 -0
- package/vendor/7zip/CPP/7zip/Compress/BitlDecoder.h +225 -0
- package/vendor/7zip/CPP/7zip/Compress/BitlEncoder.h +57 -0
- package/vendor/7zip/CPP/7zip/Compress/BitmDecoder.h +106 -0
- package/vendor/7zip/CPP/7zip/Compress/BitmEncoder.h +90 -0
- package/vendor/7zip/CPP/7zip/Compress/BranchMisc.cpp +106 -0
- package/vendor/7zip/CPP/7zip/Compress/BranchMisc.h +59 -0
- package/vendor/7zip/CPP/7zip/Compress/BranchRegister.cpp +58 -0
- package/vendor/7zip/CPP/7zip/Compress/ByteSwap.cpp +91 -0
- package/vendor/7zip/CPP/7zip/Compress/Codec.def +7 -0
- package/vendor/7zip/CPP/7zip/Compress/CodecExports.cpp +378 -0
- package/vendor/7zip/CPP/7zip/Compress/CopyCoder.cpp +153 -0
- package/vendor/7zip/CPP/7zip/Compress/CopyCoder.h +34 -0
- package/vendor/7zip/CPP/7zip/Compress/CopyRegister.cpp +15 -0
- package/vendor/7zip/CPP/7zip/Compress/Deflate64Register.cpp +25 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateConst.h +131 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateDecoder.cpp +566 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateDecoder.h +154 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateEncoder.cpp +1045 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateEncoder.h +203 -0
- package/vendor/7zip/CPP/7zip/Compress/DeflateRegister.cpp +25 -0
- package/vendor/7zip/CPP/7zip/Compress/DeltaFilter.cpp +126 -0
- package/vendor/7zip/CPP/7zip/Compress/DllExports2Compress.cpp +38 -0
- package/vendor/7zip/CPP/7zip/Compress/DllExportsCompress.cpp +59 -0
- package/vendor/7zip/CPP/7zip/Compress/HuffmanDecoder.h +528 -0
- package/vendor/7zip/CPP/7zip/Compress/ImplodeDecoder.cpp +250 -0
- package/vendor/7zip/CPP/7zip/Compress/ImplodeDecoder.h +61 -0
- package/vendor/7zip/CPP/7zip/Compress/ImplodeHuffmanDecoder.cpp +3 -0
- package/vendor/7zip/CPP/7zip/Compress/ImplodeHuffmanDecoder.h +6 -0
- package/vendor/7zip/CPP/7zip/Compress/LzOutWindow.cpp +14 -0
- package/vendor/7zip/CPP/7zip/Compress/LzOutWindow.h +102 -0
- package/vendor/7zip/CPP/7zip/Compress/LzfseDecoder.cpp +950 -0
- package/vendor/7zip/CPP/7zip/Compress/LzfseDecoder.h +63 -0
- package/vendor/7zip/CPP/7zip/Compress/LzhDecoder.cpp +220 -0
- package/vendor/7zip/CPP/7zip/Compress/LzhDecoder.h +68 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzma2Decoder.cpp +267 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzma2Decoder.h +87 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzma2Encoder.cpp +134 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzma2Encoder.h +30 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzma2Register.cpp +22 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmaDecoder.cpp +350 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmaDecoder.h +113 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmaEncoder.cpp +374 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmaEncoder.h +45 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmaRegister.cpp +22 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmsDecoder.cpp +619 -0
- package/vendor/7zip/CPP/7zip/Compress/LzmsDecoder.h +209 -0
- package/vendor/7zip/CPP/7zip/Compress/Lzx.h +61 -0
- package/vendor/7zip/CPP/7zip/Compress/LzxDecoder.cpp +1517 -0
- package/vendor/7zip/CPP/7zip/Compress/LzxDecoder.h +106 -0
- package/vendor/7zip/CPP/7zip/Compress/Mtf8.h +225 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdDecoder.cpp +219 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdDecoder.h +87 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdEncoder.cpp +193 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdEncoder.h +49 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdRegister.cpp +22 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdZip.cpp +309 -0
- package/vendor/7zip/CPP/7zip/Compress/PpmdZip.h +78 -0
- package/vendor/7zip/CPP/7zip/Compress/QuantumDecoder.cpp +355 -0
- package/vendor/7zip/CPP/7zip/Compress/QuantumDecoder.h +60 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar1Decoder.cpp +518 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar1Decoder.h +70 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar2Decoder.cpp +472 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar2Decoder.h +111 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar3Decoder.cpp +939 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar3Decoder.h +283 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar3Vm.cpp +1153 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar3Vm.h +195 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar5Decoder.cpp +2060 -0
- package/vendor/7zip/CPP/7zip/Compress/Rar5Decoder.h +132 -0
- package/vendor/7zip/CPP/7zip/Compress/RarCodecsRegister.cpp +33 -0
- package/vendor/7zip/CPP/7zip/Compress/ShrinkDecoder.cpp +290 -0
- package/vendor/7zip/CPP/7zip/Compress/ShrinkDecoder.h +38 -0
- package/vendor/7zip/CPP/7zip/Compress/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Compress/XpressDecoder.cpp +399 -0
- package/vendor/7zip/CPP/7zip/Compress/XpressDecoder.h +18 -0
- package/vendor/7zip/CPP/7zip/Compress/XzDecoder.cpp +151 -0
- package/vendor/7zip/CPP/7zip/Compress/XzDecoder.h +86 -0
- package/vendor/7zip/CPP/7zip/Compress/XzEncoder.cpp +243 -0
- package/vendor/7zip/CPP/7zip/Compress/XzEncoder.h +35 -0
- package/vendor/7zip/CPP/7zip/Compress/ZDecoder.cpp +392 -0
- package/vendor/7zip/CPP/7zip/Compress/ZDecoder.h +41 -0
- package/vendor/7zip/CPP/7zip/Compress/ZlibDecoder.cpp +136 -0
- package/vendor/7zip/CPP/7zip/Compress/ZlibDecoder.h +78 -0
- package/vendor/7zip/CPP/7zip/Compress/ZlibEncoder.cpp +61 -0
- package/vendor/7zip/CPP/7zip/Compress/ZlibEncoder.h +42 -0
- package/vendor/7zip/CPP/7zip/Compress/ZstdDecoder.cpp +437 -0
- package/vendor/7zip/CPP/7zip/Compress/ZstdDecoder.h +98 -0
- package/vendor/7zip/CPP/7zip/Compress/makefile +7 -0
- package/vendor/7zip/CPP/7zip/Crc.mak +8 -0
- package/vendor/7zip/CPP/7zip/Crc64.mak +8 -0
- package/vendor/7zip/CPP/7zip/Crypto/7zAes.cpp +315 -0
- package/vendor/7zip/CPP/7zip/Crypto/7zAes.h +130 -0
- package/vendor/7zip/CPP/7zip/Crypto/7zAesRegister.cpp +17 -0
- package/vendor/7zip/CPP/7zip/Crypto/Codec.def +4 -0
- package/vendor/7zip/CPP/7zip/Crypto/HmacSha1.cpp +94 -0
- package/vendor/7zip/CPP/7zip/Crypto/HmacSha1.h +31 -0
- package/vendor/7zip/CPP/7zip/Crypto/HmacSha256.cpp +53 -0
- package/vendor/7zip/CPP/7zip/Crypto/HmacSha256.h +27 -0
- package/vendor/7zip/CPP/7zip/Crypto/MyAes.cpp +277 -0
- package/vendor/7zip/CPP/7zip/Crypto/MyAes.h +122 -0
- package/vendor/7zip/CPP/7zip/Crypto/MyAesReg.cpp +29 -0
- package/vendor/7zip/CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp +48 -0
- package/vendor/7zip/CPP/7zip/Crypto/Pbkdf2HmacSha1.h +19 -0
- package/vendor/7zip/CPP/7zip/Crypto/RandGen.cpp +242 -0
- package/vendor/7zip/CPP/7zip/Crypto/RandGen.h +41 -0
- package/vendor/7zip/CPP/7zip/Crypto/Rar20Crypto.cpp +130 -0
- package/vendor/7zip/CPP/7zip/Crypto/Rar20Crypto.h +54 -0
- package/vendor/7zip/CPP/7zip/Crypto/Rar5Aes.cpp +273 -0
- package/vendor/7zip/CPP/7zip/Crypto/Rar5Aes.h +97 -0
- package/vendor/7zip/CPP/7zip/Crypto/RarAes.cpp +202 -0
- package/vendor/7zip/CPP/7zip/Crypto/RarAes.h +54 -0
- package/vendor/7zip/CPP/7zip/Crypto/Sha1Cls.h +37 -0
- package/vendor/7zip/CPP/7zip/Crypto/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/Crypto/WzAes.cpp +231 -0
- package/vendor/7zip/CPP/7zip/Crypto/WzAes.h +161 -0
- package/vendor/7zip/CPP/7zip/Crypto/ZipCrypto.cpp +114 -0
- package/vendor/7zip/CPP/7zip/Crypto/ZipCrypto.h +80 -0
- package/vendor/7zip/CPP/7zip/Crypto/ZipStrong.cpp +265 -0
- package/vendor/7zip/CPP/7zip/Crypto/ZipStrong.h +73 -0
- package/vendor/7zip/CPP/7zip/GuiCommon.rc +119 -0
- package/vendor/7zip/CPP/7zip/Guid.txt +243 -0
- package/vendor/7zip/CPP/7zip/ICoder.h +480 -0
- package/vendor/7zip/CPP/7zip/IDecl.h +76 -0
- package/vendor/7zip/CPP/7zip/IPassword.h +54 -0
- package/vendor/7zip/CPP/7zip/IProgress.h +20 -0
- package/vendor/7zip/CPP/7zip/IStream.h +210 -0
- package/vendor/7zip/CPP/7zip/LzFindOpt.mak +7 -0
- package/vendor/7zip/CPP/7zip/LzmaDec.mak +7 -0
- package/vendor/7zip/CPP/7zip/LzmaDec_gcc.mak +14 -0
- package/vendor/7zip/CPP/7zip/MyVersion.h +2 -0
- package/vendor/7zip/CPP/7zip/MyVersionInfo.rc +2 -0
- package/vendor/7zip/CPP/7zip/PropID.h +178 -0
- package/vendor/7zip/CPP/7zip/Sha1.mak +13 -0
- package/vendor/7zip/CPP/7zip/Sha256.mak +13 -0
- package/vendor/7zip/CPP/7zip/Sort.mak +6 -0
- package/vendor/7zip/CPP/7zip/SubBuild.mak +3 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/Agent.cpp +2003 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/Agent.h +365 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/AgentOut.cpp +776 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/AgentProxy.cpp +1098 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/AgentProxy.h +198 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/ArchiveFolder.cpp +57 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/ArchiveFolderOpen.cpp +243 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/ArchiveFolderOut.cpp +457 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/IFolderArchive.h +123 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/UpdateCallbackAgent.cpp +208 -0
- package/vendor/7zip/CPP/7zip/UI/Agent/UpdateCallbackAgent.h +22 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/Client7z.cpp +1145 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/Client7z.dsp +331 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/Client7z.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/makefile +29 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/makefile.gcc +72 -0
- package/vendor/7zip/CPP/7zip/UI/Client7z/resource.rc +3 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +1913 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveCommandLine.h +170 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +3243 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveExtractCallback.h +640 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveName.cpp +176 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveName.h +16 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +403 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ArchiveOpenCallback.h +182 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Bench.cpp +5036 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Bench.h +121 -0
- package/vendor/7zip/CPP/7zip/UI/Common/CompressCall.cpp +343 -0
- package/vendor/7zip/CPP/7zip/UI/Common/CompressCall.h +28 -0
- package/vendor/7zip/CPP/7zip/UI/Common/CompressCall2.cpp +327 -0
- package/vendor/7zip/CPP/7zip/UI/Common/DefaultName.cpp +37 -0
- package/vendor/7zip/CPP/7zip/UI/Common/DefaultName.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Common/DirItem.h +407 -0
- package/vendor/7zip/CPP/7zip/UI/Common/EnumDirItems.cpp +1637 -0
- package/vendor/7zip/CPP/7zip/UI/Common/EnumDirItems.h +38 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ExitCode.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Extract.cpp +593 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Extract.h +118 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ExtractMode.h +44 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ExtractingFilePath.cpp +299 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ExtractingFilePath.h +31 -0
- package/vendor/7zip/CPP/7zip/UI/Common/HashCalc.cpp +2273 -0
- package/vendor/7zip/CPP/7zip/UI/Common/HashCalc.h +322 -0
- package/vendor/7zip/CPP/7zip/UI/Common/IFileExtractCallback.h +112 -0
- package/vendor/7zip/CPP/7zip/UI/Common/LoadCodecs.cpp +1354 -0
- package/vendor/7zip/CPP/7zip/UI/Common/LoadCodecs.h +482 -0
- package/vendor/7zip/CPP/7zip/UI/Common/OpenArchive.cpp +3690 -0
- package/vendor/7zip/CPP/7zip/UI/Common/OpenArchive.h +469 -0
- package/vendor/7zip/CPP/7zip/UI/Common/PropIDUtils.cpp +746 -0
- package/vendor/7zip/CPP/7zip/UI/Common/PropIDUtils.h +18 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Property.h +14 -0
- package/vendor/7zip/CPP/7zip/UI/Common/SetProperties.cpp +88 -0
- package/vendor/7zip/CPP/7zip/UI/Common/SetProperties.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/Common/SortUtils.cpp +25 -0
- package/vendor/7zip/CPP/7zip/UI/Common/SortUtils.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/Common/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Common/TempFiles.cpp +20 -0
- package/vendor/7zip/CPP/7zip/UI/Common/TempFiles.h +19 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Update.cpp +1931 -0
- package/vendor/7zip/CPP/7zip/UI/Common/Update.h +221 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateAction.cpp +64 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateAction.h +66 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateCallback.cpp +1078 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateCallback.h +197 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdatePair.cpp +303 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdatePair.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateProduce.cpp +75 -0
- package/vendor/7zip/CPP/7zip/UI/Common/UpdateProduce.h +60 -0
- package/vendor/7zip/CPP/7zip/UI/Common/WorkDir.cpp +84 -0
- package/vendor/7zip/CPP/7zip/UI/Common/WorkDir.h +30 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ZipRegistry.cpp +599 -0
- package/vendor/7zip/CPP/7zip/UI/Common/ZipRegistry.h +212 -0
- package/vendor/7zip/CPP/7zip/UI/Console/BenchCon.cpp +41 -0
- package/vendor/7zip/CPP/7zip/UI/Console/BenchCon.h +14 -0
- package/vendor/7zip/CPP/7zip/UI/Console/Console.dsp +1052 -0
- package/vendor/7zip/CPP/7zip/UI/Console/Console.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/Console/Console.mak +45 -0
- package/vendor/7zip/CPP/7zip/UI/Console/Console.manifest +16 -0
- package/vendor/7zip/CPP/7zip/UI/Console/ConsoleClose.cpp +98 -0
- package/vendor/7zip/CPP/7zip/UI/Console/ConsoleClose.h +39 -0
- package/vendor/7zip/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +954 -0
- package/vendor/7zip/CPP/7zip/UI/Console/ExtractCallbackConsole.h +211 -0
- package/vendor/7zip/CPP/7zip/UI/Console/HashCon.cpp +426 -0
- package/vendor/7zip/CPP/7zip/UI/Console/HashCon.h +58 -0
- package/vendor/7zip/CPP/7zip/UI/Console/List.cpp +1417 -0
- package/vendor/7zip/CPP/7zip/UI/Console/List.h +42 -0
- package/vendor/7zip/CPP/7zip/UI/Console/Main.cpp +1663 -0
- package/vendor/7zip/CPP/7zip/UI/Console/MainAr.cpp +235 -0
- package/vendor/7zip/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +115 -0
- package/vendor/7zip/CPP/7zip/UI/Console/OpenCallbackConsole.h +73 -0
- package/vendor/7zip/CPP/7zip/UI/Console/PercentPrinter.cpp +186 -0
- package/vendor/7zip/CPP/7zip/UI/Console/PercentPrinter.h +66 -0
- package/vendor/7zip/CPP/7zip/UI/Console/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/Console/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +1012 -0
- package/vendor/7zip/CPP/7zip/UI/Console/UpdateCallbackConsole.h +148 -0
- package/vendor/7zip/CPP/7zip/UI/Console/UserInputUtils.cpp +118 -0
- package/vendor/7zip/CPP/7zip/UI/Console/UserInputUtils.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/Console/makefile +68 -0
- package/vendor/7zip/CPP/7zip/UI/Console/makefile.gcc +184 -0
- package/vendor/7zip/CPP/7zip/UI/Console/resource.rc +7 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/7-zip.dll.manifest +1 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/ContextMenu.cpp +1837 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/ContextMenu.h +173 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/ContextMenuFlags.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/DllExportsExplorer.cpp +268 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/Explorer.def +9 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/Explorer.dsp +620 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/Explorer.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/MenuLogo.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/MyExplorerCommand.h +217 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/MyMessages.cpp +43 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/MyMessages.h +16 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/RegistryContextMenu.cpp +225 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/RegistryContextMenu.h +13 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/StdAfx.h +6 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/makefile +76 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/resource.h +15 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/resource.rc +10 -0
- package/vendor/7zip/CPP/7zip/UI/Explorer/resource2.rc +19 -0
- package/vendor/7zip/CPP/7zip/UI/Far/ExtractEngine.cpp +274 -0
- package/vendor/7zip/CPP/7zip/UI/Far/ExtractEngine.h +43 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Far.cpp +588 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Far.def +35 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Far.dsp +831 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Far.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/Far/FarPlugin.h +560 -0
- package/vendor/7zip/CPP/7zip/UI/Far/FarUtils.cpp +523 -0
- package/vendor/7zip/CPP/7zip/UI/Far/FarUtils.h +203 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Messages.h +136 -0
- package/vendor/7zip/CPP/7zip/UI/Far/OverwriteDialogFar.cpp +145 -0
- package/vendor/7zip/CPP/7zip/UI/Far/OverwriteDialogFar.h +37 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Plugin.cpp +937 -0
- package/vendor/7zip/CPP/7zip/UI/Far/Plugin.h +97 -0
- package/vendor/7zip/CPP/7zip/UI/Far/PluginCommon.cpp +50 -0
- package/vendor/7zip/CPP/7zip/UI/Far/PluginDelete.cpp +144 -0
- package/vendor/7zip/CPP/7zip/UI/Far/PluginRead.cpp +301 -0
- package/vendor/7zip/CPP/7zip/UI/Far/PluginWrite.cpp +840 -0
- package/vendor/7zip/CPP/7zip/UI/Far/ProgressBox.cpp +305 -0
- package/vendor/7zip/CPP/7zip/UI/Far/ProgressBox.h +85 -0
- package/vendor/7zip/CPP/7zip/UI/Far/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/Far/StdAfx.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/Far/UpdateCallbackFar.cpp +327 -0
- package/vendor/7zip/CPP/7zip/UI/Far/UpdateCallbackFar.h +58 -0
- package/vendor/7zip/CPP/7zip/UI/Far/makefile +105 -0
- package/vendor/7zip/CPP/7zip/UI/Far/resource.rc +3 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/7zFM.exe.manifest +23 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/7zipLogo.ico +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AboutDialog.cpp +81 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AboutDialog.h +19 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AboutDialog.rc +26 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AboutDialogRes.h +8 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Add.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Add2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AltStreamsFolder.cpp +865 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AltStreamsFolder.h +92 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/App.cpp +1004 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/App.h +314 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/AppState.h +95 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog.cpp +1132 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog.h +32 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog.rc +25 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog2.cpp +1873 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog2.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog2.rc +32 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialog2Res.h +9 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/BrowseDialogRes.h +9 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ClassDefs.cpp +12 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ComboDialog.cpp +64 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ComboDialog.h +28 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ComboDialog.rc +16 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ComboDialogRes.h +4 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Copy.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Copy2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/CopyDialog.cpp +103 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/CopyDialog.h +31 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/CopyDialog.rc +20 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/CopyDialogRes.h +8 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Delete.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Delete2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/DialogSize.h +16 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditDialog.cpp +57 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditDialog.h +25 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditDialog.rc +15 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditDialogRes.h +2 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditPage.cpp +159 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditPage.h +30 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditPage.rc +19 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditPage2.rc +14 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EditPageRes.h +15 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp +109 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/EnumFormatEtc.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Extract.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Extract2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ExtractCallback.cpp +1284 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ExtractCallback.h +347 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FM.cpp +1230 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FM.dsp +1699 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FM.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FM.ico +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FM.mak +102 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FSDrives.cpp +512 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FSDrives.h +52 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FSFolder.cpp +1179 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FSFolder.h +220 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FSFolderCopy.cpp +871 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FileFolderPluginOpen.cpp +394 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FileFolderPluginOpen.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FilePlugins.cpp +78 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FilePlugins.h +33 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FoldersPage.cpp +172 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FoldersPage.h +32 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FoldersPage.rc +23 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FoldersPage2.rc +11 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FoldersPageRes.h +12 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FormatUtils.cpp +28 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/FormatUtils.h +14 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/HelpUtils.cpp +78 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/HelpUtils.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/IFolder.h +187 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Info.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Info2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangPage.cpp +359 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangPage.h +36 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangPage.rc +40 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangPageRes.h +9 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangUtils.cpp +333 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LangUtils.h +48 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LinkDialog.cpp +402 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LinkDialog.h +34 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LinkDialog.rc +38 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/LinkDialogRes.h +22 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ListViewDialog.cpp +321 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ListViewDialog.h +46 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ListViewDialog.rc +14 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ListViewDialogRes.h +2 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MemDialog.cpp +218 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MemDialog.h +48 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MemDialog.rc +49 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MemDialogRes.h +13 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MenuPage.cpp +439 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MenuPage.h +57 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MenuPage.rc +24 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MenuPage2.rc +28 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MenuPageRes.h +15 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MessagesDialog.cpp +76 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MessagesDialog.h +25 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MessagesDialog.rc +14 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MessagesDialogRes.h +3 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Move.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Move2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MyCom2.h +46 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MyLoadMenu.cpp +964 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MyLoadMenu.h +40 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/MyWindowsNew.h +119 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/NetFolder.cpp +276 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/NetFolder.h +36 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OpenCallback.cpp +86 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OpenCallback.h +69 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OptionsDialog.cpp +89 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +288 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OverwriteDialog.h +89 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OverwriteDialog.rc +93 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +19 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Panel.cpp +1177 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Panel.h +1020 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelCopy.cpp +477 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelCrc.cpp +422 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelDrag.cpp +3006 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelFolderChange.cpp +1122 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelItemOpen.cpp +1836 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelItems.cpp +1476 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelKey.cpp +357 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelListNotify.cpp +838 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelMenu.cpp +1160 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelOperations.cpp +533 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelSelect.cpp +317 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelSort.cpp +288 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PanelSplitFile.cpp +562 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PasswordDialog.cpp +58 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PasswordDialog.h +28 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PasswordDialog.rc +18 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PasswordDialogRes.h +5 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PluginInterface.h +32 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PluginLoader.h +33 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgramLocation.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgramLocation.h +6 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog.cpp +201 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog.h +171 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog.rc +12 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +1484 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog2.h +355 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog2.rc +40 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +49 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +85 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ProgressDialogRes.h +3 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PropertyName.cpp +23 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PropertyName.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PropertyName.rc +109 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/PropertyNameRes.h +104 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryAssociations.cpp +167 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryAssociations.h +31 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryPlugins.cpp +145 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryPlugins.h +29 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryUtils.cpp +194 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RegistryUtils.h +50 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RootFolder.cpp +342 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/RootFolder.h +24 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SettingsPage.cpp +453 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SettingsPage.h +37 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SettingsPage.rc +22 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SettingsPage2.rc +37 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SettingsPageRes.h +23 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitDialog.cpp +114 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitDialog.h +28 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitDialog.rc +16 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitDialogRes.h +8 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitUtils.cpp +96 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SplitUtils.h +15 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/StdAfx.h +67 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/StringUtils.cpp +39 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/StringUtils.h +11 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SysIconUtils.cpp +352 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SysIconUtils.h +65 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SystemPage.cpp +472 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SystemPage.h +126 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SystemPage.rc +43 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/SystemPageRes.h +9 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Test.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/Test2.bmp +0 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/TextPairs.cpp +193 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/TextPairs.h +32 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/UpdateCallback100.cpp +147 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/UpdateCallback100.h +49 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/VerCtrl.cpp +428 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ViewSettings.cpp +315 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/ViewSettings.h +115 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/makefile +110 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/resource.h +199 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/resource.rc +296 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/resourceGui.h +25 -0
- package/vendor/7zip/CPP/7zip/UI/FileManager/resourceGui.rc +30 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/7zG.exe.manifest +23 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/BenchmarkDialog.cpp +1921 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/BenchmarkDialog.h +15 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/BenchmarkDialog.rc +288 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/BenchmarkDialogRes.h +79 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/CompressDialog.cpp +3821 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/CompressDialog.h +483 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/CompressDialog.rc +233 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/CompressDialogRes.h +125 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/CompressOptionsDialog.rc +79 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/Extract.rc +59 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractDialog.cpp +420 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractDialog.h +113 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractDialog.rc +98 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractDialogRes.h +24 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractGUI.cpp +297 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractGUI.h +39 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/ExtractRes.h +51 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/FM.ico +0 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/GUI.cpp +502 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/GUI.dsp +1275 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/GUI.dsw +29 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/HashGUI.cpp +341 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/HashGUI.h +27 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/StdAfx.cpp +3 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/StdAfx.h +6 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp +295 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateCallbackGUI.h +31 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateCallbackGUI2.cpp +130 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateCallbackGUI2.h +53 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateGUI.cpp +605 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/UpdateGUI.h +33 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/makefile +148 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/resource.rc +26 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/resource2.h +2 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/resource2.rc +10 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/resource3.h +10 -0
- package/vendor/7zip/CPP/7zip/UI/GUI/resource3.rc +15 -0
- package/vendor/7zip/CPP/7zip/UI/makefile +12 -0
- package/vendor/7zip/CPP/7zip/cmpl_clang.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_clang_arm64.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_clang_x64.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_clang_x86.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_gcc.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_gcc_arm.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_gcc_arm64.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_gcc_x64.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_gcc_x86.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_mac_arm64.mak +3 -0
- package/vendor/7zip/CPP/7zip/cmpl_mac_x64.mak +3 -0
- package/vendor/7zip/CPP/7zip/makefile +10 -0
- package/vendor/7zip/CPP/7zip/var_clang.mak +11 -0
- package/vendor/7zip/CPP/7zip/var_clang_arm64.mak +19 -0
- package/vendor/7zip/CPP/7zip/var_clang_x64.mak +11 -0
- package/vendor/7zip/CPP/7zip/var_clang_x86.mak +11 -0
- package/vendor/7zip/CPP/7zip/var_gcc.mak +12 -0
- package/vendor/7zip/CPP/7zip/var_gcc_arm.mak +34 -0
- package/vendor/7zip/CPP/7zip/var_gcc_arm64.mak +12 -0
- package/vendor/7zip/CPP/7zip/var_gcc_x64.mak +11 -0
- package/vendor/7zip/CPP/7zip/var_gcc_x86.mak +10 -0
- package/vendor/7zip/CPP/7zip/var_mac_arm64.mak +13 -0
- package/vendor/7zip/CPP/7zip/var_mac_x64.mak +13 -0
- package/vendor/7zip/CPP/7zip/warn_clang.mak +3 -0
- package/vendor/7zip/CPP/7zip/warn_clang_mac.mak +9 -0
- package/vendor/7zip/CPP/7zip/warn_gcc.mak +55 -0
- package/vendor/7zip/CPP/Build.mak +259 -0
- package/vendor/7zip/CPP/Common/AutoPtr.h +46 -0
- package/vendor/7zip/CPP/Common/CRC.cpp +7 -0
- package/vendor/7zip/CPP/Common/C_FileIO.cpp +3 -0
- package/vendor/7zip/CPP/Common/C_FileIO.h +6 -0
- package/vendor/7zip/CPP/Common/CksumReg.cpp +55 -0
- package/vendor/7zip/CPP/Common/ComTry.h +21 -0
- package/vendor/7zip/CPP/Common/CommandLineParser.cpp +231 -0
- package/vendor/7zip/CPP/Common/CommandLineParser.h +63 -0
- package/vendor/7zip/CPP/Common/Common.h +28 -0
- package/vendor/7zip/CPP/Common/Common0.h +342 -0
- package/vendor/7zip/CPP/Common/CrcReg.cpp +77 -0
- package/vendor/7zip/CPP/Common/Defs.h +16 -0
- package/vendor/7zip/CPP/Common/DynLimBuf.cpp +93 -0
- package/vendor/7zip/CPP/Common/DynLimBuf.h +41 -0
- package/vendor/7zip/CPP/Common/DynamicBuffer.h +76 -0
- package/vendor/7zip/CPP/Common/IntToString.cpp +215 -0
- package/vendor/7zip/CPP/Common/IntToString.h +54 -0
- package/vendor/7zip/CPP/Common/Lang.cpp +173 -0
- package/vendor/7zip/CPP/Common/Lang.h +30 -0
- package/vendor/7zip/CPP/Common/ListFileUtils.cpp +150 -0
- package/vendor/7zip/CPP/Common/ListFileUtils.h +18 -0
- package/vendor/7zip/CPP/Common/LzFindPrepare.cpp +7 -0
- package/vendor/7zip/CPP/Common/Md5Reg.cpp +44 -0
- package/vendor/7zip/CPP/Common/MyBuffer.h +343 -0
- package/vendor/7zip/CPP/Common/MyBuffer2.h +185 -0
- package/vendor/7zip/CPP/Common/MyCom.h +693 -0
- package/vendor/7zip/CPP/Common/MyException.h +14 -0
- package/vendor/7zip/CPP/Common/MyGuidDef.h +63 -0
- package/vendor/7zip/CPP/Common/MyInitGuid.h +57 -0
- package/vendor/7zip/CPP/Common/MyLinux.h +75 -0
- package/vendor/7zip/CPP/Common/MyMap.cpp +140 -0
- package/vendor/7zip/CPP/Common/MyMap.h +28 -0
- package/vendor/7zip/CPP/Common/MyString.cpp +1842 -0
- package/vendor/7zip/CPP/Common/MyString.h +1079 -0
- package/vendor/7zip/CPP/Common/MyTypes.h +38 -0
- package/vendor/7zip/CPP/Common/MyUnknown.h +8 -0
- package/vendor/7zip/CPP/Common/MyVector.cpp +3 -0
- package/vendor/7zip/CPP/Common/MyVector.h +772 -0
- package/vendor/7zip/CPP/Common/MyWindows.cpp +292 -0
- package/vendor/7zip/CPP/Common/MyWindows.h +325 -0
- package/vendor/7zip/CPP/Common/MyXml.cpp +349 -0
- package/vendor/7zip/CPP/Common/MyXml.h +45 -0
- package/vendor/7zip/CPP/Common/NewHandler.cpp +340 -0
- package/vendor/7zip/CPP/Common/NewHandler.h +121 -0
- package/vendor/7zip/CPP/Common/Random.cpp +28 -0
- package/vendor/7zip/CPP/Common/Random.h +14 -0
- package/vendor/7zip/CPP/Common/Sha1Prepare.cpp +7 -0
- package/vendor/7zip/CPP/Common/Sha1Reg.cpp +67 -0
- package/vendor/7zip/CPP/Common/Sha256Prepare.cpp +7 -0
- package/vendor/7zip/CPP/Common/Sha256Reg.cpp +67 -0
- package/vendor/7zip/CPP/Common/Sha3Reg.cpp +76 -0
- package/vendor/7zip/CPP/Common/Sha512Prepare.cpp +7 -0
- package/vendor/7zip/CPP/Common/Sha512Reg.cpp +83 -0
- package/vendor/7zip/CPP/Common/StdAfx.h +8 -0
- package/vendor/7zip/CPP/Common/StdInStream.cpp +98 -0
- package/vendor/7zip/CPP/Common/StdInStream.h +46 -0
- package/vendor/7zip/CPP/Common/StdOutStream.cpp +271 -0
- package/vendor/7zip/CPP/Common/StdOutStream.h +87 -0
- package/vendor/7zip/CPP/Common/StringConvert.cpp +762 -0
- package/vendor/7zip/CPP/Common/StringConvert.h +110 -0
- package/vendor/7zip/CPP/Common/StringToInt.cpp +154 -0
- package/vendor/7zip/CPP/Common/StringToInt.h +38 -0
- package/vendor/7zip/CPP/Common/TextConfig.cpp +123 -0
- package/vendor/7zip/CPP/Common/TextConfig.h +19 -0
- package/vendor/7zip/CPP/Common/UTFConvert.cpp +863 -0
- package/vendor/7zip/CPP/Common/UTFConvert.h +384 -0
- package/vendor/7zip/CPP/Common/Wildcard.cpp +789 -0
- package/vendor/7zip/CPP/Common/Wildcard.h +231 -0
- package/vendor/7zip/CPP/Common/Xxh64Reg.cpp +97 -0
- package/vendor/7zip/CPP/Common/XzCrc64Init.cpp +7 -0
- package/vendor/7zip/CPP/Common/XzCrc64Reg.cpp +39 -0
- package/vendor/7zip/CPP/Windows/COM.cpp +41 -0
- package/vendor/7zip/CPP/Windows/COM.h +86 -0
- package/vendor/7zip/CPP/Windows/Clipboard.cpp +130 -0
- package/vendor/7zip/CPP/Windows/Clipboard.h +28 -0
- package/vendor/7zip/CPP/Windows/CommonDialog.cpp +269 -0
- package/vendor/7zip/CPP/Windows/CommonDialog.h +43 -0
- package/vendor/7zip/CPP/Windows/Console.cpp +10 -0
- package/vendor/7zip/CPP/Windows/Console.h +52 -0
- package/vendor/7zip/CPP/Windows/Control/ComboBox.cpp +75 -0
- package/vendor/7zip/CPP/Windows/Control/ComboBox.h +79 -0
- package/vendor/7zip/CPP/Windows/Control/CommandBar.h +52 -0
- package/vendor/7zip/CPP/Windows/Control/Dialog.cpp +446 -0
- package/vendor/7zip/CPP/Windows/Control/Dialog.h +213 -0
- package/vendor/7zip/CPP/Windows/Control/Edit.h +19 -0
- package/vendor/7zip/CPP/Windows/Control/ImageList.cpp +10 -0
- package/vendor/7zip/CPP/Windows/Control/ImageList.h +87 -0
- package/vendor/7zip/CPP/Windows/Control/ListView.cpp +162 -0
- package/vendor/7zip/CPP/Windows/Control/ListView.h +156 -0
- package/vendor/7zip/CPP/Windows/Control/ProgressBar.h +35 -0
- package/vendor/7zip/CPP/Windows/Control/PropertyPage.cpp +165 -0
- package/vendor/7zip/CPP/Windows/Control/PropertyPage.h +50 -0
- package/vendor/7zip/CPP/Windows/Control/ReBar.h +34 -0
- package/vendor/7zip/CPP/Windows/Control/Static.h +28 -0
- package/vendor/7zip/CPP/Windows/Control/StatusBar.h +42 -0
- package/vendor/7zip/CPP/Windows/Control/StdAfx.h +11 -0
- package/vendor/7zip/CPP/Windows/Control/ToolBar.h +43 -0
- package/vendor/7zip/CPP/Windows/Control/Trackbar.h +27 -0
- package/vendor/7zip/CPP/Windows/Control/Window2.cpp +202 -0
- package/vendor/7zip/CPP/Windows/Control/Window2.h +53 -0
- package/vendor/7zip/CPP/Windows/DLL.cpp +178 -0
- package/vendor/7zip/CPP/Windows/DLL.h +103 -0
- package/vendor/7zip/CPP/Windows/ErrorMsg.cpp +133 -0
- package/vendor/7zip/CPP/Windows/ErrorMsg.h +16 -0
- package/vendor/7zip/CPP/Windows/FileDir.cpp +1388 -0
- package/vendor/7zip/CPP/Windows/FileDir.h +173 -0
- package/vendor/7zip/CPP/Windows/FileFind.cpp +1458 -0
- package/vendor/7zip/CPP/Windows/FileFind.h +345 -0
- package/vendor/7zip/CPP/Windows/FileIO.cpp +1188 -0
- package/vendor/7zip/CPP/Windows/FileIO.h +508 -0
- package/vendor/7zip/CPP/Windows/FileLink.cpp +697 -0
- package/vendor/7zip/CPP/Windows/FileMapping.cpp +12 -0
- package/vendor/7zip/CPP/Windows/FileMapping.h +66 -0
- package/vendor/7zip/CPP/Windows/FileName.cpp +911 -0
- package/vendor/7zip/CPP/Windows/FileName.h +142 -0
- package/vendor/7zip/CPP/Windows/FileSystem.cpp +187 -0
- package/vendor/7zip/CPP/Windows/FileSystem.h +31 -0
- package/vendor/7zip/CPP/Windows/Handle.h +39 -0
- package/vendor/7zip/CPP/Windows/MemoryGlobal.cpp +36 -0
- package/vendor/7zip/CPP/Windows/MemoryGlobal.h +55 -0
- package/vendor/7zip/CPP/Windows/MemoryLock.cpp +127 -0
- package/vendor/7zip/CPP/Windows/MemoryLock.h +40 -0
- package/vendor/7zip/CPP/Windows/Menu.cpp +265 -0
- package/vendor/7zip/CPP/Windows/Menu.h +170 -0
- package/vendor/7zip/CPP/Windows/NationalTime.cpp +37 -0
- package/vendor/7zip/CPP/Windows/NationalTime.h +20 -0
- package/vendor/7zip/CPP/Windows/Net.cpp +398 -0
- package/vendor/7zip/CPP/Windows/Net.h +87 -0
- package/vendor/7zip/CPP/Windows/NtCheck.h +58 -0
- package/vendor/7zip/CPP/Windows/ProcessMessages.cpp +22 -0
- package/vendor/7zip/CPP/Windows/ProcessMessages.h +12 -0
- package/vendor/7zip/CPP/Windows/ProcessUtils.cpp +102 -0
- package/vendor/7zip/CPP/Windows/ProcessUtils.h +138 -0
- package/vendor/7zip/CPP/Windows/PropVariant.cpp +393 -0
- package/vendor/7zip/CPP/Windows/PropVariant.h +173 -0
- package/vendor/7zip/CPP/Windows/PropVariantConv.cpp +274 -0
- package/vendor/7zip/CPP/Windows/PropVariantConv.h +47 -0
- package/vendor/7zip/CPP/Windows/PropVariantUtils.cpp +161 -0
- package/vendor/7zip/CPP/Windows/PropVariantUtils.h +34 -0
- package/vendor/7zip/CPP/Windows/Registry.cpp +474 -0
- package/vendor/7zip/CPP/Windows/Registry.h +96 -0
- package/vendor/7zip/CPP/Windows/ResourceString.cpp +103 -0
- package/vendor/7zip/CPP/Windows/ResourceString.h +17 -0
- package/vendor/7zip/CPP/Windows/SecurityUtils.cpp +186 -0
- package/vendor/7zip/CPP/Windows/SecurityUtils.h +154 -0
- package/vendor/7zip/CPP/Windows/Shell.cpp +839 -0
- package/vendor/7zip/CPP/Windows/Shell.h +129 -0
- package/vendor/7zip/CPP/Windows/StdAfx.h +11 -0
- package/vendor/7zip/CPP/Windows/Synchronization.cpp +87 -0
- package/vendor/7zip/CPP/Windows/Synchronization.h +386 -0
- package/vendor/7zip/CPP/Windows/System.cpp +423 -0
- package/vendor/7zip/CPP/Windows/System.h +209 -0
- package/vendor/7zip/CPP/Windows/SystemInfo.cpp +1312 -0
- package/vendor/7zip/CPP/Windows/SystemInfo.h +19 -0
- package/vendor/7zip/CPP/Windows/Thread.h +46 -0
- package/vendor/7zip/CPP/Windows/TimeUtils.cpp +467 -0
- package/vendor/7zip/CPP/Windows/TimeUtils.h +154 -0
- package/vendor/7zip/CPP/Windows/WinDefs.h +17 -0
- package/vendor/7zip/CPP/Windows/Window.cpp +179 -0
- package/vendor/7zip/CPP/Windows/Window.h +363 -0
- package/vendor/7zip/DOC/7zC.txt +187 -0
- package/vendor/7zip/DOC/7zFormat.txt +469 -0
- package/vendor/7zip/DOC/7zip.hhp +84 -0
- package/vendor/7zip/DOC/7zip.wxs +403 -0
- package/vendor/7zip/DOC/License.txt +151 -0
- package/vendor/7zip/DOC/Methods.txt +177 -0
- package/vendor/7zip/DOC/copying.txt +502 -0
- package/vendor/7zip/DOC/lzma.txt +345 -0
- package/vendor/7zip/DOC/readme.txt +299 -0
- package/vendor/7zip/DOC/src-history.txt +884 -0
- package/vendor/7zip/DOC/unRarLicense.txt +41 -0
- package/vendor/7zip/README.md +2 -0
|
@@ -0,0 +1,1098 @@
|
|
|
1
|
+
// AgentProxy.cpp
|
|
2
|
+
|
|
3
|
+
#include "StdAfx.h"
|
|
4
|
+
|
|
5
|
+
// #include <stdio.h>
|
|
6
|
+
#ifdef _WIN32
|
|
7
|
+
#include <wchar.h>
|
|
8
|
+
#else
|
|
9
|
+
#include <ctype.h>
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
#include "../../../../C/CpuArch.h"
|
|
13
|
+
|
|
14
|
+
#include "../../../Common/UTFConvert.h"
|
|
15
|
+
#include "../../../Common/Wildcard.h"
|
|
16
|
+
|
|
17
|
+
#include "../../../Windows/PropVariant.h"
|
|
18
|
+
#include "../../../Windows/PropVariantConv.h"
|
|
19
|
+
|
|
20
|
+
#include "../../Archive/Common/ItemNameUtils.h"
|
|
21
|
+
|
|
22
|
+
#include "AgentProxy.h"
|
|
23
|
+
|
|
24
|
+
using namespace NWindows;
|
|
25
|
+
|
|
26
|
+
#define CHECK_MEM_USAGE { if (MemUsage > MemUsage_Limit) return E_OUTOFMEMORY; }
|
|
27
|
+
|
|
28
|
+
int CProxyArc::FindSubDir(const unsigned *items, unsigned right,
|
|
29
|
+
const wchar_t *name, unsigned &insertPos) const
|
|
30
|
+
{
|
|
31
|
+
unsigned left = 0;
|
|
32
|
+
for (;;)
|
|
33
|
+
{
|
|
34
|
+
if (left == right)
|
|
35
|
+
{
|
|
36
|
+
insertPos = left;
|
|
37
|
+
return -1;
|
|
38
|
+
}
|
|
39
|
+
const unsigned mid = (unsigned)(((size_t)left + (size_t)right) / 2);
|
|
40
|
+
const unsigned dirIndex2 = items[mid];
|
|
41
|
+
const int comp = CompareFileNames(name, Dirs[dirIndex2].Name);
|
|
42
|
+
if (comp == 0)
|
|
43
|
+
{
|
|
44
|
+
insertPos = mid; // not used, but we set it to suppress compiler warnings
|
|
45
|
+
return (int)dirIndex2;
|
|
46
|
+
}
|
|
47
|
+
if (comp < 0)
|
|
48
|
+
right = mid;
|
|
49
|
+
else
|
|
50
|
+
left = mid + 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
int CProxyArc::FindSubDir(unsigned dirIndex, const wchar_t *name) const
|
|
55
|
+
{
|
|
56
|
+
unsigned insertPos;
|
|
57
|
+
const CUIntVector &dirs = Dirs[dirIndex].SubDirs;
|
|
58
|
+
return FindSubDir(dirs.ConstData(), dirs.Size(), name, insertPos);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static const wchar_t *AllocStringAndCopy(const wchar_t *s, size_t len)
|
|
62
|
+
{
|
|
63
|
+
++len;
|
|
64
|
+
wchar_t *p = new wchar_t[len];
|
|
65
|
+
return wmemcpy(p, s, len);
|
|
66
|
+
// MyStringCopy(p, s); return p;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static const wchar_t *AllocStringAndCopy(const UString &s)
|
|
70
|
+
{
|
|
71
|
+
return AllocStringAndCopy(s, s.Len());
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
void CProxyArc::MergeSubDirs(CProxyDir &baseDir)
|
|
76
|
+
{
|
|
77
|
+
CUIntVector &dirs2 = baseDir.SubDirs2;
|
|
78
|
+
unsigned i = dirs2.Size();
|
|
79
|
+
if (i == 0)
|
|
80
|
+
return;
|
|
81
|
+
CUIntVector &dirs = baseDir.SubDirs;
|
|
82
|
+
unsigned right = dirs.Size();
|
|
83
|
+
unsigned total = right + i;
|
|
84
|
+
dirs.ChangeSize_KeepData_plus_AdditionalReserve(total);
|
|
85
|
+
unsigned * const items = dirs.NonConstData();
|
|
86
|
+
do
|
|
87
|
+
{
|
|
88
|
+
const unsigned index = dirs2[--i];
|
|
89
|
+
unsigned insertPos;
|
|
90
|
+
if (FindSubDir(items, right, Dirs[index].Name, insertPos) != -1)
|
|
91
|
+
throw 1;
|
|
92
|
+
const unsigned numItems = right - insertPos;
|
|
93
|
+
right = insertPos;
|
|
94
|
+
total -= numItems;
|
|
95
|
+
memmove(items + total, items + insertPos, numItems * sizeof(*items));
|
|
96
|
+
items[--total] = index;
|
|
97
|
+
}
|
|
98
|
+
while (i);
|
|
99
|
+
dirs2.Clear();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
unsigned CProxyArc::AddDir(const unsigned dirIndex, const int arcIndex, const UString &name)
|
|
104
|
+
{
|
|
105
|
+
CProxyDir &baseDir = Dirs[dirIndex];
|
|
106
|
+
CUIntVector &dirs = baseDir.SubDirs;
|
|
107
|
+
CUIntVector &dirs2 = baseDir.SubDirs2;
|
|
108
|
+
{
|
|
109
|
+
const unsigned numSmallDirs = dirs2.Size();
|
|
110
|
+
if (numSmallDirs * numSmallDirs > dirs.Size())
|
|
111
|
+
MergeSubDirs(baseDir);
|
|
112
|
+
}
|
|
113
|
+
unsigned insertPos;
|
|
114
|
+
int subDirIndex = FindSubDir(dirs.ConstData(), dirs.Size(), name, insertPos);
|
|
115
|
+
if (subDirIndex == -1)
|
|
116
|
+
{
|
|
117
|
+
unsigned insertPos2;
|
|
118
|
+
subDirIndex = FindSubDir(dirs2.ConstData(), dirs2.Size(), name, insertPos2);
|
|
119
|
+
if (subDirIndex == -1)
|
|
120
|
+
{
|
|
121
|
+
CUIntVector *subDirsWork = &dirs;
|
|
122
|
+
if (dirs.Size() - insertPos >= (1 << 12))
|
|
123
|
+
{
|
|
124
|
+
subDirsWork = &dirs2;
|
|
125
|
+
insertPos = insertPos2;
|
|
126
|
+
}
|
|
127
|
+
subDirIndex = (int)Dirs.Size();
|
|
128
|
+
subDirsWork->Insert(insertPos, (unsigned)subDirIndex);
|
|
129
|
+
CProxyDir &item = Dirs.AddNew();
|
|
130
|
+
item.NameLen = name.Len();
|
|
131
|
+
MemUsage += (size_t)item.NameLen * sizeof(*item.Name)
|
|
132
|
+
+ sizeof(CProxyDir) + sizeof(void *) * 3 + 24;
|
|
133
|
+
item.Name = AllocStringAndCopy(name);
|
|
134
|
+
item.ArcIndex = arcIndex;
|
|
135
|
+
item.ParentDir = (int)dirIndex;
|
|
136
|
+
return (unsigned)subDirIndex;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
CProxyDir &item = Dirs[(unsigned)subDirIndex];
|
|
141
|
+
if (item.ArcIndex == -1)
|
|
142
|
+
item.ArcIndex = arcIndex;
|
|
143
|
+
return (unsigned)subDirIndex;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
void CProxyArc::GetDirPathParts_isChanged(unsigned dirIndex,
|
|
148
|
+
UStringVector &pathParts, bool &isChangedPath) const
|
|
149
|
+
{
|
|
150
|
+
isChangedPath = false;
|
|
151
|
+
pathParts.Clear();
|
|
152
|
+
while (dirIndex != k_Proxy_RootDirIndex)
|
|
153
|
+
{
|
|
154
|
+
const CProxyDir &dir = Dirs[dirIndex];
|
|
155
|
+
if (dir.Is_Changed_LongPath)
|
|
156
|
+
isChangedPath = true;
|
|
157
|
+
dirIndex = (unsigned)dir.ParentDir;
|
|
158
|
+
pathParts.Insert(0, dir.Name);
|
|
159
|
+
// 22.00: we normalize name
|
|
160
|
+
NArchive::NItemName::NormalizeSlashes_in_FileName_for_OsPath(pathParts[0]);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
void CProxyArc::GetDirPath_as_Prefix_from_Base(const unsigned dirIndex,
|
|
166
|
+
UString &prefix, const unsigned baseDirIndex) const
|
|
167
|
+
{
|
|
168
|
+
prefix.Empty();
|
|
169
|
+
if (dirIndex == baseDirIndex)
|
|
170
|
+
return;
|
|
171
|
+
unsigned len = 0;
|
|
172
|
+
unsigned i = dirIndex;
|
|
173
|
+
do
|
|
174
|
+
{
|
|
175
|
+
const CProxyDir &dir = Dirs[i];
|
|
176
|
+
len += dir.NameLen + 1;
|
|
177
|
+
i = (unsigned)dir.ParentDir;
|
|
178
|
+
}
|
|
179
|
+
while (i != baseDirIndex);
|
|
180
|
+
|
|
181
|
+
wchar_t *p = prefix.GetBuf_SetEnd(len) + len;
|
|
182
|
+
i = dirIndex;
|
|
183
|
+
do
|
|
184
|
+
{
|
|
185
|
+
const CProxyDir &dir = Dirs[i];
|
|
186
|
+
*--p = WCHAR_PATH_SEPARATOR;
|
|
187
|
+
p -= dir.NameLen;
|
|
188
|
+
wmemcpy(p, dir.Name, dir.NameLen);
|
|
189
|
+
i = (unsigned)dir.ParentDir;
|
|
190
|
+
}
|
|
191
|
+
while (i != baseDirIndex);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
UString CProxyArc::GetDirPath_as_Prefix(const unsigned dirIndex) const
|
|
195
|
+
{
|
|
196
|
+
UString s;
|
|
197
|
+
GetDirPath_as_Prefix_from_Base(dirIndex, s, k_Proxy_RootDirIndex);
|
|
198
|
+
return s;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
void CProxyArc::AddRealIndices(const unsigned dirIndex, CUIntVector &realIndices) const
|
|
202
|
+
{
|
|
203
|
+
const CProxyDir &dir = Dirs[dirIndex];
|
|
204
|
+
if (dir.IsLeaf())
|
|
205
|
+
realIndices.Add((unsigned)dir.ArcIndex);
|
|
206
|
+
unsigned i;
|
|
207
|
+
for (i = 0; i < dir.SubDirs.Size(); i++)
|
|
208
|
+
AddRealIndices(dir.SubDirs[i], realIndices);
|
|
209
|
+
for (i = 0; i < dir.SubFiles.Size(); i++)
|
|
210
|
+
realIndices.Add(dir.SubFiles[i]);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
int CProxyArc::GetRealIndex(const unsigned dirIndex, const unsigned index) const
|
|
214
|
+
{
|
|
215
|
+
const CProxyDir &dir = Dirs[dirIndex];
|
|
216
|
+
const unsigned numDirItems = dir.SubDirs.Size();
|
|
217
|
+
if (index < numDirItems)
|
|
218
|
+
{
|
|
219
|
+
const CProxyDir &f = Dirs[dir.SubDirs[index]];
|
|
220
|
+
if (f.IsLeaf())
|
|
221
|
+
return f.ArcIndex;
|
|
222
|
+
return -1;
|
|
223
|
+
}
|
|
224
|
+
return (int)dir.SubFiles[index - numDirItems];
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
void CProxyArc::GetRealIndices_Unsorted(unsigned dirIndex,
|
|
228
|
+
const UInt32 *indices, const UInt32 numItems, CUIntVector &realIndices) const
|
|
229
|
+
{
|
|
230
|
+
const CProxyDir &dir = Dirs[dirIndex];
|
|
231
|
+
realIndices.Clear();
|
|
232
|
+
for (UInt32 i = 0; i < numItems; i++)
|
|
233
|
+
{
|
|
234
|
+
const UInt32 index = indices[i];
|
|
235
|
+
const unsigned numDirItems = dir.SubDirs.Size();
|
|
236
|
+
if (index < numDirItems)
|
|
237
|
+
AddRealIndices(dir.SubDirs[index], realIndices);
|
|
238
|
+
else
|
|
239
|
+
realIndices.Add(dir.SubFiles[index - numDirItems]);
|
|
240
|
+
}
|
|
241
|
+
// HeapSort(realIndices.NonConstData(), realIndices.Size());
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
static bool GetSize(IInArchive *archive, UInt32 index, PROPID propID, UInt64 &size)
|
|
246
|
+
{
|
|
247
|
+
size = 0;
|
|
248
|
+
NCOM::CPropVariant prop;
|
|
249
|
+
if (archive->GetProperty(index, propID, &prop) != S_OK)
|
|
250
|
+
throw 20120228;
|
|
251
|
+
return ConvertPropVariantToUInt64(prop, size);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
void CProxyArc::CalculateSizes(IInArchive *archive)
|
|
255
|
+
{
|
|
256
|
+
CUIntVector vec;
|
|
257
|
+
unsigned dirIndex = 0, i = 0;
|
|
258
|
+
for (;;)
|
|
259
|
+
{
|
|
260
|
+
CProxyDir &dir = Dirs[dirIndex];
|
|
261
|
+
if (i == 0)
|
|
262
|
+
{
|
|
263
|
+
dir.Size = dir.PackSize = 0;
|
|
264
|
+
dir.NumSubDirs = dir.SubDirs.Size();
|
|
265
|
+
dir.NumSubFiles = dir.SubFiles.Size();
|
|
266
|
+
dir.CrcIsDefined = true;
|
|
267
|
+
dir.Crc = 0;
|
|
268
|
+
|
|
269
|
+
FOR_VECTOR (k, dir.SubFiles)
|
|
270
|
+
{
|
|
271
|
+
const UInt32 index = (UInt32)dir.SubFiles[k];
|
|
272
|
+
UInt64 size, packSize;
|
|
273
|
+
const bool sizeDefined = GetSize(archive, index, kpidSize, size);
|
|
274
|
+
dir.Size += size;
|
|
275
|
+
GetSize(archive, index, kpidPackSize, packSize);
|
|
276
|
+
dir.PackSize += packSize;
|
|
277
|
+
{
|
|
278
|
+
NCOM::CPropVariant prop;
|
|
279
|
+
if (archive->GetProperty(index, kpidCRC, &prop) == S_OK)
|
|
280
|
+
{
|
|
281
|
+
if (prop.vt == VT_UI4)
|
|
282
|
+
dir.Crc += prop.ulVal;
|
|
283
|
+
else if (prop.vt != VT_EMPTY || size != 0 || !sizeDefined)
|
|
284
|
+
dir.CrcIsDefined = false;
|
|
285
|
+
}
|
|
286
|
+
else
|
|
287
|
+
dir.CrcIsDefined = false;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (i == dir.SubDirs.Size())
|
|
293
|
+
{
|
|
294
|
+
const unsigned num = vec.Size();
|
|
295
|
+
if (num < 2)
|
|
296
|
+
return;
|
|
297
|
+
dirIndex = vec[num - 2];
|
|
298
|
+
i = vec[num - 1];
|
|
299
|
+
vec.DeleteFrom(num - 2);
|
|
300
|
+
|
|
301
|
+
CProxyDir &dir2 = Dirs[dirIndex];
|
|
302
|
+
dir2.Size += dir.Size;
|
|
303
|
+
dir2.PackSize += dir.PackSize;
|
|
304
|
+
dir2.NumSubFiles += dir.NumSubFiles;
|
|
305
|
+
dir2.NumSubDirs += dir.NumSubDirs;
|
|
306
|
+
dir2.Crc += dir.Crc;
|
|
307
|
+
if (!dir.CrcIsDefined)
|
|
308
|
+
dir2.CrcIsDefined = false;
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
vec.Add(dirIndex);
|
|
313
|
+
vec.Add(i + 1);
|
|
314
|
+
dirIndex = dir.SubDirs[i];
|
|
315
|
+
i = 0;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
void CProxyArc::FreeFiles()
|
|
321
|
+
{
|
|
322
|
+
const unsigned numFiles = NumFiles;
|
|
323
|
+
NumFiles = 0;
|
|
324
|
+
CProxyFile *f = Files;
|
|
325
|
+
for (unsigned i = 0; i < numFiles; i++, f++)
|
|
326
|
+
if (f->NeedDeleteName)
|
|
327
|
+
delete [](wchar_t *)(void *)f->Name;
|
|
328
|
+
delete []Files;
|
|
329
|
+
Files = NULL;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
static void SetPath_as_LONG_PATH(UString &s,
|
|
334
|
+
const unsigned fileIndex, const bool isDir)
|
|
335
|
+
{
|
|
336
|
+
s = isDir ? "[LONG_PATH_DIR_" : "[LONG_PATH_FILE_";
|
|
337
|
+
s.Add_UInt32((UInt32)fileIndex);
|
|
338
|
+
s.Add_Char(']');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
static const UInt32 k_NumFiles_Max = 0x7fffffff - 15;
|
|
343
|
+
|
|
344
|
+
HRESULT CProxyArc::Load(const CArc &arc, IArchiveOpenCallback *progress)
|
|
345
|
+
{
|
|
346
|
+
// DWORD tickCount = GetTickCount(); for (int ttt = 0; ttt < 1; ttt++) {
|
|
347
|
+
FreeFiles();
|
|
348
|
+
Dirs.Clear();
|
|
349
|
+
Are_Changed_LongPaths = false;
|
|
350
|
+
|
|
351
|
+
Dirs.AddNew();
|
|
352
|
+
IInArchive *archive = arc.Archive;
|
|
353
|
+
UInt32 numItems;
|
|
354
|
+
RINOK(archive->GetNumberOfItems(&numItems))
|
|
355
|
+
if (numItems > k_NumFiles_Max)
|
|
356
|
+
return E_OUTOFMEMORY;
|
|
357
|
+
if (progress)
|
|
358
|
+
{
|
|
359
|
+
const UInt64 numItems64 = numItems;
|
|
360
|
+
RINOK(progress->SetTotal(&numItems64, NULL))
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
MemUsage = (UInt64)numItems * sizeof(*Files);
|
|
364
|
+
CHECK_MEM_USAGE
|
|
365
|
+
Z7_ARRAY_NEW(Files, CProxyFile, numItems)
|
|
366
|
+
memset(Files, 0, (size_t)numItems * sizeof(*Files));
|
|
367
|
+
NumFiles = numItems;
|
|
368
|
+
|
|
369
|
+
UString path, name;
|
|
370
|
+
NCOM::CPropVariant prop;
|
|
371
|
+
|
|
372
|
+
for (UInt32 i = 0; i < numItems; i++)
|
|
373
|
+
{
|
|
374
|
+
CHECK_MEM_USAGE
|
|
375
|
+
if (progress && (i & 0xFFFF) == 0)
|
|
376
|
+
{
|
|
377
|
+
const UInt64 currentItemIndex = i;
|
|
378
|
+
RINOK(progress->SetCompleted(¤tItemIndex, NULL))
|
|
379
|
+
}
|
|
380
|
+
const wchar_t *s = NULL;
|
|
381
|
+
unsigned len = 0;
|
|
382
|
+
bool isPtrName = false;
|
|
383
|
+
|
|
384
|
+
#if WCHAR_PATH_SEPARATOR != L'/'
|
|
385
|
+
wchar_t separatorChar = WCHAR_PATH_SEPARATOR;
|
|
386
|
+
#endif
|
|
387
|
+
|
|
388
|
+
#if defined(MY_CPU_LE) && defined(_WIN32)
|
|
389
|
+
// it works only if (sizeof(wchar_t) == 2)
|
|
390
|
+
if (arc.GetRawProps)
|
|
391
|
+
{
|
|
392
|
+
const void *p;
|
|
393
|
+
UInt32 size;
|
|
394
|
+
UInt32 propType;
|
|
395
|
+
if (arc.GetRawProps->GetRawProp(i, kpidPath, &p, &size, &propType) == S_OK
|
|
396
|
+
&& propType == NPropDataType::kUtf16z
|
|
397
|
+
&& size > 2)
|
|
398
|
+
{
|
|
399
|
+
// is (size <= 2), it's empty name, and we call default arc.GetItemPath();
|
|
400
|
+
len = size / 2 - 1;
|
|
401
|
+
s = (const wchar_t *)p;
|
|
402
|
+
isPtrName = true;
|
|
403
|
+
#if WCHAR_PATH_SEPARATOR != L'/'
|
|
404
|
+
separatorChar = L'/'; // 0
|
|
405
|
+
#endif
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (!s)
|
|
409
|
+
#endif
|
|
410
|
+
{
|
|
411
|
+
len = 0;
|
|
412
|
+
prop.Clear();
|
|
413
|
+
RINOK(arc.Archive->GetProperty(i, kpidPath, &prop))
|
|
414
|
+
if (prop.vt == VT_BSTR)
|
|
415
|
+
{
|
|
416
|
+
s = prop.bstrVal;
|
|
417
|
+
len = ::SysStringLen(prop.bstrVal);
|
|
418
|
+
}
|
|
419
|
+
else if (prop.vt != VT_EMPTY)
|
|
420
|
+
return E_FAIL;
|
|
421
|
+
if (len == 0)
|
|
422
|
+
{
|
|
423
|
+
RINOK(arc.GetItem_DefaultPath(i, path))
|
|
424
|
+
len = path.Len();
|
|
425
|
+
s = path;
|
|
426
|
+
}
|
|
427
|
+
/*
|
|
428
|
+
RINOK(arc.GetItemPath(i, path));
|
|
429
|
+
len = path.Len();
|
|
430
|
+
s = path;
|
|
431
|
+
*/
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
unsigned curItem = 0;
|
|
435
|
+
/*
|
|
436
|
+
if (arc.Ask_Deleted)
|
|
437
|
+
{
|
|
438
|
+
bool isDeleted = false;
|
|
439
|
+
RINOK(Archive_IsItem_Deleted(archive, i, isDeleted));
|
|
440
|
+
if (isDeleted)
|
|
441
|
+
curItem = AddDirSubItem(curItem, (UInt32)(Int32)-1, false, L"[DELETED]");
|
|
442
|
+
}
|
|
443
|
+
*/
|
|
444
|
+
unsigned namePos = 0;
|
|
445
|
+
unsigned numLevels = 0;
|
|
446
|
+
bool is_Changed_LongPath = false;
|
|
447
|
+
bool isDir;
|
|
448
|
+
RINOK(Archive_IsItem_Dir(archive, i, isDir))
|
|
449
|
+
|
|
450
|
+
if (len >= (1 << 15))
|
|
451
|
+
{
|
|
452
|
+
Are_Changed_LongPaths = true;
|
|
453
|
+
is_Changed_LongPath = true;
|
|
454
|
+
SetPath_as_LONG_PATH(path, i, isDir);
|
|
455
|
+
s = path;
|
|
456
|
+
len = path.Len();
|
|
457
|
+
isPtrName = false;
|
|
458
|
+
}
|
|
459
|
+
else for (unsigned j = 0; j < len; j++)
|
|
460
|
+
{
|
|
461
|
+
const wchar_t c = s[j];
|
|
462
|
+
if (c == L'/'
|
|
463
|
+
#if WCHAR_PATH_SEPARATOR != L'/'
|
|
464
|
+
|| (c == separatorChar)
|
|
465
|
+
#endif
|
|
466
|
+
)
|
|
467
|
+
{
|
|
468
|
+
const unsigned kLevelLimit = 1 << 10;
|
|
469
|
+
if (numLevels <= kLevelLimit)
|
|
470
|
+
{
|
|
471
|
+
if (numLevels == kLevelLimit)
|
|
472
|
+
{
|
|
473
|
+
name = "[LONG_PATH]";
|
|
474
|
+
Are_Changed_LongPaths = true;
|
|
475
|
+
is_Changed_LongPath = true;
|
|
476
|
+
}
|
|
477
|
+
else
|
|
478
|
+
name.SetFrom(s + namePos, j - namePos);
|
|
479
|
+
// 22.00: we can normalize dir here
|
|
480
|
+
// NArchive::NItemName::NormalizeSlashes_in_FileName_for_OsPath(name);
|
|
481
|
+
curItem = AddDir(curItem, -1, name);
|
|
482
|
+
if (is_Changed_LongPath)
|
|
483
|
+
Dirs[curItem].Is_Changed_LongPath = true;
|
|
484
|
+
}
|
|
485
|
+
namePos = j + 1;
|
|
486
|
+
numLevels++;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/*
|
|
491
|
+
that code must be implemented to hide alt streams in list.
|
|
492
|
+
if (arc.Ask_AltStreams)
|
|
493
|
+
{
|
|
494
|
+
bool isAltStream;
|
|
495
|
+
RINOK(Archive_IsItem_AltStream(archive, i, isAltStream));
|
|
496
|
+
if (isAltStream){}
|
|
497
|
+
}
|
|
498
|
+
*/
|
|
499
|
+
CProxyFile &f = Files[i];
|
|
500
|
+
f.Construct(); // optional because memset() in code above
|
|
501
|
+
f.NameLen = len - namePos;
|
|
502
|
+
s += namePos;
|
|
503
|
+
|
|
504
|
+
if (isPtrName)
|
|
505
|
+
f.Name = s;
|
|
506
|
+
else
|
|
507
|
+
{
|
|
508
|
+
MemUsage += 16 + (size_t)f.NameLen * sizeof(*f.Name);
|
|
509
|
+
f.Name = AllocStringAndCopy(s, f.NameLen);
|
|
510
|
+
f.NeedDeleteName = true;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
if (isDir)
|
|
514
|
+
{
|
|
515
|
+
name = s;
|
|
516
|
+
// 22.00: we can normalize dir here
|
|
517
|
+
// NArchive::NItemName::NormalizeSlashes_in_FileName_for_OsPath(name);
|
|
518
|
+
curItem = AddDir(curItem, (int)i, name);
|
|
519
|
+
if (is_Changed_LongPath)
|
|
520
|
+
Dirs[curItem].Is_Changed_LongPath = true;
|
|
521
|
+
}
|
|
522
|
+
else
|
|
523
|
+
{
|
|
524
|
+
MemUsage += Dirs[curItem].SubFiles.IsEmpty() ? 16u : 4u + 1;
|
|
525
|
+
Dirs[curItem].SubFiles.Add(i);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
FOR_VECTOR (k, Dirs)
|
|
530
|
+
{
|
|
531
|
+
MergeSubDirs(Dirs[k]);
|
|
532
|
+
Dirs[k].SubDirs2.ClearAndFree(); // these arryas are small
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
CalculateSizes(archive);
|
|
536
|
+
if (progress)
|
|
537
|
+
{
|
|
538
|
+
const UInt64 numItems64 = numItems;
|
|
539
|
+
RINOK(progress->SetCompleted(&numItems64, NULL))
|
|
540
|
+
}
|
|
541
|
+
// } char s[128]; sprintf(s, "Load archive: %7d ms", GetTickCount() - tickCount); OutputDebugStringA(s);
|
|
542
|
+
return S_OK;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
// ---------- for Tree-mode archive ----------
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
void SetDirPrefix_as_LONG_PATH(UString &s, unsigned fileIndex,
|
|
551
|
+
const bool asAltDirPrefix, const bool isDir)
|
|
552
|
+
{
|
|
553
|
+
SetPath_as_LONG_PATH(s, fileIndex, isDir);
|
|
554
|
+
s.Add_Char(asAltDirPrefix ? ':' : CHAR_PATH_SEPARATOR);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
bool CProxyArc2::IsAltDir(const unsigned dirIndex) const
|
|
559
|
+
{
|
|
560
|
+
if (dirIndex == k_Proxy2_RootDirIndex)
|
|
561
|
+
return false;
|
|
562
|
+
if (dirIndex == k_Proxy2_AltRootDirIndex)
|
|
563
|
+
return true;
|
|
564
|
+
const CProxyDir2 &dir = Dirs[dirIndex];
|
|
565
|
+
if ((unsigned)dir.ArcIndex >= NumFiles) throw 1; // optional
|
|
566
|
+
return (int)dirIndex == Files[(unsigned)dir.ArcIndex].AltDirIndex;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
/* called from:
|
|
571
|
+
Agent.cpp:
|
|
572
|
+
CAgentFolder::Extract()
|
|
573
|
+
ArchiveFolderOut.cpp:
|
|
574
|
+
CAgentFolder::GetPathParts()
|
|
575
|
+
CAgentFolder::CommonUpdateOperation()
|
|
576
|
+
*/
|
|
577
|
+
void CProxyArc2::GetDirPathParts(const unsigned dirIndex, UStringVector &pathParts, bool &isAltStreamDir) const
|
|
578
|
+
{
|
|
579
|
+
pathParts.Clear();
|
|
580
|
+
isAltStreamDir = false;
|
|
581
|
+
if (dirIndex == k_Proxy2_RootDirIndex)
|
|
582
|
+
return;
|
|
583
|
+
if (dirIndex == k_Proxy2_AltRootDirIndex)
|
|
584
|
+
{
|
|
585
|
+
isAltStreamDir = true;
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
int fileIndex = Dirs[dirIndex].ArcIndex;
|
|
589
|
+
do
|
|
590
|
+
{
|
|
591
|
+
if ((unsigned)fileIndex >= NumFiles) throw 1; // optional
|
|
592
|
+
const CProxyFile2 &file = Files[(unsigned)fileIndex];
|
|
593
|
+
// if (pathParts.Size() == 0) // optional
|
|
594
|
+
if ((int)dirIndex == file.AltDirIndex)
|
|
595
|
+
isAltStreamDir = true;
|
|
596
|
+
// that code is not optimized for big number of loop iterations.
|
|
597
|
+
pathParts.Insert(0, file.Name);
|
|
598
|
+
fileIndex = file.Parent;
|
|
599
|
+
}
|
|
600
|
+
while (fileIndex != -1);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
// if Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX is defined,
|
|
605
|
+
// { this code is unused mostly. 7-Zip gets prefix via GetItemPrefix(). }
|
|
606
|
+
void CProxyArc2::GetDirPath_as_Prefix_from_Base(const unsigned dirIndex,
|
|
607
|
+
UString &prefix, const unsigned baseDirIndex, const unsigned lenLimit) const
|
|
608
|
+
{
|
|
609
|
+
prefix.Empty();
|
|
610
|
+
if (dirIndex == baseDirIndex)
|
|
611
|
+
return;
|
|
612
|
+
if (dirIndex == k_Proxy2_AltRootDirIndex)
|
|
613
|
+
{
|
|
614
|
+
// (baseDirIndex == k_Proxy2_RootDirIndex) is expected
|
|
615
|
+
prefix.Add_Colon();
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
const CProxyDir2 &dir = Dirs[dirIndex];
|
|
620
|
+
int arcIndex = dir.ArcIndex;
|
|
621
|
+
if (arcIndex != -1)
|
|
622
|
+
{
|
|
623
|
+
const CProxyDir2 &baseDir = Dirs[baseDirIndex];
|
|
624
|
+
unsigned len = dir.PrefixLen - baseDir.PrefixLen;
|
|
625
|
+
if (len >= lenLimit)
|
|
626
|
+
{
|
|
627
|
+
const CProxyFile2 &file = Files[(unsigned)arcIndex];
|
|
628
|
+
SetDirPrefix_as_LONG_PATH(prefix, (unsigned)arcIndex,
|
|
629
|
+
(int)dirIndex == file.AltDirIndex, // asAltDir,
|
|
630
|
+
file.IsDir());
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
const int baseArcIndex = baseDir.ArcIndex;
|
|
634
|
+
wchar_t * const p = prefix.GetBuf_SetEnd(len);
|
|
635
|
+
do
|
|
636
|
+
{
|
|
637
|
+
const CProxyFile2 &file = Files[(unsigned)arcIndex];
|
|
638
|
+
wchar_t c = CHAR_PATH_SEPARATOR;
|
|
639
|
+
if ((int)dirIndex == file.AltDirIndex)
|
|
640
|
+
c = ':';
|
|
641
|
+
if (len <= file.NameLen)
|
|
642
|
+
break;
|
|
643
|
+
p[--len] = c;
|
|
644
|
+
len -= file.NameLen;
|
|
645
|
+
wmemcpy(p + len, file.Name, file.NameLen);
|
|
646
|
+
// slash normalization can be omitted, if we want max speed of sorting operation:
|
|
647
|
+
NArchive::NItemName::NormalizeSlashes_in_FileName_for_OsPath(p + len, file.NameLen);
|
|
648
|
+
arcIndex = file.Parent;
|
|
649
|
+
if (arcIndex == baseArcIndex)
|
|
650
|
+
{
|
|
651
|
+
if (len)
|
|
652
|
+
break;
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
while (arcIndex != -1);
|
|
657
|
+
}
|
|
658
|
+
throw 1;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
/* called from:
|
|
663
|
+
Agent.cpp:
|
|
664
|
+
CAgentFolder::GetFullPrefix()
|
|
665
|
+
CAgent::RenameItem() in AgentOut.cpp
|
|
666
|
+
CAgentFolder::GetFolderProperty(kpidPath)
|
|
667
|
+
GetFolderPath() in PanelFolderChange.cpp
|
|
668
|
+
LoadFullPath()
|
|
669
|
+
AgentOut.cpp:
|
|
670
|
+
CAgent::SetFolder()
|
|
671
|
+
CAgentFolder::CommonUpdateOperation() in ArchiveFolderOut.cpp
|
|
672
|
+
CAgent::CreateFolder()
|
|
673
|
+
*/
|
|
674
|
+
UString CProxyArc2::GetDirPath_as_Prefix(const unsigned dirIndex, const bool canReducePath) const
|
|
675
|
+
{
|
|
676
|
+
UString s;
|
|
677
|
+
const unsigned lenLimit = canReducePath ? (1u << 14) : (1u << 28);
|
|
678
|
+
GetDirPath_as_Prefix_from_Base(dirIndex, s, k_Proxy2_RootDirIndex, lenLimit);
|
|
679
|
+
return s;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
void CProxyArc2::AddRealIndices_of_ArcItem(const unsigned arcIndex,
|
|
684
|
+
const bool includeAltStreams, const bool includeDirSubItems,
|
|
685
|
+
CUIntVector &realIndices) const
|
|
686
|
+
{
|
|
687
|
+
const CProxyFile2 &file = Files[arcIndex];
|
|
688
|
+
if (!file.IsAux)
|
|
689
|
+
realIndices.Add(arcIndex);
|
|
690
|
+
if (includeDirSubItems && file.DirIndex != -1)
|
|
691
|
+
AddRealIndices_of_Dir((unsigned)file.DirIndex, includeAltStreams, realIndices);
|
|
692
|
+
if (includeAltStreams && file.AltDirIndex != -1)
|
|
693
|
+
AddRealIndices_of_Dir((unsigned)file.AltDirIndex, includeAltStreams, realIndices);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
void CProxyArc2::AddRealIndices_of_Dir(unsigned dirIndex,
|
|
698
|
+
const bool includeAltStreams,
|
|
699
|
+
CUIntVector &realIndices) const
|
|
700
|
+
{
|
|
701
|
+
CUIntVector vec;
|
|
702
|
+
unsigned i = 0;
|
|
703
|
+
for (;;)
|
|
704
|
+
{
|
|
705
|
+
const CProxyDir2 &dir = Dirs[dirIndex];
|
|
706
|
+
if (i == dir.Items.Size())
|
|
707
|
+
{
|
|
708
|
+
const unsigned num = vec.Size();
|
|
709
|
+
if (num < 2)
|
|
710
|
+
return;
|
|
711
|
+
dirIndex = vec[num - 2];
|
|
712
|
+
i = vec[num - 1];
|
|
713
|
+
vec.DeleteFrom(num - 2);
|
|
714
|
+
continue;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
const unsigned arcIndex = dir.Items[i];
|
|
718
|
+
i++;
|
|
719
|
+
const CProxyFile2 &file = Files[arcIndex];
|
|
720
|
+
if (!file.IsAux)
|
|
721
|
+
realIndices.Add(arcIndex);
|
|
722
|
+
if (includeAltStreams && file.AltDirIndex != -1)
|
|
723
|
+
AddRealIndices_of_Dir((unsigned)file.AltDirIndex, includeAltStreams, realIndices);
|
|
724
|
+
if (file.DirIndex != -1)
|
|
725
|
+
{
|
|
726
|
+
vec.Add(dirIndex);
|
|
727
|
+
vec.Add(i);
|
|
728
|
+
dirIndex = (unsigned)file.DirIndex;
|
|
729
|
+
i = 0;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
void CProxyArc2::GetRealIndices_Unsorted(const unsigned dirIndex,
|
|
736
|
+
const UInt32 *indices, const UInt32 numItems,
|
|
737
|
+
const bool includeAltStreams,
|
|
738
|
+
CUIntVector &realIndices) const
|
|
739
|
+
{
|
|
740
|
+
const CUIntVector &items = Dirs[dirIndex].Items;
|
|
741
|
+
realIndices.Clear();
|
|
742
|
+
for (UInt32 i = 0; i < numItems; i++)
|
|
743
|
+
AddRealIndices_of_ArcItem(items[indices[i]],
|
|
744
|
+
includeAltStreams,
|
|
745
|
+
true, // includeDirSubItems
|
|
746
|
+
realIndices);
|
|
747
|
+
// HeapSort(realIndices.NonConstData(), realIndices.Size());
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
CProxyDir2::CProxyDir2():
|
|
752
|
+
ArcIndex(-1),
|
|
753
|
+
PrefixLen(0),
|
|
754
|
+
Size(0),
|
|
755
|
+
PackSize(0),
|
|
756
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
757
|
+
IsLongPath(false),
|
|
758
|
+
#endif
|
|
759
|
+
CrcIsDefined(true),
|
|
760
|
+
Crc(0),
|
|
761
|
+
NumSubDirs(0),
|
|
762
|
+
NumSubFiles(0)
|
|
763
|
+
{}
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
HRESULT CProxyArc2::CalculateSizes(unsigned dirIndex, IInArchive *archive
|
|
767
|
+
, IProgress *progress, const UInt64 *completed, unsigned &progressCounter)
|
|
768
|
+
{
|
|
769
|
+
CUIntVector vec;
|
|
770
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
771
|
+
UString prefix, name;
|
|
772
|
+
#endif
|
|
773
|
+
unsigned i = 0;
|
|
774
|
+
for (;;)
|
|
775
|
+
{
|
|
776
|
+
CProxyDir2 &dir = Dirs[dirIndex];
|
|
777
|
+
// if (i == 0) {} // we can init some (dir) variables here instead of constructor
|
|
778
|
+
|
|
779
|
+
if (i == dir.Items.Size())
|
|
780
|
+
{
|
|
781
|
+
const unsigned num = vec.Size();
|
|
782
|
+
if (num < 2)
|
|
783
|
+
return S_OK;
|
|
784
|
+
dirIndex = vec[num - 2];
|
|
785
|
+
i = vec[num - 1];
|
|
786
|
+
vec.DeleteFrom(num - 2);
|
|
787
|
+
|
|
788
|
+
CProxyDir2 &dir2 = Dirs[dirIndex];
|
|
789
|
+
dir2.Size += dir.Size;
|
|
790
|
+
dir2.PackSize += dir.PackSize;
|
|
791
|
+
dir2.NumSubFiles += dir.NumSubFiles;
|
|
792
|
+
dir2.NumSubDirs += dir.NumSubDirs;
|
|
793
|
+
dir2.Crc += dir.Crc;
|
|
794
|
+
if (!dir.CrcIsDefined)
|
|
795
|
+
dir2.CrcIsDefined = false;
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
if (progress && (++progressCounter & 0xfffff) == 0)
|
|
800
|
+
RINOK(progress->SetCompleted(completed))
|
|
801
|
+
|
|
802
|
+
const UInt32 index = dir.Items[i];
|
|
803
|
+
i++;
|
|
804
|
+
UInt64 size, packSize;
|
|
805
|
+
const bool sizeDefined = GetSize(archive, index, kpidSize, size);
|
|
806
|
+
dir.Size += size;
|
|
807
|
+
GetSize(archive, index, kpidPackSize, packSize);
|
|
808
|
+
dir.PackSize += packSize;
|
|
809
|
+
{
|
|
810
|
+
NCOM::CPropVariant prop;
|
|
811
|
+
if (archive->GetProperty(index, kpidCRC, &prop) == S_OK)
|
|
812
|
+
{
|
|
813
|
+
if (prop.vt == VT_UI4)
|
|
814
|
+
dir.Crc += prop.ulVal;
|
|
815
|
+
else if (prop.vt != VT_EMPTY || size != 0 || !sizeDefined)
|
|
816
|
+
dir.CrcIsDefined = false;
|
|
817
|
+
}
|
|
818
|
+
else
|
|
819
|
+
dir.CrcIsDefined = false;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
const CProxyFile2 &subFile = Files[index];
|
|
823
|
+
|
|
824
|
+
if (subFile.NameLen >= (1u << 30) - dir.PrefixLen)
|
|
825
|
+
return E_NOTIMPL;
|
|
826
|
+
const unsigned prefixLen = dir.PrefixLen + subFile.NameLen + 1;
|
|
827
|
+
|
|
828
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
829
|
+
bool isLongPath = dir.IsLongPath;
|
|
830
|
+
if (subFile.AltDirIndex != -1 || subFile.DirIndex != -1)
|
|
831
|
+
{
|
|
832
|
+
// 22.00: we normalize name
|
|
833
|
+
name = subFile.Name;
|
|
834
|
+
NArchive::NItemName::NormalizeSlashes_in_FileName_for_OsPath(name);
|
|
835
|
+
if (!isLongPath)
|
|
836
|
+
{
|
|
837
|
+
prefix = dir.PathPrefix;
|
|
838
|
+
prefix += name;
|
|
839
|
+
if (prefix.Len() >= (1u << 11)) // CProxyDir2::PathPrefix limit
|
|
840
|
+
isLongPath = true;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
#endif
|
|
844
|
+
|
|
845
|
+
if (subFile.AltDirIndex != -1)
|
|
846
|
+
{
|
|
847
|
+
CProxyDir2 &f = Dirs[subFile.AltDirIndex];
|
|
848
|
+
f.PrefixLen = prefixLen;
|
|
849
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
850
|
+
f.IsLongPath = isLongPath;
|
|
851
|
+
if (isLongPath)
|
|
852
|
+
SetDirPrefix_as_LONG_PATH(prefix, index,
|
|
853
|
+
true, // asAltDirPrefix
|
|
854
|
+
subFile.IsDir());
|
|
855
|
+
else
|
|
856
|
+
prefix.Add_Colon();
|
|
857
|
+
f.PathPrefix = prefix;
|
|
858
|
+
UpdateMemUsage_with_StringLen(f.PathPrefix.Len());
|
|
859
|
+
CHECK_MEM_USAGE
|
|
860
|
+
prefix.DeleteBack(); // we delete Colon character
|
|
861
|
+
#endif
|
|
862
|
+
RINOK(CalculateSizes((unsigned)subFile.AltDirIndex, archive, progress, completed, progressCounter))
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (subFile.DirIndex == -1)
|
|
866
|
+
dir.NumSubFiles++;
|
|
867
|
+
else
|
|
868
|
+
{
|
|
869
|
+
CProxyDir2 &f = Dirs[subFile.DirIndex];
|
|
870
|
+
f.PrefixLen = prefixLen;
|
|
871
|
+
dir.NumSubDirs++;
|
|
872
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
873
|
+
f.IsLongPath = isLongPath;
|
|
874
|
+
if (isLongPath)
|
|
875
|
+
SetDirPrefix_as_LONG_PATH(prefix, index,
|
|
876
|
+
false, // asAltDirPrefix
|
|
877
|
+
true); // isDir
|
|
878
|
+
else
|
|
879
|
+
prefix.Add_PathSepar();
|
|
880
|
+
f.PathPrefix = prefix;
|
|
881
|
+
UpdateMemUsage_with_StringLen(f.PathPrefix.Len());
|
|
882
|
+
CHECK_MEM_USAGE
|
|
883
|
+
#endif
|
|
884
|
+
if (vec.Size() >= (1u << 28)) // tree levels limit
|
|
885
|
+
return E_NOTIMPL;
|
|
886
|
+
vec.Add(dirIndex);
|
|
887
|
+
vec.Add(i);
|
|
888
|
+
dirIndex = (unsigned)subFile.DirIndex;
|
|
889
|
+
i = 0;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
void CProxyArc2::FreeFiles()
|
|
896
|
+
{
|
|
897
|
+
const unsigned numFiles = NumFiles;
|
|
898
|
+
NumFiles = 0;
|
|
899
|
+
CProxyFile2 *f = Files;
|
|
900
|
+
for (unsigned i = 0; i < numFiles; i++, f++)
|
|
901
|
+
if (f->NeedDeleteName)
|
|
902
|
+
delete [](wchar_t *)(void *)f->Name;
|
|
903
|
+
delete []Files;
|
|
904
|
+
Files = NULL;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
void CProxyArc2::AddDir(int arcIndex)
|
|
909
|
+
{
|
|
910
|
+
Dirs.AddNew().ArcIndex = arcIndex;
|
|
911
|
+
MemUsage += sizeof(Dirs[0]) + sizeof(void *) + 11;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
HRESULT CProxyArc2::Load(const CArc &arc, IProgress *progress)
|
|
915
|
+
{
|
|
916
|
+
if (!arc.GetRawProps)
|
|
917
|
+
return E_FAIL;
|
|
918
|
+
// DWORD tickCount = GetTickCount(); for (int ttt = 0; ttt < 1; ttt++) {
|
|
919
|
+
|
|
920
|
+
Dirs.Clear();
|
|
921
|
+
FreeFiles();
|
|
922
|
+
|
|
923
|
+
IInArchive *archive = arc.Archive;
|
|
924
|
+
UInt32 numItems;
|
|
925
|
+
RINOK(archive->GetNumberOfItems(&numItems))
|
|
926
|
+
if (numItems > k_NumFiles_Max)
|
|
927
|
+
return E_OUTOFMEMORY;
|
|
928
|
+
if (progress)
|
|
929
|
+
RINOK(progress->SetTotal(numItems))
|
|
930
|
+
Dirs.AddNew(); // Dirs[0] - root dir
|
|
931
|
+
Dirs.AddNew() // Dirs[1] - for alt streams of root dir
|
|
932
|
+
#ifdef Z7_AGENT_PROXY2_USE_DIR_PATH_PREFIX
|
|
933
|
+
.PathPrefix.Add_Colon() // = ':';
|
|
934
|
+
#endif
|
|
935
|
+
;
|
|
936
|
+
|
|
937
|
+
MemUsage = (UInt64)numItems * sizeof(*Files);
|
|
938
|
+
CHECK_MEM_USAGE
|
|
939
|
+
Z7_ARRAY_NEW(Files, CProxyFile2, numItems)
|
|
940
|
+
memset(Files, 0, (size_t)numItems * sizeof(*Files));
|
|
941
|
+
NumFiles = numItems;
|
|
942
|
+
|
|
943
|
+
UString fileName;
|
|
944
|
+
UString tempUString;
|
|
945
|
+
AString tempAString;
|
|
946
|
+
|
|
947
|
+
UInt32 i;
|
|
948
|
+
for (i = 0; i < numItems; i++)
|
|
949
|
+
{
|
|
950
|
+
CHECK_MEM_USAGE
|
|
951
|
+
if (progress && (i & 0xFFFFF) == 0)
|
|
952
|
+
{
|
|
953
|
+
const UInt64 currentItemIndex = i;
|
|
954
|
+
RINOK(progress->SetCompleted(¤tItemIndex))
|
|
955
|
+
}
|
|
956
|
+
CProxyFile2 &file = Files[i];
|
|
957
|
+
file.Construct();
|
|
958
|
+
|
|
959
|
+
const void *p;
|
|
960
|
+
UInt32 size;
|
|
961
|
+
UInt32 propType;
|
|
962
|
+
RINOK(arc.GetRawProps->GetRawProp(i, kpidName, &p, &size, &propType))
|
|
963
|
+
|
|
964
|
+
#ifdef MY_CPU_LE
|
|
965
|
+
if (p && propType == PROP_DATA_TYPE_wchar_t_PTR_Z_LE)
|
|
966
|
+
{
|
|
967
|
+
file.Name = (const wchar_t *)p;
|
|
968
|
+
file.NameLen = 0;
|
|
969
|
+
if (size >= sizeof(wchar_t))
|
|
970
|
+
file.NameLen = size / (unsigned)sizeof(wchar_t) - 1;
|
|
971
|
+
}
|
|
972
|
+
else
|
|
973
|
+
#endif
|
|
974
|
+
{
|
|
975
|
+
const wchar_t *s;
|
|
976
|
+
unsigned len;
|
|
977
|
+
if (p && propType == NPropDataType::kUtf8z)
|
|
978
|
+
{
|
|
979
|
+
tempAString = (const char *)p;
|
|
980
|
+
ConvertUTF8ToUnicode(tempAString, tempUString);
|
|
981
|
+
s = tempUString.Ptr();
|
|
982
|
+
len = tempUString.Len();
|
|
983
|
+
}
|
|
984
|
+
else
|
|
985
|
+
{
|
|
986
|
+
NCOM::CPropVariant prop;
|
|
987
|
+
RINOK(arc.Archive->GetProperty(i, kpidName, &prop))
|
|
988
|
+
if (prop.vt == VT_BSTR)
|
|
989
|
+
s = prop.bstrVal;
|
|
990
|
+
else if (prop.vt == VT_EMPTY)
|
|
991
|
+
s = L"[Content]";
|
|
992
|
+
else
|
|
993
|
+
return E_FAIL;
|
|
994
|
+
len = MyStringLen(s);
|
|
995
|
+
}
|
|
996
|
+
file.NameLen = len;
|
|
997
|
+
file.Name = AllocStringAndCopy(s, len);
|
|
998
|
+
UpdateMemUsage_with_StringLen(len);
|
|
999
|
+
file.NeedDeleteName = true;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
UInt32 parent = (UInt32)(Int32)-1;
|
|
1003
|
+
UInt32 parentType = 0;
|
|
1004
|
+
RINOK(arc.GetRawProps->GetParent(i, &parent, &parentType))
|
|
1005
|
+
if (parent >= numItems && parent != (UInt32)(Int32)-1)
|
|
1006
|
+
return E_FAIL;
|
|
1007
|
+
file.Parent = (Int32)parent;
|
|
1008
|
+
/*
|
|
1009
|
+
if (arc.Ask_Deleted)
|
|
1010
|
+
{
|
|
1011
|
+
bool isDeleted = false;
|
|
1012
|
+
RINOK(Archive_IsItem_Deleted(archive, i, isDeleted))
|
|
1013
|
+
if (isDeleted) {}
|
|
1014
|
+
}
|
|
1015
|
+
*/
|
|
1016
|
+
bool isDir;
|
|
1017
|
+
RINOK(Archive_IsItem_Dir(archive, i, isDir))
|
|
1018
|
+
if (isDir)
|
|
1019
|
+
{
|
|
1020
|
+
file.DirIndex = (int)Dirs.Size();
|
|
1021
|
+
AddDir((int)i); // arcIndex
|
|
1022
|
+
}
|
|
1023
|
+
if (arc.Ask_AltStream)
|
|
1024
|
+
RINOK(Archive_IsItem_AltStream(archive, i, file.IsAltStream))
|
|
1025
|
+
// if (file.IsAltStream) file.Parent = -1; // for debug
|
|
1026
|
+
#if 1 // 1 to use AUX: v24.06 : we will ignore AUX items for AddRealIndices_of_ArcItem() : for CRC calculation.
|
|
1027
|
+
if (arc.Ask_Aux)
|
|
1028
|
+
RINOK(Archive_IsItem_Aux(archive, i, file.IsAux))
|
|
1029
|
+
#endif
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
for (i = 0; i < numItems; i++)
|
|
1033
|
+
{
|
|
1034
|
+
CProxyFile2 &file = Files[i];
|
|
1035
|
+
int dirIndex;
|
|
1036
|
+
|
|
1037
|
+
if (file.IsAltStream)
|
|
1038
|
+
{
|
|
1039
|
+
if (file.Parent == -1)
|
|
1040
|
+
dirIndex = k_Proxy2_AltRootDirIndex;
|
|
1041
|
+
else
|
|
1042
|
+
{
|
|
1043
|
+
int &folderIndex2 = Files[(unsigned)file.Parent].AltDirIndex;
|
|
1044
|
+
if (folderIndex2 == -1)
|
|
1045
|
+
{
|
|
1046
|
+
folderIndex2 = (int)Dirs.Size();
|
|
1047
|
+
AddDir(file.Parent); // arcIndex
|
|
1048
|
+
}
|
|
1049
|
+
dirIndex = folderIndex2;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
else
|
|
1053
|
+
{
|
|
1054
|
+
if (file.Parent == -1)
|
|
1055
|
+
dirIndex = k_Proxy2_RootDirIndex;
|
|
1056
|
+
else
|
|
1057
|
+
{
|
|
1058
|
+
dirIndex = Files[(unsigned)file.Parent].DirIndex;
|
|
1059
|
+
if (dirIndex == -1)
|
|
1060
|
+
return E_FAIL;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
MemUsage += Dirs[dirIndex].Items.IsEmpty() ? 16u : 4u + 1;
|
|
1065
|
+
CHECK_MEM_USAGE
|
|
1066
|
+
Dirs[dirIndex].Items.Add(i);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
unsigned progressCounter = 0;
|
|
1070
|
+
for (i = 0; i < k_Proxy2_NumRootDirs; i++)
|
|
1071
|
+
{
|
|
1072
|
+
const UInt64 numItems64 = numItems;
|
|
1073
|
+
RINOK(CalculateSizes(i, archive, progress, &numItems64, progressCounter))
|
|
1074
|
+
}
|
|
1075
|
+
// OutputDebugStringA("finished");
|
|
1076
|
+
|
|
1077
|
+
// } char s[128]; sprintf(s, "Load archive: %7d ms", GetTickCount() - tickCount); OutputDebugStringA(s);
|
|
1078
|
+
return S_OK;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
int CProxyArc2::FindItem(const unsigned dirIndex, const wchar_t *name, bool foldersOnly) const
|
|
1082
|
+
{
|
|
1083
|
+
int index = -1;
|
|
1084
|
+
const CUIntVector &subFiles = Dirs[dirIndex].Items;
|
|
1085
|
+
FOR_VECTOR (i, subFiles)
|
|
1086
|
+
{
|
|
1087
|
+
const CProxyFile2 &file = Files[subFiles[i]];
|
|
1088
|
+
if (foldersOnly && file.DirIndex == -1)
|
|
1089
|
+
continue;
|
|
1090
|
+
if (CompareFileNames(file.Name, name) != 0)
|
|
1091
|
+
continue;
|
|
1092
|
+
if (MyStringCompare(file.Name, name) == 0)
|
|
1093
|
+
return (int)i;
|
|
1094
|
+
if (index == -1)
|
|
1095
|
+
index = (int)i;
|
|
1096
|
+
}
|
|
1097
|
+
return index;
|
|
1098
|
+
}
|