react-native-update 10.34.3 → 10.34.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/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +34 -172
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +4 -4
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +63 -379
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +170 -415
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +10 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +1 -13
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +18 -171
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +4 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +7 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +4 -15
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +12 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +4 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +219 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +105 -155
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +236 -363
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +317 -347
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +181 -295
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -9
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +14 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +32 -162
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +22 -89
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +13 -237
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +14 -194
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +10 -30
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +3 -458
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +71 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +3 -3
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +110 -484
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +193 -835
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +50 -99
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +4 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +8 -147
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +6 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +25 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +113 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +97 -163
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +39 -49
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +15 -15
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +2 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +4 -8
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +57 -72
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +13 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +100 -311
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +72 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +487 -888
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +28 -45
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +247 -812
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +544 -1265
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +38 -123
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -115
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +102 -272
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +12 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +4 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +5 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/{divsufsort.cpp → divsufsort.c} +8 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +164 -91
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +102 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +13 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +97 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +44 -23
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +89 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +55 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +381 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +47 -110
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +4 -11
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +26 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +25 -103
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +130 -271
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +7 -17
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +37 -628
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +43 -203
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +10 -14
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +7 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +46 -132
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +9 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +299 -650
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +82 -120
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +7 -87
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +9 -119
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +6 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +15 -192
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +367 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +56 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +31 -225
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +94 -566
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +28 -222
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +117 -228
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +173 -678
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +22 -103
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +167 -485
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +6 -8
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +30 -39
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +217 -232
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +68 -404
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +6 -9
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +79 -163
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +78 -160
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +58 -215
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +6 -15
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +23 -46
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +89 -311
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +68 -191
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +8 -30
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +108 -926
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +96 -246
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +8 -33
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +144 -177
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +42 -228
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +182 -377
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +143 -622
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +40 -81
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +58 -163
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +48 -9
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +15 -228
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +133 -885
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +78 -428
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +31 -136
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +62 -53
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +495 -1114
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +25 -64
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +400 -969
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +24 -37
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +48 -25
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +7 -12
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +7 -8
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +83 -96
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +9 -11
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +92 -96
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +9 -12
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +4 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +6 -3
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +206 -384
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +8 -11
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +315 -489
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +9 -18
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +3 -5
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +14 -21
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +87 -90
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +25 -28
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +88 -74
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +20 -21
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +34 -118
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +293 -712
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +70 -109
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +116 -237
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +95 -245
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +5 -122
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +4 -24
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +143 -387
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +7 -67
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +114 -241
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +7 -4
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +14 -731
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +14 -204
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.c +396 -0
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +2 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +79 -282
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +7 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +3 -7
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +75 -32
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +56 -111
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -24
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -2
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +41 -18
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +2 -30
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +6 -7
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +2 -27
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +7 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +22 -39
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +2 -9
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +1 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +3 -5
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +47 -129
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +43 -97
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +8 -8
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +36 -228
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +295 -405
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +139 -194
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +11 -15
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +134 -200
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +1 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +13 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +90 -120
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +6 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +140 -183
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +20 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +57 -78
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +44 -169
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +17 -57
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +109 -141
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +57 -54
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +116 -336
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +9 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +136 -234
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +26 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +5 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +155 -280
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +40 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +59 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +2 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +3 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +9 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +387 -975
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +16 -44
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +8 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +87 -106
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +57 -57
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +43 -126
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +18 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +9 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +23 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +9 -61
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +3 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +27 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +26 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +10 -63
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +173 -319
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +113 -92
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +53 -47
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +208 -352
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +3 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +47 -227
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +5 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +2 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +1 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +53 -71
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +22 -85
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +4 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +166 -102
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +4 -109
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +30 -69
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +7 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +1 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +16 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +12 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +9 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +5 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +51 -58
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +10 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +5 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +6 -92
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +19 -46
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +11 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +5 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +28 -136
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +5 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +62 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +24 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +7 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +100 -548
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +86 -125
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +116 -258
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +76 -72
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +15 -34
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +9 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +82 -192
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +28 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +52 -78
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +83 -52
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +67 -323
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +38 -123
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +13 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +12 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +7 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +13 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +1 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +14 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +16 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +50 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +21 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +42 -47
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +53 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +4 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +2 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +5 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +9 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +355 -556
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +59 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +13 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +5 -88
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +18 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +16 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +53 -52
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +30 -64
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +22 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +26 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +28 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +28 -30
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +54 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +12 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +22 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +26 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +51 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +40 -232
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +14 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +35 -84
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +41 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +25 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +17 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +12 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +32 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +16 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +20 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +32 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +18 -30
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +43 -208
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +25 -90
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +4 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +21 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +3 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +3 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +3 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +172 -253
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +7 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +12 -43
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +9 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +50 -133
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +2 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +2 -53
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +177 -329
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +1 -97
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +183 -687
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +15 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +913 -2275
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +115 -353
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +106 -127
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +3 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +35 -272
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +64 -134
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +1200 -2608
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +20 -64
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +36 -253
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +233 -774
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +6 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +63 -156
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +10 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +2 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +6 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +65 -1991
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +29 -241
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +47 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +179 -442
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +89 -147
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +380 -529
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +42 -75
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +86 -163
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +15 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +368 -595
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +47 -68
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +146 -444
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +68 -103
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +42 -111
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +3 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +6 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +35 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +4 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +9 -91
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +1 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +19 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +12 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +41 -162
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +41 -88
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +81 -140
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +17 -27
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +124 -182
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +7 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +109 -590
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +2 -62
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +10 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +10 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +9 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +24 -320
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +26 -50
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +6 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +195 -302
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +4 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +181 -416
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +197 -216
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +5 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +49 -215
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +30 -50
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +1 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +3 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +10 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +17 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +130 -276
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +52 -56
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +3 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +89 -185
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +20 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +1 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +33 -36
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +15 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +22 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +3 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +13 -109
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +14 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +90 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +49 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +7 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +29 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +45 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +5 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +110 -132
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +9 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +5 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +31 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +21 -59
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +10 -95
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +81 -497
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +9 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +5 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +2 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +164 -347
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +35 -246
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +8 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +11 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +94 -184
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +11 -158
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +54 -148
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +27 -204
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +5 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +16 -43
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +11 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +39 -124
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +11 -27
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +15 -458
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +2 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +89 -99
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +2 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +11 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +102 -677
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +5 -377
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +84 -197
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +25 -107
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +14 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +8 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +113 -197
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +12 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +10 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +47 -242
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +51 -94
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +26 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +22 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +13 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +34 -56
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +9 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +6 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +7 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +8 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +10 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +2 -69
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +80 -728
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +7 -62
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +56 -756
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +19 -205
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +47 -569
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +28 -283
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +112 -369
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +113 -185
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +14 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +10 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +4 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +14 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +2 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +56 -102
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +9 -68
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +14 -150
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +3 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +128 -212
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +20 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +18 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +56 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +58 -539
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +14 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +18 -240
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +38 -317
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +5 -154
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +10 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +37 -291
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +10 -124
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +7 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +19 -98
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +90 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +2 -6
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +0 -205
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +13 -93
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +13 -30
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
- package/package.json +1 -1
- package/react-native-update.podspec +0 -1
- package/react-native.config.js +1 -0
- package/src/client.ts +1 -2
- package/src/type.ts +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +0 -547
- package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +0 -112
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +0 -389
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +0 -73
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +0 -266
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +0 -58
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +0 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +0 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +0 -228
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +0 -215
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +0 -256
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +0 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +0 -271
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +0 -228
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +0 -242
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +0 -287
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +0 -286
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +0 -308
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +0 -33
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +0 -33
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +0 -774
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +0 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +0 -42
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +0 -74
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +0 -478
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +0 -222
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +0 -14
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +0 -168
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +0 -44
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +0 -125
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +0 -243
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +0 -51
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +0 -153
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +0 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +0 -158
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +0 -49
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +0 -294
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +0 -59
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +0 -217
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +0 -349
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +0 -110
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +0 -366
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +0 -91
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +0 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +0 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +0 -497
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +0 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +0 -254
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +0 -39
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +0 -37
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +0 -62
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +0 -44
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +0 -156
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +0 -440
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +0 -88
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +0 -332
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +0 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +0 -198
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +0 -697
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +0 -74
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +0 -262
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +0 -174
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +0 -174
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +0 -252
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +0 -67
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +0 -680
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +0 -137
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +0 -83
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +0 -125
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +0 -56
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +0 -55
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +0 -147
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +0 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +0 -354
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +0 -76
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +0 -521
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +0 -69
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +0 -122
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +0 -66
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +0 -36
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +0 -81
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +0 -247
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +0 -71
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +0 -351
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +0 -42
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +0 -124
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +0 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +0 -203
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +0 -55
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +0 -79
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +0 -66
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +0 -628
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +0 -95
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +0 -78
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +0 -950
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +0 -72
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +0 -181
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +0 -1487
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +0 -540
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +0 -275
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +0 -860
- package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +0 -101
- package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +0 -360
- package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +0 -578
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +0 -451
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +0 -835
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +0 -17
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +0 -4
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +0 -1
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +0 -1
- package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +0 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +0 -1370
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +0 -279
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +0 -215
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +0 -855
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +0 -160
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +0 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +0 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +0 -72
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +0 -187
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +0 -218
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +0 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +0 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +0 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +0 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +0 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +0 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +0 -330
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +0 -93
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +0 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +0 -130
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +0 -28
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +0 -36
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +0 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +0 -1251
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +0 -19
- package/ios/ImportReact.h +0 -2
|
@@ -43,76 +43,51 @@ struct CBlockInfo
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
class CHandler:
|
|
47
47
|
public IInArchive,
|
|
48
48
|
public IArchiveOpenSeq,
|
|
49
49
|
public IInArchiveGetStream,
|
|
50
50
|
public ISetProperties,
|
|
51
|
-
|
|
51
|
+
|
|
52
|
+
#ifndef EXTRACT_ONLY
|
|
52
53
|
public IOutArchive,
|
|
53
|
-
|
|
54
|
+
#endif
|
|
55
|
+
|
|
54
56
|
public CMyUnknownImp,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
|
|
58
|
+
#ifndef EXTRACT_ONLY
|
|
59
|
+
public CMultiMethodProps
|
|
60
|
+
#else
|
|
61
|
+
public CCommonMethodProps
|
|
62
|
+
#endif
|
|
60
63
|
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Z7_COM_QI_ENTRY(ISetProperties)
|
|
65
|
-
#ifndef Z7_EXTRACT_ONLY
|
|
66
|
-
Z7_COM_QI_ENTRY(IOutArchive)
|
|
67
|
-
#endif
|
|
68
|
-
Z7_COM_QI_END
|
|
69
|
-
Z7_COM_ADDREF_RELEASE
|
|
70
|
-
|
|
71
|
-
Z7_IFACE_COM7_IMP(IInArchive)
|
|
72
|
-
Z7_IFACE_COM7_IMP(IArchiveOpenSeq)
|
|
73
|
-
Z7_IFACE_COM7_IMP(IInArchiveGetStream)
|
|
74
|
-
Z7_IFACE_COM7_IMP(ISetProperties)
|
|
75
|
-
#ifndef Z7_EXTRACT_ONLY
|
|
76
|
-
Z7_IFACE_COM7_IMP(IOutArchive)
|
|
77
|
-
#endif
|
|
78
|
-
|
|
79
|
-
bool _stat_defined;
|
|
80
|
-
bool _stat2_defined;
|
|
64
|
+
CXzStatInfo _stat;
|
|
65
|
+
SRes MainDecodeSRes;
|
|
66
|
+
|
|
81
67
|
bool _isArc;
|
|
82
68
|
bool _needSeekToStart;
|
|
69
|
+
bool _phySize_Defined;
|
|
83
70
|
bool _firstBlockWasRead;
|
|
84
|
-
SRes _stat2_decode_SRes;
|
|
85
71
|
|
|
86
|
-
CXzStatInfo _stat; // it's stat from backward parsing
|
|
87
|
-
CXzStatInfo _stat2; // it's data from forward parsing, if the decoder was called
|
|
88
|
-
|
|
89
|
-
const CXzStatInfo *GetStat() const
|
|
90
|
-
{
|
|
91
|
-
if (_stat_defined) return &_stat;
|
|
92
|
-
if (_stat2_defined) return &_stat2;
|
|
93
|
-
return NULL;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
72
|
AString _methodsString;
|
|
97
73
|
|
|
98
|
-
|
|
99
|
-
#ifndef Z7_EXTRACT_ONLY
|
|
74
|
+
#ifndef EXTRACT_ONLY
|
|
100
75
|
|
|
101
76
|
UInt32 _filterId;
|
|
77
|
+
|
|
102
78
|
UInt64 _numSolidBytes;
|
|
103
79
|
|
|
104
80
|
void InitXz()
|
|
105
81
|
{
|
|
106
82
|
_filterId = 0;
|
|
107
|
-
_numSolidBytes =
|
|
83
|
+
_numSolidBytes = XZ_PROPS__BLOCK_SIZE__AUTO;
|
|
108
84
|
}
|
|
109
85
|
|
|
110
86
|
#endif
|
|
111
87
|
|
|
112
|
-
|
|
113
88
|
void Init()
|
|
114
89
|
{
|
|
115
|
-
#ifndef
|
|
90
|
+
#ifndef EXTRACT_ONLY
|
|
116
91
|
InitXz();
|
|
117
92
|
CMultiMethodProps::Init();
|
|
118
93
|
#else
|
|
@@ -129,39 +104,47 @@ Z7_class_CHandler_final:
|
|
|
129
104
|
ISequentialOutStream *outStream,
|
|
130
105
|
ICompressProgressInfo *progress)
|
|
131
106
|
{
|
|
132
|
-
#ifndef
|
|
107
|
+
#ifndef _7ZIP_ST
|
|
133
108
|
decoder._numThreads = _numThreads;
|
|
134
109
|
#endif
|
|
135
|
-
decoder._memUsage =
|
|
110
|
+
decoder._memUsage = _memUsage;
|
|
136
111
|
|
|
137
|
-
|
|
112
|
+
MainDecodeSRes = SZ_OK;
|
|
113
|
+
|
|
114
|
+
RINOK(decoder.Decode(seqInStream, outStream,
|
|
138
115
|
NULL, // *outSizeLimit
|
|
139
116
|
true, // finishStream
|
|
140
|
-
progress);
|
|
117
|
+
progress));
|
|
141
118
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
&& decoder.MainDecodeSRes != SZ_ERROR_UNSUPPORTED)
|
|
145
|
-
{
|
|
146
|
-
// if (!_stat2_defined)
|
|
147
|
-
{
|
|
148
|
-
_stat2_decode_SRes = decoder.MainDecodeSRes;
|
|
149
|
-
_stat2 = decoder.Stat;
|
|
150
|
-
_stat2_defined = true;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
119
|
+
_stat = decoder.Stat;
|
|
120
|
+
MainDecodeSRes = decoder.MainDecodeSRes;
|
|
153
121
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
// RINOK(
|
|
157
|
-
progress->SetRatioInfo(&decoder.Stat.InSize, &decoder.Stat.OutSize);
|
|
158
|
-
}
|
|
159
|
-
return hres;
|
|
122
|
+
_phySize_Defined = true;
|
|
123
|
+
return S_OK;
|
|
160
124
|
}
|
|
161
125
|
|
|
162
126
|
public:
|
|
163
|
-
|
|
127
|
+
MY_QUERYINTERFACE_BEGIN2(IInArchive)
|
|
128
|
+
MY_QUERYINTERFACE_ENTRY(IArchiveOpenSeq)
|
|
129
|
+
MY_QUERYINTERFACE_ENTRY(IInArchiveGetStream)
|
|
130
|
+
MY_QUERYINTERFACE_ENTRY(ISetProperties)
|
|
131
|
+
#ifndef EXTRACT_ONLY
|
|
132
|
+
MY_QUERYINTERFACE_ENTRY(IOutArchive)
|
|
133
|
+
#endif
|
|
134
|
+
MY_QUERYINTERFACE_END
|
|
135
|
+
MY_ADDREF_RELEASE
|
|
136
|
+
|
|
137
|
+
INTERFACE_IInArchive(;)
|
|
138
|
+
STDMETHOD(OpenSeq)(ISequentialInStream *stream);
|
|
139
|
+
STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream);
|
|
140
|
+
STDMETHOD(SetProperties)(const wchar_t * const *names, const PROPVARIANT *values, UInt32 numProps);
|
|
141
|
+
|
|
142
|
+
#ifndef EXTRACT_ONLY
|
|
143
|
+
INTERFACE_IOutArchive(;)
|
|
144
|
+
#endif
|
|
145
|
+
|
|
164
146
|
size_t _blocksArraySize;
|
|
147
|
+
CBlockInfo *_blocks;
|
|
165
148
|
UInt64 _maxBlocksSize;
|
|
166
149
|
CMyComPtr<IInStream> _stream;
|
|
167
150
|
CMyComPtr<ISequentialInStream> _seqStream;
|
|
@@ -173,7 +156,7 @@ public:
|
|
|
173
156
|
|
|
174
157
|
HRESULT SeekToPackPos(UInt64 pos)
|
|
175
158
|
{
|
|
176
|
-
return
|
|
159
|
+
return _stream->Seek(pos, STREAM_SEEK_SET, NULL);
|
|
177
160
|
}
|
|
178
161
|
};
|
|
179
162
|
|
|
@@ -182,7 +165,7 @@ CHandler::CHandler():
|
|
|
182
165
|
_blocks(NULL),
|
|
183
166
|
_blocksArraySize(0)
|
|
184
167
|
{
|
|
185
|
-
#ifndef
|
|
168
|
+
#ifndef EXTRACT_ONLY
|
|
186
169
|
InitXz();
|
|
187
170
|
#endif
|
|
188
171
|
}
|
|
@@ -212,6 +195,17 @@ static const Byte kArcProps[] =
|
|
|
212
195
|
IMP_IInArchive_Props
|
|
213
196
|
IMP_IInArchive_ArcProps
|
|
214
197
|
|
|
198
|
+
static inline char GetHex(unsigned value)
|
|
199
|
+
{
|
|
200
|
+
return (char)((value < 10) ? ('0' + value) : ('A' + (value - 10)));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
static inline void AddHexToString(AString &s, Byte value)
|
|
204
|
+
{
|
|
205
|
+
s += GetHex(value >> 4);
|
|
206
|
+
s += GetHex(value & 0xF);
|
|
207
|
+
}
|
|
208
|
+
|
|
215
209
|
static void Lzma2PropToString(AString &s, unsigned prop)
|
|
216
210
|
{
|
|
217
211
|
char c = 0;
|
|
@@ -230,7 +224,7 @@ static void Lzma2PropToString(AString &s, unsigned prop)
|
|
|
230
224
|
}
|
|
231
225
|
s.Add_UInt32(size);
|
|
232
226
|
if (c != 0)
|
|
233
|
-
s
|
|
227
|
+
s += c;
|
|
234
228
|
}
|
|
235
229
|
|
|
236
230
|
struct CMethodNamePair
|
|
@@ -249,15 +243,13 @@ static const CMethodNamePair g_NamePairs[] =
|
|
|
249
243
|
{ XZ_ID_ARM, "ARM" },
|
|
250
244
|
{ XZ_ID_ARMT, "ARMT" },
|
|
251
245
|
{ XZ_ID_SPARC, "SPARC" },
|
|
252
|
-
{ XZ_ID_ARM64, "ARM64" },
|
|
253
|
-
{ XZ_ID_RISCV, "RISCV" },
|
|
254
246
|
{ XZ_ID_LZMA2, "LZMA2" }
|
|
255
247
|
};
|
|
256
248
|
|
|
257
249
|
static void AddMethodString(AString &s, const CXzFilter &f)
|
|
258
250
|
{
|
|
259
251
|
const char *p = NULL;
|
|
260
|
-
for (unsigned i = 0; i <
|
|
252
|
+
for (unsigned i = 0; i < ARRAY_SIZE(g_NamePairs); i++)
|
|
261
253
|
if (g_NamePairs[i].Id == f.id)
|
|
262
254
|
{
|
|
263
255
|
p = g_NamePairs[i].Name;
|
|
@@ -274,23 +266,17 @@ static void AddMethodString(AString &s, const CXzFilter &f)
|
|
|
274
266
|
|
|
275
267
|
if (f.propsSize > 0)
|
|
276
268
|
{
|
|
277
|
-
s
|
|
269
|
+
s += ':';
|
|
278
270
|
if (f.id == XZ_ID_LZMA2 && f.propsSize == 1)
|
|
279
271
|
Lzma2PropToString(s, f.props[0]);
|
|
280
272
|
else if (f.id == XZ_ID_Delta && f.propsSize == 1)
|
|
281
273
|
s.Add_UInt32((UInt32)f.props[0] + 1);
|
|
282
|
-
else if (f.id == XZ_ID_ARM64 && f.propsSize == 1)
|
|
283
|
-
s.Add_UInt32((UInt32)f.props[0] + 16 + 2);
|
|
284
274
|
else
|
|
285
275
|
{
|
|
286
|
-
s
|
|
276
|
+
s += '[';
|
|
287
277
|
for (UInt32 bi = 0; bi < f.propsSize; bi++)
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
s.Add_Char(GET_HEX_CHAR_UPPER(v >> 4));
|
|
291
|
-
s.Add_Char(GET_HEX_CHAR_UPPER(v & 15));
|
|
292
|
-
}
|
|
293
|
-
s.Add_Char(']');
|
|
278
|
+
AddHexToString(s, f.props[bi]);
|
|
279
|
+
s += ']';
|
|
294
280
|
}
|
|
295
281
|
}
|
|
296
282
|
}
|
|
@@ -335,20 +321,17 @@ static void AddCheckString(AString &s, const CXzs &xzs)
|
|
|
335
321
|
}
|
|
336
322
|
}
|
|
337
323
|
|
|
338
|
-
|
|
324
|
+
STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value)
|
|
339
325
|
{
|
|
340
326
|
COM_TRY_BEGIN
|
|
341
327
|
NCOM::CPropVariant prop;
|
|
342
|
-
|
|
343
|
-
const CXzStatInfo *stat = GetStat();
|
|
344
|
-
|
|
345
328
|
switch (propID)
|
|
346
329
|
{
|
|
347
|
-
case kpidPhySize: if (
|
|
348
|
-
case kpidNumStreams: if (
|
|
349
|
-
case kpidNumBlocks: if (
|
|
350
|
-
case kpidUnpackSize: if (
|
|
351
|
-
case kpidClusterSize: if (
|
|
330
|
+
case kpidPhySize: if (_phySize_Defined) prop = _stat.InSize; break;
|
|
331
|
+
case kpidNumStreams: if (_stat.NumStreams_Defined) prop = _stat.NumStreams; break;
|
|
332
|
+
case kpidNumBlocks: if (_stat.NumBlocks_Defined) prop = _stat.NumBlocks; break;
|
|
333
|
+
case kpidUnpackSize: if (_stat.UnpackSize_Defined) prop = _stat.OutSize; break;
|
|
334
|
+
case kpidClusterSize: if (_stat.NumBlocks_Defined && _stat.NumBlocks > 1) prop = _maxBlocksSize; break;
|
|
352
335
|
case kpidCharacts:
|
|
353
336
|
if (_firstBlockWasRead)
|
|
354
337
|
{
|
|
@@ -367,14 +350,14 @@ Z7_COM7F_IMF(CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value))
|
|
|
367
350
|
case kpidErrorFlags:
|
|
368
351
|
{
|
|
369
352
|
UInt32 v = 0;
|
|
370
|
-
SRes sres =
|
|
371
|
-
if (!_isArc)
|
|
372
|
-
if (sres == SZ_ERROR_INPUT_EOF)
|
|
373
|
-
if (
|
|
374
|
-
if (sres == SZ_ERROR_ARCHIVE)
|
|
375
|
-
if (sres == SZ_ERROR_UNSUPPORTED) v |= kpv_ErrorFlags_UnsupportedMethod;
|
|
376
|
-
if (sres == SZ_ERROR_DATA)
|
|
377
|
-
if (sres == SZ_ERROR_CRC)
|
|
353
|
+
SRes sres = MainDecodeSRes; // _stat.DecodeRes2; //
|
|
354
|
+
if (!_isArc) v |= kpv_ErrorFlags_IsNotArc;
|
|
355
|
+
if (/*_stat.UnexpectedEnd */ sres == SZ_ERROR_INPUT_EOF) v |= kpv_ErrorFlags_UnexpectedEnd;
|
|
356
|
+
if (_stat.DataAfterEnd) v |= kpv_ErrorFlags_DataAfterEnd;
|
|
357
|
+
if (/* _stat.HeadersError */ sres == SZ_ERROR_ARCHIVE) v |= kpv_ErrorFlags_HeadersError;
|
|
358
|
+
if (/* _stat.Unsupported */ sres == SZ_ERROR_UNSUPPORTED) v |= kpv_ErrorFlags_UnsupportedMethod;
|
|
359
|
+
if (/* _stat.DataError */ sres == SZ_ERROR_DATA) v |= kpv_ErrorFlags_DataError;
|
|
360
|
+
if (/* _stat.CrcError */ sres == SZ_ERROR_CRC) v |= kpv_ErrorFlags_CrcError;
|
|
378
361
|
if (v != 0)
|
|
379
362
|
prop = v;
|
|
380
363
|
break;
|
|
@@ -386,30 +369,27 @@ Z7_COM7F_IMF(CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value))
|
|
|
386
369
|
// if (_blocks) prop = (UInt32)0;
|
|
387
370
|
break;
|
|
388
371
|
}
|
|
389
|
-
default: break;
|
|
390
372
|
}
|
|
391
373
|
prop.Detach(value);
|
|
392
374
|
return S_OK;
|
|
393
375
|
COM_TRY_END
|
|
394
376
|
}
|
|
395
377
|
|
|
396
|
-
|
|
378
|
+
STDMETHODIMP CHandler::GetNumberOfItems(UInt32 *numItems)
|
|
397
379
|
{
|
|
398
380
|
*numItems = 1;
|
|
399
381
|
return S_OK;
|
|
400
382
|
}
|
|
401
383
|
|
|
402
|
-
|
|
384
|
+
STDMETHODIMP CHandler::GetProperty(UInt32, PROPID propID, PROPVARIANT *value)
|
|
403
385
|
{
|
|
404
386
|
COM_TRY_BEGIN
|
|
405
|
-
const CXzStatInfo *stat = GetStat();
|
|
406
387
|
NCOM::CPropVariant prop;
|
|
407
388
|
switch (propID)
|
|
408
389
|
{
|
|
409
|
-
case kpidSize: if (
|
|
410
|
-
case kpidPackSize: if (
|
|
390
|
+
case kpidSize: if (_stat.UnpackSize_Defined) prop = _stat.OutSize; break;
|
|
391
|
+
case kpidPackSize: if (_phySize_Defined) prop = _stat.InSize; break;
|
|
411
392
|
case kpidMethod: if (!_methodsString.IsEmpty()) prop = _methodsString; break;
|
|
412
|
-
default: break;
|
|
413
393
|
}
|
|
414
394
|
prop.Detach(value);
|
|
415
395
|
return S_OK;
|
|
@@ -422,20 +402,18 @@ struct COpenCallbackWrap
|
|
|
422
402
|
ICompressProgress vt;
|
|
423
403
|
IArchiveOpenCallback *OpenCallback;
|
|
424
404
|
HRESULT Res;
|
|
425
|
-
|
|
426
|
-
// new clang shows "non-POD" warning for offsetof(), if we use constructor instead of Init()
|
|
427
|
-
void Init(IArchiveOpenCallback *progress);
|
|
405
|
+
COpenCallbackWrap(IArchiveOpenCallback *progress);
|
|
428
406
|
};
|
|
429
407
|
|
|
430
|
-
static SRes OpenCallbackProgress(
|
|
408
|
+
static SRes OpenCallbackProgress(const ICompressProgress *pp, UInt64 inSize, UInt64 /* outSize */)
|
|
431
409
|
{
|
|
432
|
-
|
|
410
|
+
COpenCallbackWrap *p = CONTAINER_FROM_VTBL(pp, COpenCallbackWrap, vt);
|
|
433
411
|
if (p->OpenCallback)
|
|
434
412
|
p->Res = p->OpenCallback->SetCompleted(NULL, &inSize);
|
|
435
413
|
return HRESULT_To_SRes(p->Res, SZ_ERROR_PROGRESS);
|
|
436
414
|
}
|
|
437
415
|
|
|
438
|
-
|
|
416
|
+
COpenCallbackWrap::COpenCallbackWrap(IArchiveOpenCallback *callback)
|
|
439
417
|
{
|
|
440
418
|
vt.Progress = OpenCallbackProgress;
|
|
441
419
|
OpenCallback = callback;
|
|
@@ -446,7 +424,7 @@ void COpenCallbackWrap::Init(IArchiveOpenCallback *callback)
|
|
|
446
424
|
struct CXzsCPP
|
|
447
425
|
{
|
|
448
426
|
CXzs p;
|
|
449
|
-
CXzsCPP() {
|
|
427
|
+
CXzsCPP() { Xzs_Construct(&p); }
|
|
450
428
|
~CXzsCPP() { Xzs_Free(&p, &g_Alloc); }
|
|
451
429
|
};
|
|
452
430
|
|
|
@@ -489,7 +467,6 @@ static HRESULT SRes_to_Open_HRESULT(SRes res)
|
|
|
489
467
|
case SZ_ERROR_NO_ARCHIVE:
|
|
490
468
|
return S_FALSE;
|
|
491
469
|
*/
|
|
492
|
-
default: break;
|
|
493
470
|
}
|
|
494
471
|
return S_FALSE;
|
|
495
472
|
}
|
|
@@ -505,11 +482,7 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
505
482
|
CSeqInStreamWrap inStreamWrap;
|
|
506
483
|
|
|
507
484
|
inStreamWrap.Init(inStream);
|
|
508
|
-
|
|
509
485
|
SRes res = Xz_ReadHeader(&st, &inStreamWrap.vt);
|
|
510
|
-
|
|
511
|
-
if (inStreamWrap.Res != S_OK)
|
|
512
|
-
return inStreamWrap.Res;
|
|
513
486
|
if (res != SZ_OK)
|
|
514
487
|
return SRes_to_Open_HRESULT(res);
|
|
515
488
|
|
|
@@ -517,30 +490,8 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
517
490
|
CXzBlock block;
|
|
518
491
|
BoolInt isIndex;
|
|
519
492
|
UInt32 headerSizeRes;
|
|
520
|
-
|
|
521
493
|
SRes res2 = XzBlock_ReadHeader(&block, &inStreamWrap.vt, &isIndex, &headerSizeRes);
|
|
522
|
-
|
|
523
|
-
if (inStreamWrap.Res != S_OK)
|
|
524
|
-
return inStreamWrap.Res;
|
|
525
|
-
|
|
526
|
-
if (res2 != SZ_OK)
|
|
527
|
-
{
|
|
528
|
-
if (res2 == SZ_ERROR_INPUT_EOF)
|
|
529
|
-
{
|
|
530
|
-
_stat2_decode_SRes = res2;
|
|
531
|
-
_stream = inStream;
|
|
532
|
-
_seqStream = inStream;
|
|
533
|
-
_isArc = true;
|
|
534
|
-
return S_OK;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
if (res2 == SZ_ERROR_ARCHIVE)
|
|
538
|
-
return S_FALSE;
|
|
539
|
-
// what codes are possible here ?
|
|
540
|
-
// ?? res2 == SZ_ERROR_MEM : is possible here
|
|
541
|
-
// ?? res2 == SZ_ERROR_UNSUPPORTED : is possible here
|
|
542
|
-
}
|
|
543
|
-
else if (!isIndex)
|
|
494
|
+
if (res2 == SZ_OK && !isIndex)
|
|
544
495
|
{
|
|
545
496
|
_firstBlockWasRead = true;
|
|
546
497
|
_firstBlock = block;
|
|
@@ -555,10 +506,10 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
555
506
|
}
|
|
556
507
|
}
|
|
557
508
|
|
|
558
|
-
RINOK(
|
|
509
|
+
RINOK(inStream->Seek(0, STREAM_SEEK_END, &_stat.InSize));
|
|
559
510
|
if (callback)
|
|
560
511
|
{
|
|
561
|
-
RINOK(callback->SetTotal(NULL, &_stat.InSize))
|
|
512
|
+
RINOK(callback->SetTotal(NULL, &_stat.InSize));
|
|
562
513
|
}
|
|
563
514
|
|
|
564
515
|
CSeekInStreamWrap inStreamImp;
|
|
@@ -573,10 +524,9 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
573
524
|
return E_OUTOFMEMORY;
|
|
574
525
|
|
|
575
526
|
lookStream.realStream = &inStreamImp.vt;
|
|
576
|
-
|
|
527
|
+
LookToRead2_Init(&lookStream);
|
|
577
528
|
|
|
578
|
-
COpenCallbackWrap openWrap;
|
|
579
|
-
openWrap.Init(callback);
|
|
529
|
+
COpenCallbackWrap openWrap(callback);
|
|
580
530
|
|
|
581
531
|
CXzsCPP xzs;
|
|
582
532
|
Int64 startPosition;
|
|
@@ -589,7 +539,7 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
589
539
|
*/
|
|
590
540
|
if (res == SZ_OK && startPosition == 0)
|
|
591
541
|
{
|
|
592
|
-
|
|
542
|
+
_phySize_Defined = true;
|
|
593
543
|
|
|
594
544
|
_stat.OutSize = Xzs_GetUnpackSize(&xzs.p);
|
|
595
545
|
_stat.UnpackSize_Defined = true;
|
|
@@ -664,8 +614,7 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
664
614
|
res = SZ_OK;
|
|
665
615
|
}
|
|
666
616
|
|
|
667
|
-
RINOK(SRes_to_Open_HRESULT(res))
|
|
668
|
-
|
|
617
|
+
RINOK(SRes_to_Open_HRESULT(res));
|
|
669
618
|
_stream = inStream;
|
|
670
619
|
_seqStream = inStream;
|
|
671
620
|
_isArc = true;
|
|
@@ -674,7 +623,7 @@ HRESULT CHandler::Open2(IInStream *inStream, /* UInt32 flags, */ IArchiveOpenCal
|
|
|
674
623
|
|
|
675
624
|
|
|
676
625
|
|
|
677
|
-
|
|
626
|
+
STDMETHODIMP CHandler::Open(IInStream *inStream, const UInt64 *, IArchiveOpenCallback *callback)
|
|
678
627
|
{
|
|
679
628
|
COM_TRY_BEGIN
|
|
680
629
|
{
|
|
@@ -684,7 +633,7 @@ Z7_COM7F_IMF(CHandler::Open(IInStream *inStream, const UInt64 *, IArchiveOpenCal
|
|
|
684
633
|
COM_TRY_END
|
|
685
634
|
}
|
|
686
635
|
|
|
687
|
-
|
|
636
|
+
STDMETHODIMP CHandler::OpenSeq(ISequentialInStream *stream)
|
|
688
637
|
{
|
|
689
638
|
Close();
|
|
690
639
|
_seqStream = stream;
|
|
@@ -693,18 +642,15 @@ Z7_COM7F_IMF(CHandler::OpenSeq(ISequentialInStream *stream))
|
|
|
693
642
|
return S_OK;
|
|
694
643
|
}
|
|
695
644
|
|
|
696
|
-
|
|
645
|
+
STDMETHODIMP CHandler::Close()
|
|
697
646
|
{
|
|
698
647
|
XzStatInfo_Clear(&_stat);
|
|
699
|
-
XzStatInfo_Clear(&_stat2);
|
|
700
|
-
_stat_defined = false;
|
|
701
|
-
_stat2_defined = false;
|
|
702
|
-
_stat2_decode_SRes = SZ_OK;
|
|
703
648
|
|
|
704
649
|
_isArc = false;
|
|
705
650
|
_needSeekToStart = false;
|
|
651
|
+
_phySize_Defined = false;
|
|
706
652
|
_firstBlockWasRead = false;
|
|
707
|
-
|
|
653
|
+
|
|
708
654
|
_methodsString.Empty();
|
|
709
655
|
_stream.Release();
|
|
710
656
|
_seqStream.Release();
|
|
@@ -714,6 +660,8 @@ Z7_COM7F_IMF(CHandler::Close())
|
|
|
714
660
|
_blocksArraySize = 0;
|
|
715
661
|
_maxBlocksSize = 0;
|
|
716
662
|
|
|
663
|
+
MainDecodeSRes = SZ_OK;
|
|
664
|
+
|
|
717
665
|
return S_OK;
|
|
718
666
|
}
|
|
719
667
|
|
|
@@ -742,12 +690,12 @@ CXzUnpackerCPP2::~CXzUnpackerCPP2()
|
|
|
742
690
|
}
|
|
743
691
|
|
|
744
692
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
UInt64 _virtPos;
|
|
693
|
+
class CInStream:
|
|
694
|
+
public IInStream,
|
|
695
|
+
public CMyUnknownImp
|
|
696
|
+
{
|
|
750
697
|
public:
|
|
698
|
+
UInt64 _virtPos;
|
|
751
699
|
UInt64 Size;
|
|
752
700
|
UInt64 _cacheStartPos;
|
|
753
701
|
size_t _cacheSize;
|
|
@@ -763,18 +711,25 @@ public:
|
|
|
763
711
|
// _startPos = startPos;
|
|
764
712
|
}
|
|
765
713
|
|
|
766
|
-
|
|
767
|
-
|
|
714
|
+
CHandler *_handlerSpec;
|
|
715
|
+
CMyComPtr<IUnknown> _handler;
|
|
716
|
+
|
|
717
|
+
MY_UNKNOWN_IMP1(IInStream)
|
|
718
|
+
|
|
719
|
+
STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
|
|
720
|
+
STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition);
|
|
721
|
+
|
|
722
|
+
~CInStream();
|
|
768
723
|
};
|
|
769
724
|
|
|
770
|
-
|
|
725
|
+
|
|
771
726
|
CInStream::~CInStream()
|
|
772
727
|
{
|
|
773
728
|
// _cache.Free();
|
|
774
729
|
}
|
|
775
|
-
*/
|
|
776
730
|
|
|
777
|
-
|
|
731
|
+
|
|
732
|
+
size_t FindBlock(const CBlockInfo *blocks, size_t numBlocks, UInt64 pos)
|
|
778
733
|
{
|
|
779
734
|
size_t left = 0, right = numBlocks;
|
|
780
735
|
for (;;)
|
|
@@ -842,7 +797,7 @@ static HRESULT DecodeBlock(CXzUnpackerCPP2 &xzu,
|
|
|
842
797
|
|
|
843
798
|
ECoderStatus status;
|
|
844
799
|
|
|
845
|
-
|
|
800
|
+
SRes res = XzUnpacker_Code(&xzu.p,
|
|
846
801
|
// dest + outPos,
|
|
847
802
|
NULL,
|
|
848
803
|
&outLen,
|
|
@@ -865,7 +820,7 @@ static HRESULT DecodeBlock(CXzUnpackerCPP2 &xzu,
|
|
|
865
820
|
|
|
866
821
|
packRem -= inLen;
|
|
867
822
|
|
|
868
|
-
|
|
823
|
+
BoolInt blockFinished = XzUnpacker_IsBlockFinished(&xzu.p);
|
|
869
824
|
|
|
870
825
|
if ((inLen == 0 && outLen == 0) || blockFinished)
|
|
871
826
|
{
|
|
@@ -879,7 +834,7 @@ static HRESULT DecodeBlock(CXzUnpackerCPP2 &xzu,
|
|
|
879
834
|
}
|
|
880
835
|
|
|
881
836
|
|
|
882
|
-
|
|
837
|
+
STDMETHODIMP CInStream::Read(void *data, UInt32 size, UInt32 *processedSize)
|
|
883
838
|
{
|
|
884
839
|
COM_TRY_BEGIN
|
|
885
840
|
|
|
@@ -903,7 +858,7 @@ Z7_COM7F_IMF(CInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
|
|
|
903
858
|
|
|
904
859
|
if (_virtPos < _cacheStartPos || _virtPos >= _cacheStartPos + _cacheSize)
|
|
905
860
|
{
|
|
906
|
-
|
|
861
|
+
size_t bi = FindBlock(_handlerSpec->_blocks, _handlerSpec->_blocksArraySize, _virtPos);
|
|
907
862
|
const CBlockInfo &block = _handlerSpec->_blocks[bi];
|
|
908
863
|
const UInt64 unpackSize = _handlerSpec->_blocks[bi + 1].UnpackPos - block.UnpackPos;
|
|
909
864
|
if (_cache.Size() < unpackSize)
|
|
@@ -911,19 +866,19 @@ Z7_COM7F_IMF(CInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
|
|
|
911
866
|
|
|
912
867
|
_cacheSize = 0;
|
|
913
868
|
|
|
914
|
-
RINOK(_handlerSpec->SeekToPackPos(block.PackPos))
|
|
869
|
+
RINOK(_handlerSpec->SeekToPackPos(block.PackPos));
|
|
915
870
|
RINOK(DecodeBlock(xz, _handlerSpec->_seqStream, block.StreamFlags, block.PackSize,
|
|
916
|
-
(size_t)unpackSize, _cache))
|
|
871
|
+
(size_t)unpackSize, _cache));
|
|
917
872
|
_cacheStartPos = block.UnpackPos;
|
|
918
873
|
_cacheSize = (size_t)unpackSize;
|
|
919
874
|
}
|
|
920
875
|
|
|
921
876
|
{
|
|
922
|
-
|
|
923
|
-
|
|
877
|
+
size_t offset = (size_t)(_virtPos - _cacheStartPos);
|
|
878
|
+
size_t rem = _cacheSize - offset;
|
|
924
879
|
if (size > rem)
|
|
925
880
|
size = (UInt32)rem;
|
|
926
|
-
memcpy(data, _cache
|
|
881
|
+
memcpy(data, _cache + offset, size);
|
|
927
882
|
_virtPos += size;
|
|
928
883
|
if (processedSize)
|
|
929
884
|
*processedSize = size;
|
|
@@ -934,7 +889,7 @@ Z7_COM7F_IMF(CInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
|
|
|
934
889
|
}
|
|
935
890
|
|
|
936
891
|
|
|
937
|
-
|
|
892
|
+
STDMETHODIMP CInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition)
|
|
938
893
|
{
|
|
939
894
|
switch (seekOrigin)
|
|
940
895
|
{
|
|
@@ -945,9 +900,9 @@ Z7_COM7F_IMF(CInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPositio
|
|
|
945
900
|
}
|
|
946
901
|
if (offset < 0)
|
|
947
902
|
return HRESULT_WIN32_ERROR_NEGATIVE_SEEK;
|
|
948
|
-
_virtPos =
|
|
903
|
+
_virtPos = offset;
|
|
949
904
|
if (newPosition)
|
|
950
|
-
*newPosition =
|
|
905
|
+
*newPosition = offset;
|
|
951
906
|
return S_OK;
|
|
952
907
|
}
|
|
953
908
|
|
|
@@ -955,7 +910,7 @@ Z7_COM7F_IMF(CInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPositio
|
|
|
955
910
|
|
|
956
911
|
static const UInt64 kMaxBlockSize_for_GetStream = (UInt64)1 << 40;
|
|
957
912
|
|
|
958
|
-
|
|
913
|
+
STDMETHODIMP CHandler::GetStream(UInt32 index, ISequentialInStream **stream)
|
|
959
914
|
{
|
|
960
915
|
COM_TRY_BEGIN
|
|
961
916
|
|
|
@@ -970,23 +925,23 @@ Z7_COM7F_IMF(CHandler::GetStream(UInt32 index, ISequentialInStream **stream))
|
|
|
970
925
|
|| _maxBlocksSize != (size_t)_maxBlocksSize)
|
|
971
926
|
return S_FALSE;
|
|
972
927
|
|
|
973
|
-
|
|
928
|
+
UInt64 memSize;
|
|
974
929
|
if (!NSystem::GetRamSize(memSize))
|
|
975
|
-
memSize = (
|
|
930
|
+
memSize = (UInt64)(sizeof(size_t)) << 28;
|
|
976
931
|
{
|
|
977
932
|
if (_maxBlocksSize > memSize / 4)
|
|
978
933
|
return S_FALSE;
|
|
979
934
|
}
|
|
980
935
|
|
|
981
|
-
|
|
982
|
-
spec
|
|
936
|
+
CInStream *spec = new CInStream;
|
|
937
|
+
CMyComPtr<ISequentialInStream> specStream = spec;
|
|
983
938
|
spec->_cache.Alloc((size_t)_maxBlocksSize);
|
|
984
|
-
spec->_handlerSpec
|
|
985
|
-
|
|
939
|
+
spec->_handlerSpec = this;
|
|
940
|
+
spec->_handler = (IInArchive *)this;
|
|
986
941
|
spec->Size = _stat.OutSize;
|
|
987
942
|
spec->InitAndSeek();
|
|
988
943
|
|
|
989
|
-
*stream =
|
|
944
|
+
*stream = specStream.Detach();
|
|
990
945
|
return S_OK;
|
|
991
946
|
|
|
992
947
|
COM_TRY_END
|
|
@@ -996,7 +951,7 @@ Z7_COM7F_IMF(CHandler::GetStream(UInt32 index, ISequentialInStream **stream))
|
|
|
996
951
|
static Int32 Get_Extract_OperationResult(const NCompress::NXz::CDecoder &decoder)
|
|
997
952
|
{
|
|
998
953
|
Int32 opRes;
|
|
999
|
-
SRes sres = decoder.MainDecodeSRes;
|
|
954
|
+
SRes sres = decoder.MainDecodeSRes; // decoder.Stat.DecodeRes2;
|
|
1000
955
|
if (sres == SZ_ERROR_NO_ARCHIVE) // (!IsArc)
|
|
1001
956
|
opRes = NExtract::NOperationResult::kIsNotArc;
|
|
1002
957
|
else if (sres == SZ_ERROR_INPUT_EOF) // (UnexpectedEnd)
|
|
@@ -1021,8 +976,8 @@ static Int32 Get_Extract_OperationResult(const NCompress::NXz::CDecoder &decoder
|
|
|
1021
976
|
|
|
1022
977
|
|
|
1023
978
|
|
|
1024
|
-
|
|
1025
|
-
Int32 testMode, IArchiveExtractCallback *extractCallback)
|
|
979
|
+
STDMETHODIMP CHandler::Extract(const UInt32 *indices, UInt32 numItems,
|
|
980
|
+
Int32 testMode, IArchiveExtractCallback *extractCallback)
|
|
1026
981
|
{
|
|
1027
982
|
COM_TRY_BEGIN
|
|
1028
983
|
if (numItems == 0)
|
|
@@ -1030,35 +985,32 @@ Z7_COM7F_IMF(CHandler::Extract(const UInt32 *indices, UInt32 numItems,
|
|
|
1030
985
|
if (numItems != (UInt32)(Int32)-1 && (numItems != 1 || indices[0] != 0))
|
|
1031
986
|
return E_INVALIDARG;
|
|
1032
987
|
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
if (stat)
|
|
1036
|
-
RINOK(extractCallback->SetTotal(stat->InSize))
|
|
988
|
+
if (_phySize_Defined)
|
|
989
|
+
extractCallback->SetTotal(_stat.InSize);
|
|
1037
990
|
|
|
1038
991
|
UInt64 currentTotalPacked = 0;
|
|
1039
|
-
RINOK(extractCallback->SetCompleted(¤tTotalPacked))
|
|
1040
|
-
Int32 opRes;
|
|
1041
|
-
{
|
|
992
|
+
RINOK(extractCallback->SetCompleted(¤tTotalPacked));
|
|
1042
993
|
CMyComPtr<ISequentialOutStream> realOutStream;
|
|
1043
|
-
|
|
994
|
+
Int32 askMode = testMode ?
|
|
1044
995
|
NExtract::NAskMode::kTest :
|
|
1045
996
|
NExtract::NAskMode::kExtract;
|
|
1046
997
|
|
|
1047
|
-
RINOK(extractCallback->GetStream(0, &realOutStream, askMode))
|
|
998
|
+
RINOK(extractCallback->GetStream(0, &realOutStream, askMode));
|
|
1048
999
|
|
|
1049
1000
|
if (!testMode && !realOutStream)
|
|
1050
1001
|
return S_OK;
|
|
1051
1002
|
|
|
1052
|
-
|
|
1003
|
+
extractCallback->PrepareOperation(askMode);
|
|
1053
1004
|
|
|
1054
|
-
|
|
1005
|
+
CLocalProgress *lps = new CLocalProgress;
|
|
1006
|
+
CMyComPtr<ICompressProgressInfo> lpsRef = lps;
|
|
1055
1007
|
lps->Init(extractCallback, true);
|
|
1056
1008
|
|
|
1057
1009
|
if (_needSeekToStart)
|
|
1058
1010
|
{
|
|
1059
1011
|
if (!_stream)
|
|
1060
1012
|
return E_FAIL;
|
|
1061
|
-
RINOK(
|
|
1013
|
+
RINOK(_stream->Seek(0, STREAM_SEEK_SET, NULL));
|
|
1062
1014
|
}
|
|
1063
1015
|
else
|
|
1064
1016
|
_needSeekToStart = true;
|
|
@@ -1066,36 +1018,34 @@ Z7_COM7F_IMF(CHandler::Extract(const UInt32 *indices, UInt32 numItems,
|
|
|
1066
1018
|
|
|
1067
1019
|
NCompress::NXz::CDecoder decoder;
|
|
1068
1020
|
|
|
1069
|
-
|
|
1021
|
+
HRESULT hres = Decode(decoder, _seqStream, realOutStream, lpsRef);
|
|
1070
1022
|
|
|
1071
1023
|
if (!decoder.MainDecodeSRes_wasUsed)
|
|
1072
1024
|
return hres == S_OK ? E_FAIL : hres;
|
|
1073
1025
|
|
|
1074
|
-
opRes = Get_Extract_OperationResult(decoder);
|
|
1026
|
+
Int32 opRes = Get_Extract_OperationResult(decoder);
|
|
1075
1027
|
if (opRes == NExtract::NOperationResult::kOK
|
|
1076
1028
|
&& hres != S_OK)
|
|
1077
1029
|
opRes = NExtract::NOperationResult::kDataError;
|
|
1078
1030
|
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1031
|
+
realOutStream.Release();
|
|
1081
1032
|
return extractCallback->SetOperationResult(opRes);
|
|
1082
1033
|
COM_TRY_END
|
|
1083
1034
|
}
|
|
1084
1035
|
|
|
1085
1036
|
|
|
1086
1037
|
|
|
1087
|
-
#ifndef
|
|
1038
|
+
#ifndef EXTRACT_ONLY
|
|
1088
1039
|
|
|
1089
|
-
|
|
1040
|
+
STDMETHODIMP CHandler::GetFileTimeType(UInt32 *timeType)
|
|
1090
1041
|
{
|
|
1091
|
-
*timeType =
|
|
1092
|
-
// *timeType = NFileTimeType::kUnix;
|
|
1042
|
+
*timeType = NFileTimeType::kUnix;
|
|
1093
1043
|
return S_OK;
|
|
1094
1044
|
}
|
|
1095
1045
|
|
|
1096
1046
|
|
|
1097
|
-
|
|
1098
|
-
IArchiveUpdateCallback *updateCallback)
|
|
1047
|
+
STDMETHODIMP CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numItems,
|
|
1048
|
+
IArchiveUpdateCallback *updateCallback)
|
|
1099
1049
|
{
|
|
1100
1050
|
COM_TRY_BEGIN
|
|
1101
1051
|
|
|
@@ -1110,25 +1060,17 @@ Z7_COM7F_IMF(CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numIt
|
|
|
1110
1060
|
if (numItems != 1)
|
|
1111
1061
|
return E_INVALIDARG;
|
|
1112
1062
|
|
|
1113
|
-
{
|
|
1114
|
-
Z7_DECL_CMyComPtr_QI_FROM(
|
|
1115
|
-
IStreamSetRestriction,
|
|
1116
|
-
setRestriction, outStream)
|
|
1117
|
-
if (setRestriction)
|
|
1118
|
-
RINOK(setRestriction->SetRestriction(0, 0))
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
1063
|
Int32 newData, newProps;
|
|
1122
1064
|
UInt32 indexInArchive;
|
|
1123
1065
|
if (!updateCallback)
|
|
1124
1066
|
return E_FAIL;
|
|
1125
|
-
RINOK(updateCallback->GetUpdateItemInfo(0, &newData, &newProps, &indexInArchive))
|
|
1067
|
+
RINOK(updateCallback->GetUpdateItemInfo(0, &newData, &newProps, &indexInArchive));
|
|
1126
1068
|
|
|
1127
1069
|
if (IntToBool(newProps))
|
|
1128
1070
|
{
|
|
1129
1071
|
{
|
|
1130
1072
|
NCOM::CPropVariant prop;
|
|
1131
|
-
RINOK(updateCallback->GetProperty(0, kpidIsDir, &prop))
|
|
1073
|
+
RINOK(updateCallback->GetProperty(0, kpidIsDir, &prop));
|
|
1132
1074
|
if (prop.vt != VT_EMPTY)
|
|
1133
1075
|
if (prop.vt != VT_BOOL || prop.boolVal != VARIANT_FALSE)
|
|
1134
1076
|
return E_INVALIDARG;
|
|
@@ -1137,112 +1079,43 @@ Z7_COM7F_IMF(CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numIt
|
|
|
1137
1079
|
|
|
1138
1080
|
if (IntToBool(newData))
|
|
1139
1081
|
{
|
|
1140
|
-
UInt64
|
|
1082
|
+
UInt64 size;
|
|
1141
1083
|
{
|
|
1142
1084
|
NCOM::CPropVariant prop;
|
|
1143
|
-
RINOK(updateCallback->GetProperty(0, kpidSize, &prop))
|
|
1085
|
+
RINOK(updateCallback->GetProperty(0, kpidSize, &prop));
|
|
1144
1086
|
if (prop.vt != VT_UI8)
|
|
1145
1087
|
return E_INVALIDARG;
|
|
1146
|
-
|
|
1088
|
+
size = prop.uhVal.QuadPart;
|
|
1089
|
+
RINOK(updateCallback->SetTotal(size));
|
|
1147
1090
|
}
|
|
1148
1091
|
|
|
1149
|
-
|
|
1092
|
+
NCompress::NXz::CEncoder *encoderSpec = new NCompress::NXz::CEncoder;
|
|
1093
|
+
CMyComPtr<ICompressCoder> encoder = encoderSpec;
|
|
1150
1094
|
|
|
1151
|
-
CXzProps &xzProps =
|
|
1095
|
+
CXzProps &xzProps = encoderSpec->xzProps;
|
|
1152
1096
|
CLzma2EncProps &lzma2Props = xzProps.lzma2Props;
|
|
1153
1097
|
|
|
1154
1098
|
lzma2Props.lzmaProps.level = GetLevel();
|
|
1155
1099
|
|
|
1156
|
-
xzProps.reduceSize =
|
|
1100
|
+
xzProps.reduceSize = size;
|
|
1157
1101
|
/*
|
|
1158
1102
|
{
|
|
1159
|
-
NCOM::CPropVariant prop = (UInt64)
|
|
1160
|
-
RINOK(
|
|
1103
|
+
NCOM::CPropVariant prop = (UInt64)size;
|
|
1104
|
+
RINOK(encoderSpec->SetCoderProp(NCoderPropID::kReduceSize, prop));
|
|
1161
1105
|
}
|
|
1162
1106
|
*/
|
|
1163
1107
|
|
|
1164
|
-
#ifndef
|
|
1165
|
-
|
|
1166
|
-
#
|
|
1167
|
-
// we don't use chunk multithreading inside lzma2 stream.
|
|
1168
|
-
// so we don't set xzProps.lzma2Props.numThreadGroups.
|
|
1169
|
-
if (_numThreadGroups > 1)
|
|
1170
|
-
xzProps.numThreadGroups = _numThreadGroups;
|
|
1171
|
-
#endif
|
|
1172
|
-
|
|
1173
|
-
UInt32 numThreads = _numThreads;
|
|
1174
|
-
|
|
1175
|
-
const UInt32 kNumThreads_Max = 1024;
|
|
1176
|
-
if (numThreads > kNumThreads_Max)
|
|
1177
|
-
numThreads = kNumThreads_Max;
|
|
1178
|
-
|
|
1179
|
-
if (!_numThreads_WasForced
|
|
1180
|
-
&& _numThreads >= 1
|
|
1181
|
-
&& _memUsage_WasSet)
|
|
1182
|
-
{
|
|
1183
|
-
COneMethodInfo oneMethodInfo;
|
|
1184
|
-
if (!_methods.IsEmpty())
|
|
1185
|
-
oneMethodInfo = _methods[0];
|
|
1186
|
-
|
|
1187
|
-
SetGlobalLevelTo(oneMethodInfo);
|
|
1188
|
-
|
|
1189
|
-
const bool numThreads_WasSpecifiedInMethod = (oneMethodInfo.Get_NumThreads() >= 0);
|
|
1190
|
-
if (!numThreads_WasSpecifiedInMethod)
|
|
1191
|
-
{
|
|
1192
|
-
// here we set the (NCoderPropID::kNumThreads) property in each method, only if there is no such property already
|
|
1193
|
-
CMultiMethodProps::SetMethodThreadsTo_IfNotFinded(oneMethodInfo, numThreads);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
// printf("\n====== GetProcessGroupAffinity : \n");
|
|
1197
|
-
|
|
1198
|
-
UInt64 cs = _numSolidBytes;
|
|
1199
|
-
if (cs != XZ_PROPS_BLOCK_SIZE_AUTO)
|
|
1200
|
-
oneMethodInfo.AddProp_BlockSize2(cs);
|
|
1201
|
-
cs = oneMethodInfo.Get_Xz_BlockSize();
|
|
1202
|
-
|
|
1203
|
-
if (cs != XZ_PROPS_BLOCK_SIZE_AUTO &&
|
|
1204
|
-
cs != XZ_PROPS_BLOCK_SIZE_SOLID)
|
|
1205
|
-
{
|
|
1206
|
-
const UInt32 lzmaThreads = oneMethodInfo.Get_Lzma_NumThreads();
|
|
1207
|
-
const UInt32 numBlockThreads_Original = numThreads / lzmaThreads;
|
|
1208
|
-
|
|
1209
|
-
if (numBlockThreads_Original > 1)
|
|
1210
|
-
{
|
|
1211
|
-
UInt32 numBlockThreads = numBlockThreads_Original;
|
|
1212
|
-
{
|
|
1213
|
-
const UInt64 lzmaMemUsage = oneMethodInfo.Get_Lzma_MemUsage(false);
|
|
1214
|
-
for (; numBlockThreads > 1; numBlockThreads--)
|
|
1215
|
-
{
|
|
1216
|
-
UInt64 size = numBlockThreads * (lzmaMemUsage + cs);
|
|
1217
|
-
UInt32 numPackChunks = numBlockThreads + (numBlockThreads / 8) + 1;
|
|
1218
|
-
if (cs < ((UInt32)1 << 26)) numPackChunks++;
|
|
1219
|
-
if (cs < ((UInt32)1 << 24)) numPackChunks++;
|
|
1220
|
-
if (cs < ((UInt32)1 << 22)) numPackChunks++;
|
|
1221
|
-
size += numPackChunks * cs;
|
|
1222
|
-
// printf("\nnumBlockThreads = %d, size = %d\n", (unsigned)(numBlockThreads), (unsigned)(size >> 20));
|
|
1223
|
-
if (size <= _memUsage_Compress)
|
|
1224
|
-
break;
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
if (numBlockThreads == 0)
|
|
1228
|
-
numBlockThreads = 1;
|
|
1229
|
-
if (numBlockThreads != numBlockThreads_Original)
|
|
1230
|
-
numThreads = numBlockThreads * lzmaThreads;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
xzProps.numTotalThreads = (int)numThreads;
|
|
1235
|
-
|
|
1236
|
-
#endif // Z7_ST
|
|
1237
|
-
|
|
1108
|
+
#ifndef _7ZIP_ST
|
|
1109
|
+
xzProps.numTotalThreads = _numThreads;
|
|
1110
|
+
#endif
|
|
1238
1111
|
|
|
1239
1112
|
xzProps.blockSize = _numSolidBytes;
|
|
1240
|
-
if (_numSolidBytes ==
|
|
1113
|
+
if (_numSolidBytes == XZ_PROPS__BLOCK_SIZE__SOLID)
|
|
1241
1114
|
{
|
|
1242
|
-
xzProps.lzma2Props.blockSize =
|
|
1115
|
+
xzProps.lzma2Props.blockSize = LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID;
|
|
1243
1116
|
}
|
|
1244
1117
|
|
|
1245
|
-
RINOK(
|
|
1118
|
+
RINOK(encoderSpec->SetCheckSize(_crcSize));
|
|
1246
1119
|
|
|
1247
1120
|
{
|
|
1248
1121
|
CXzFilterProps &filter = xzProps.filterProps;
|
|
@@ -1277,40 +1150,25 @@ Z7_COM7F_IMF(CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numIt
|
|
|
1277
1150
|
FOR_VECTOR (j, m.Props)
|
|
1278
1151
|
{
|
|
1279
1152
|
const CProp &prop = m.Props[j];
|
|
1280
|
-
RINOK(
|
|
1153
|
+
RINOK(encoderSpec->SetCoderProp(prop.Id, prop.Value));
|
|
1281
1154
|
}
|
|
1282
1155
|
}
|
|
1283
1156
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
if (streamGetSize)
|
|
1293
|
-
{
|
|
1294
|
-
UInt64 size;
|
|
1295
|
-
if (streamGetSize->GetSize(&size) == S_OK)
|
|
1296
|
-
dataSize = size;
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
RINOK(updateCallback->SetTotal(dataSize))
|
|
1300
|
-
CMyComPtr2_Create<ICompressProgressInfo, CLocalProgress> lps;
|
|
1301
|
-
lps->Init(updateCallback, true);
|
|
1302
|
-
RINOK(encoder.Interface()->Code(fileInStream, outStream, NULL, NULL, lps))
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
return updateCallback->SetOperationResult(NArchive::NUpdate::NOperationResult::kOK);
|
|
1157
|
+
CMyComPtr<ISequentialInStream> fileInStream;
|
|
1158
|
+
RINOK(updateCallback->GetStream(0, &fileInStream));
|
|
1159
|
+
|
|
1160
|
+
CLocalProgress *lps = new CLocalProgress;
|
|
1161
|
+
CMyComPtr<ICompressProgressInfo> progress = lps;
|
|
1162
|
+
lps->Init(updateCallback, true);
|
|
1163
|
+
|
|
1164
|
+
return encoderSpec->Code(fileInStream, outStream, NULL, NULL, progress);
|
|
1306
1165
|
}
|
|
1307
1166
|
|
|
1308
1167
|
if (indexInArchive != 0)
|
|
1309
1168
|
return E_INVALIDARG;
|
|
1310
1169
|
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
opCallback, updateCallback)
|
|
1170
|
+
CMyComPtr<IArchiveUpdateCallbackFile> opCallback;
|
|
1171
|
+
updateCallback->QueryInterface(IID_IArchiveUpdateCallbackFile, (void **)&opCallback);
|
|
1314
1172
|
if (opCallback)
|
|
1315
1173
|
{
|
|
1316
1174
|
RINOK(opCallback->ReportOperation(NEventIndexType::kInArcIndex, 0, NUpdateNotifyOp::kReplicate))
|
|
@@ -1318,18 +1176,16 @@ Z7_COM7F_IMF(CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numIt
|
|
|
1318
1176
|
|
|
1319
1177
|
if (_stream)
|
|
1320
1178
|
{
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
RINOK(updateCallback->SetTotal(stat->InSize))
|
|
1325
|
-
}
|
|
1326
|
-
RINOK(InStream_SeekToBegin(_stream))
|
|
1179
|
+
if (_phySize_Defined)
|
|
1180
|
+
RINOK(updateCallback->SetTotal(_stat.InSize));
|
|
1181
|
+
RINOK(_stream->Seek(0, STREAM_SEEK_SET, NULL));
|
|
1327
1182
|
}
|
|
1328
1183
|
|
|
1329
|
-
|
|
1184
|
+
CLocalProgress *lps = new CLocalProgress;
|
|
1185
|
+
CMyComPtr<ICompressProgressInfo> progress = lps;
|
|
1330
1186
|
lps->Init(updateCallback, true);
|
|
1331
1187
|
|
|
1332
|
-
return NCompress::CopyStream(_stream, outStream,
|
|
1188
|
+
return NCompress::CopyStream(_stream, outStream, progress);
|
|
1333
1189
|
|
|
1334
1190
|
COM_TRY_END
|
|
1335
1191
|
}
|
|
@@ -1344,7 +1200,7 @@ HRESULT CHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &value)
|
|
|
1344
1200
|
if (name.IsEmpty())
|
|
1345
1201
|
return E_INVALIDARG;
|
|
1346
1202
|
|
|
1347
|
-
#ifndef
|
|
1203
|
+
#ifndef EXTRACT_ONLY
|
|
1348
1204
|
|
|
1349
1205
|
if (name[0] == L's')
|
|
1350
1206
|
{
|
|
@@ -1365,7 +1221,7 @@ HRESULT CHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &value)
|
|
|
1365
1221
|
}
|
|
1366
1222
|
if (!useStr)
|
|
1367
1223
|
{
|
|
1368
|
-
_numSolidBytes = (isSolid ?
|
|
1224
|
+
_numSolidBytes = (isSolid ? XZ_PROPS__BLOCK_SIZE__SOLID : XZ_PROPS__BLOCK_SIZE__AUTO);
|
|
1369
1225
|
return S_OK;
|
|
1370
1226
|
}
|
|
1371
1227
|
}
|
|
@@ -1391,7 +1247,7 @@ HRESULT CHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &value)
|
|
|
1391
1247
|
|
|
1392
1248
|
|
|
1393
1249
|
|
|
1394
|
-
|
|
1250
|
+
STDMETHODIMP CHandler::SetProperties(const wchar_t * const *names, const PROPVARIANT *values, UInt32 numProps)
|
|
1395
1251
|
{
|
|
1396
1252
|
COM_TRY_BEGIN
|
|
1397
1253
|
|
|
@@ -1399,15 +1255,15 @@ Z7_COM7F_IMF(CHandler::SetProperties(const wchar_t * const *names, const PROPVAR
|
|
|
1399
1255
|
|
|
1400
1256
|
for (UInt32 i = 0; i < numProps; i++)
|
|
1401
1257
|
{
|
|
1402
|
-
RINOK(SetProperty(names[i], values[i]))
|
|
1258
|
+
RINOK(SetProperty(names[i], values[i]));
|
|
1403
1259
|
}
|
|
1404
1260
|
|
|
1405
|
-
#ifndef
|
|
1261
|
+
#ifndef EXTRACT_ONLY
|
|
1406
1262
|
|
|
1407
1263
|
if (!_filterMethod.MethodName.IsEmpty())
|
|
1408
1264
|
{
|
|
1409
1265
|
unsigned k;
|
|
1410
|
-
for (k = 0; k <
|
|
1266
|
+
for (k = 0; k < ARRAY_SIZE(g_NamePairs); k++)
|
|
1411
1267
|
{
|
|
1412
1268
|
const CMethodNamePair &pair = g_NamePairs[k];
|
|
1413
1269
|
if (StringsAreEqualNoCase_Ascii(_filterMethod.MethodName, pair.Name))
|
|
@@ -1416,7 +1272,7 @@ Z7_COM7F_IMF(CHandler::SetProperties(const wchar_t * const *names, const PROPVAR
|
|
|
1416
1272
|
break;
|
|
1417
1273
|
}
|
|
1418
1274
|
}
|
|
1419
|
-
if (k ==
|
|
1275
|
+
if (k == ARRAY_SIZE(g_NamePairs))
|
|
1420
1276
|
return E_INVALIDARG;
|
|
1421
1277
|
}
|
|
1422
1278
|
|
|
@@ -1444,9 +1300,9 @@ Z7_COM7F_IMF(CHandler::SetProperties(const wchar_t * const *names, const PROPVAR
|
|
|
1444
1300
|
|
|
1445
1301
|
REGISTER_ARC_IO(
|
|
1446
1302
|
"xz", "xz txz", "* .tar", 0xC,
|
|
1447
|
-
XZ_SIG,
|
|
1448
|
-
,
|
|
1449
|
-
,
|
|
1450
|
-
|
|
1303
|
+
XZ_SIG,
|
|
1304
|
+
0,
|
|
1305
|
+
NArcInfoFlags::kKeepName,
|
|
1306
|
+
NULL)
|
|
1451
1307
|
|
|
1452
1308
|
}}
|