react-native-update 10.34.6 → 10.34.8

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.
Files changed (748) hide show
  1. package/.gitmodules +0 -6
  2. package/harmony/pushy/src/main/cpp/CMakeLists.txt +4 -2
  3. package/package.json +1 -1
  4. package/react-native-update.podspec +2 -3
  5. package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +0 -153
  6. package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +0 -48
  7. package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +0 -157
  8. package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +0 -307
  9. package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +0 -83
  10. package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +0 -47
  11. package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +0 -191
  12. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +0 -37
  13. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +0 -7
  14. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +0 -1
  15. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +0 -1
  16. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +0 -18
  17. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +0 -20
  18. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +0 -28
  19. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +0 -8
  20. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +0 -8
  21. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +0 -219
  22. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +0 -156
  23. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +0 -65
  24. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +0 -105
  25. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +0 -237
  26. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +0 -3
  27. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +0 -318
  28. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +0 -3
  29. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +0 -182
  30. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +0 -3
  31. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -30
  32. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  33. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +0 -408
  34. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +0 -573
  35. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +0 -396
  36. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +0 -268
  37. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +0 -361
  38. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +0 -301
  39. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +0 -411
  40. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +0 -504
  41. package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +0 -344
  42. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +0 -166
  43. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +0 -59
  44. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +0 -1152
  45. package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +0 -995
  46. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +0 -797
  47. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +0 -65
  48. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +0 -200
  49. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +0 -178
  50. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +0 -357
  51. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +0 -87
  52. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +0 -151
  53. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +0 -770
  54. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +0 -236
  55. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +0 -47
  56. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +0 -112
  57. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +0 -53
  58. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +0 -61
  59. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +0 -331
  60. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +0 -144
  61. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +0 -176
  62. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +0 -84
  63. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +0 -146
  64. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +0 -61
  65. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +0 -152
  66. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +0 -76
  67. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +0 -524
  68. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +0 -259
  69. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +0 -1570
  70. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +0 -290
  71. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +0 -1221
  72. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +0 -1025
  73. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +0 -116
  74. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -72
  75. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +0 -213
  76. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +0 -63
  77. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +0 -170
  78. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +0 -86
  79. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +0 -89
  80. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c +0 -13
  81. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +0 -398
  82. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +0 -194
  83. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +0 -13
  84. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +0 -204
  85. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +0 -207
  86. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +0 -815
  87. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +0 -586
  88. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +0 -381
  89. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +0 -352
  90. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +0 -137
  91. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +0 -137
  92. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +0 -70
  93. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +0 -628
  94. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +0 -87
  95. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +0 -363
  96. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +0 -139
  97. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +0 -68
  98. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +0 -115
  99. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +0 -342
  100. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +0 -94
  101. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +0 -52
  102. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +0 -2292
  103. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +0 -215
  104. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +0 -165
  105. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +0 -251
  106. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +0 -174
  107. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +0 -73
  108. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +0 -367
  109. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +0 -92
  110. package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +0 -301
  111. package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +0 -292
  112. package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +0 -436
  113. package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +0 -417
  114. package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +0 -100
  115. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +0 -147
  116. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +0 -147
  117. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +0 -237
  118. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +0 -1258
  119. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +0 -205
  120. package/harmony/pushy/src/main/cpp/lzma/C/7z.h +0 -202
  121. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +0 -80
  122. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +0 -19
  123. package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +0 -1771
  124. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.c +0 -36
  125. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +0 -35
  126. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf2.c +0 -52
  127. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +0 -128
  128. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +0 -25
  129. package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +0 -115
  130. package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +0 -591
  131. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +0 -286
  132. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +0 -83
  133. package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +0 -176
  134. package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +0 -375
  135. package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +0 -27
  136. package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.rc +0 -55
  137. package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +0 -306
  138. package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +0 -38
  139. package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +0 -184
  140. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +0 -455
  141. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +0 -51
  142. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +0 -257
  143. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +0 -146
  144. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +0 -311
  145. package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +0 -230
  146. package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +0 -64
  147. package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +0 -82
  148. package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +0 -53
  149. package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +0 -33
  150. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +0 -218
  151. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +0 -336
  152. package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +0 -64
  153. package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +0 -19
  154. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +0 -108
  155. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +0 -20
  156. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +0 -1127
  157. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +0 -121
  158. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +0 -853
  159. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +0 -101
  160. package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +0 -57
  161. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +0 -488
  162. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +0 -120
  163. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +0 -1082
  164. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +0 -79
  165. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +0 -803
  166. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +0 -55
  167. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +0 -111
  168. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +0 -54
  169. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +0 -106
  170. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +0 -1185
  171. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +0 -234
  172. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +0 -2976
  173. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +0 -76
  174. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +0 -40
  175. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +0 -131
  176. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +0 -601
  177. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +0 -141
  178. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +0 -1138
  179. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +0 -201
  180. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +0 -85
  181. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +0 -712
  182. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +0 -142
  183. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +0 -191
  184. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +0 -187
  185. package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +0 -10
  186. package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +0 -30
  187. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +0 -248
  188. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +0 -26
  189. package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +0 -141
  190. package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +0 -18
  191. package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +0 -95
  192. package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +0 -70
  193. package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.c +0 -396
  194. package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.h +0 -31
  195. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +0 -241
  196. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsw +0 -29
  197. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +0 -686
  198. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.c +0 -4
  199. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +0 -10
  200. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +0 -40
  201. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +0 -75
  202. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +0 -258
  203. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -168
  204. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +0 -29
  205. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -28
  206. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +0 -44
  207. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +0 -4
  208. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +0 -178
  209. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +0 -29
  210. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +0 -14
  211. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +0 -34
  212. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +0 -3
  213. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +0 -4
  214. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +0 -10
  215. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +0 -640
  216. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +0 -231
  217. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +0 -29
  218. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +0 -37
  219. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +0 -38
  220. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +0 -5
  221. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
  222. package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +0 -90
  223. package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +0 -460
  224. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +0 -86
  225. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +0 -26
  226. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +0 -69
  227. package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +0 -2766
  228. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +0 -1329
  229. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +0 -60
  230. package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +0 -319
  231. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +0 -240
  232. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +0 -7
  233. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +0 -3
  234. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +0 -76
  235. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +0 -569
  236. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +0 -70
  237. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +0 -678
  238. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +0 -92
  239. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +0 -423
  240. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +0 -139
  241. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +0 -61
  242. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +0 -763
  243. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +0 -181
  244. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +0 -942
  245. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +0 -19
  246. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +0 -148
  247. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +0 -1666
  248. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +0 -445
  249. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +0 -202
  250. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +0 -901
  251. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +0 -335
  252. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +0 -174
  253. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +0 -22
  254. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +0 -21
  255. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +0 -22
  256. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +0 -35
  257. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +0 -2500
  258. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +0 -139
  259. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +0 -3
  260. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +0 -8
  261. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -12
  262. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -19
  263. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +0 -151
  264. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +0 -1125
  265. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +0 -447
  266. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +0 -17
  267. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +0 -25
  268. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +0 -232
  269. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +0 -110
  270. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +0 -46
  271. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +0 -67
  272. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +0 -88
  273. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +0 -28
  274. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +0 -191
  275. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +0 -89
  276. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +0 -18
  277. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +0 -37
  278. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +0 -3
  279. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +0 -6
  280. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +0 -8
  281. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +0 -122
  282. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +0 -608
  283. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
  284. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +0 -629
  285. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +0 -359
  286. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +0 -8
  287. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +0 -1308
  288. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +0 -11
  289. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +0 -9
  290. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +0 -1910
  291. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +0 -29
  292. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +0 -3
  293. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +0 -8
  294. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +0 -154
  295. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +0 -7
  296. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +0 -3
  297. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +0 -8
  298. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +0 -96
  299. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +0 -5
  300. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +0 -3
  301. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +0 -8
  302. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +0 -116
  303. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +0 -5
  304. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +0 -799
  305. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +0 -477
  306. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +0 -29
  307. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +0 -3
  308. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +0 -8
  309. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +0 -59
  310. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +0 -195
  311. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +0 -3
  312. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +0 -715
  313. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
  314. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +0 -912
  315. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +0 -29
  316. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +0 -482
  317. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +0 -3
  318. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +0 -8
  319. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +0 -134
  320. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +0 -5
  321. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +0 -246
  322. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +0 -86
  323. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +0 -137
  324. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +0 -11
  325. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +0 -803
  326. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +0 -29
  327. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +0 -364
  328. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +0 -3
  329. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +0 -13
  330. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +0 -117
  331. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +0 -6
  332. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +0 -16
  333. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
  334. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
  335. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +0 -988
  336. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +0 -29
  337. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +0 -241
  338. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +0 -3
  339. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +0 -14
  340. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +0 -153
  341. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +0 -1
  342. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -50
  343. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +0 -250
  344. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +0 -120
  345. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +0 -536
  346. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +0 -192
  347. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +0 -46
  348. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +0 -10
  349. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +0 -475
  350. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +0 -166
  351. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +0 -435
  352. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +0 -205
  353. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +0 -163
  354. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +0 -92
  355. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +0 -127
  356. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +0 -48
  357. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +0 -367
  358. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +0 -252
  359. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +0 -3
  360. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +0 -6
  361. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +0 -3
  362. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +0 -10
  363. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +0 -509
  364. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +0 -264
  365. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +0 -39
  366. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +0 -26
  367. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +0 -111
  368. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +0 -66
  369. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +0 -51
  370. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +0 -35
  371. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +0 -108
  372. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +0 -78
  373. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +0 -106
  374. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +0 -8
  375. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +0 -156
  376. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +0 -60
  377. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +0 -285
  378. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +0 -157
  379. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +0 -56
  380. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +0 -13
  381. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +0 -57
  382. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +0 -26
  383. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +0 -48
  384. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +0 -24
  385. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +0 -666
  386. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +0 -120
  387. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +0 -24
  388. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +0 -24
  389. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +0 -31
  390. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +0 -17
  391. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +0 -23
  392. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +0 -35
  393. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +0 -41
  394. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +0 -92
  395. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +0 -344
  396. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +0 -120
  397. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +0 -49
  398. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +0 -15
  399. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +0 -128
  400. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +0 -265
  401. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +0 -96
  402. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +0 -122
  403. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +0 -42
  404. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +0 -22
  405. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +0 -343
  406. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +0 -113
  407. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +0 -182
  408. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +0 -46
  409. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +0 -22
  410. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +0 -170
  411. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +0 -86
  412. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +0 -152
  413. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +0 -58
  414. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +0 -22
  415. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +0 -8
  416. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +0 -150
  417. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +0 -92
  418. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +0 -245
  419. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +0 -46
  420. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +0 -8
  421. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +0 -8
  422. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +0 -280
  423. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +0 -118
  424. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +0 -17
  425. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +0 -112
  426. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +0 -57
  427. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +0 -16
  428. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +0 -233
  429. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +0 -40
  430. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +0 -8
  431. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +0 -84
  432. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +0 -220
  433. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +0 -399
  434. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +0 -28
  435. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +0 -23
  436. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +0 -19
  437. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +0 -127
  438. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +0 -5
  439. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersion.h +0 -2
  440. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +0 -2
  441. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +0 -127
  442. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +0 -3
  443. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +0 -993
  444. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +0 -235
  445. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +0 -29
  446. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +0 -3
  447. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +0 -8
  448. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +0 -28
  449. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +0 -3
  450. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +0 -1295
  451. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +0 -136
  452. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +0 -1715
  453. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +0 -403
  454. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +0 -155
  455. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +0 -10
  456. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +0 -161
  457. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +0 -112
  458. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +0 -3618
  459. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +0 -77
  460. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +0 -37
  461. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +0 -11
  462. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +0 -190
  463. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +0 -1096
  464. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +0 -42
  465. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +0 -27
  466. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +0 -482
  467. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +0 -94
  468. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +0 -34
  469. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +0 -280
  470. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +0 -31
  471. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +0 -347
  472. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +0 -110
  473. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +0 -114
  474. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +0 -1074
  475. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +0 -424
  476. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +0 -3553
  477. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +0 -436
  478. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +0 -668
  479. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +0 -18
  480. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +0 -14
  481. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +0 -80
  482. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +0 -10
  483. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +0 -25
  484. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +0 -10
  485. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +0 -8
  486. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +0 -19
  487. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +0 -16
  488. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +0 -1704
  489. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +0 -200
  490. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +0 -64
  491. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +0 -66
  492. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +0 -771
  493. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +0 -162
  494. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +0 -233
  495. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +0 -27
  496. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +0 -70
  497. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +0 -55
  498. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +0 -94
  499. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +0 -26
  500. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +0 -130
  501. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +0 -41
  502. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +0 -14
  503. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +0 -43
  504. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -13
  505. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +0 -69
  506. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +0 -33
  507. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +0 -825
  508. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +0 -164
  509. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +0 -367
  510. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +0 -48
  511. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +0 -1359
  512. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +0 -27
  513. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +0 -1154
  514. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +0 -175
  515. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +0 -115
  516. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +0 -66
  517. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +0 -183
  518. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +0 -62
  519. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +0 -3
  520. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +0 -8
  521. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +0 -702
  522. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +0 -124
  523. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +0 -110
  524. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +0 -27
  525. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +0 -64
  526. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +0 -7
  527. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +0 -37
  528. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +0 -16
  529. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +0 -1025
  530. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +0 -21
  531. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +0 -9
  532. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +0 -64
  533. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +0 -28
  534. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +0 -4
  535. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +0 -16
  536. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +0 -1037
  537. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +0 -328
  538. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +0 -28
  539. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +0 -14
  540. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +0 -40
  541. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +0 -76
  542. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +0 -122
  543. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +0 -69
  544. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +0 -91
  545. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +0 -17
  546. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +0 -58
  547. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +0 -28
  548. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -14
  549. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +0 -5
  550. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +0 -196
  551. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +0 -170
  552. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +0 -12
  553. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +0 -1337
  554. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +0 -351
  555. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +0 -40
  556. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +0 -48
  557. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +0 -80
  558. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +0 -3
  559. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +0 -23
  560. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +0 -10
  561. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -95
  562. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +0 -255
  563. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +0 -62
  564. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +0 -177
  565. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -15
  566. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +0 -59
  567. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +0 -418
  568. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +0 -113
  569. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +0 -98
  570. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +0 -24
  571. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +0 -280
  572. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +0 -38
  573. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +0 -51
  574. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +0 -27
  575. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +0 -2
  576. package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +0 -156
  577. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +0 -35
  578. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +0 -7
  579. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +0 -92
  580. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +0 -53
  581. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +0 -21
  582. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +0 -197
  583. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +0 -63
  584. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +0 -43
  585. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +0 -98
  586. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +0 -15
  587. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +0 -64
  588. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +0 -193
  589. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +0 -28
  590. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +0 -23
  591. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +0 -132
  592. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +0 -18
  593. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +0 -259
  594. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +0 -100
  595. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +0 -277
  596. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +0 -14
  597. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +0 -54
  598. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +0 -45
  599. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +0 -42
  600. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +0 -1659
  601. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +0 -868
  602. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +0 -35
  603. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +0 -17
  604. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.cpp +0 -3
  605. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +0 -634
  606. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +0 -145
  607. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +0 -231
  608. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +0 -163
  609. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +0 -88
  610. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +0 -40
  611. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +0 -8
  612. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +0 -89
  613. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +0 -38
  614. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +0 -163
  615. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +0 -71
  616. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +0 -319
  617. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +0 -88
  618. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +0 -144
  619. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +0 -21
  620. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +0 -124
  621. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +0 -19
  622. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +0 -288
  623. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +0 -12
  624. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +0 -676
  625. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +0 -149
  626. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +0 -7
  627. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +0 -42
  628. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +0 -70
  629. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +0 -185
  630. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +0 -23
  631. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +0 -66
  632. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +0 -65
  633. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +0 -52
  634. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +0 -251
  635. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +0 -170
  636. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +0 -19
  637. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +0 -10
  638. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +0 -87
  639. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +0 -155
  640. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +0 -146
  641. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +0 -35
  642. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +0 -143
  643. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +0 -50
  644. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +0 -34
  645. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +0 -28
  646. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +0 -42
  647. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +0 -8
  648. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +0 -43
  649. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +0 -27
  650. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +0 -200
  651. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +0 -51
  652. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +0 -109
  653. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +0 -58
  654. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +0 -17
  655. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +0 -66
  656. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +0 -15
  657. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +0 -714
  658. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +0 -117
  659. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +0 -749
  660. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +0 -161
  661. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +0 -432
  662. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +0 -212
  663. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +0 -440
  664. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +0 -12
  665. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +0 -66
  666. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +0 -839
  667. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +0 -115
  668. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +0 -131
  669. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +0 -27
  670. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +0 -37
  671. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +0 -112
  672. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +0 -40
  673. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +0 -46
  674. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +0 -347
  675. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +0 -114
  676. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +0 -138
  677. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +0 -37
  678. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +0 -390
  679. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +0 -84
  680. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +0 -103
  681. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +0 -16
  682. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +0 -181
  683. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +0 -167
  684. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +0 -358
  685. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +0 -94
  686. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +0 -8
  687. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -10
  688. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +0 -164
  689. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +0 -142
  690. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +0 -40
  691. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +0 -38
  692. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +0 -213
  693. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +0 -32
  694. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +0 -179
  695. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +0 -284
  696. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +0 -55
  697. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +0 -274
  698. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +0 -72
  699. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +0 -47
  700. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +0 -24
  701. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +0 -367
  702. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +0 -132
  703. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +0 -110
  704. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +0 -76
  705. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +0 -398
  706. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +0 -1480
  707. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +0 -364
  708. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +0 -90
  709. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +0 -20
  710. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +0 -340
  711. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +0 -29
  712. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +0 -70
  713. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +0 -42
  714. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +0 -234
  715. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +0 -117
  716. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +0 -157
  717. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/ICoder.cs +0 -157
  718. package/harmony/pushy/src/main/cpp/lzma/DOC/7zC.txt +0 -187
  719. package/harmony/pushy/src/main/cpp/lzma/DOC/7zFormat.txt +0 -469
  720. package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +0 -173
  721. package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +0 -166
  722. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +0 -446
  723. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +0 -357
  724. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +0 -1176
  725. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +0 -328
  726. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/CRC.java +0 -52
  727. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +0 -382
  728. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +0 -131
  729. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +0 -85
  730. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +0 -88
  731. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +0 -329
  732. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +0 -1416
  733. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +0 -55
  734. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +0 -99
  735. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +0 -88
  736. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +0 -151
  737. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +0 -6
  738. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +0 -253
  739. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +0 -392
  740. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
  741. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
  742. package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
  743. package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
  744. package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
  745. package/harmony/pushy/src/main/cpp/lzma/bin/installer/config.txt +0 -5
  746. package/harmony/pushy/src/main/cpp/lzma/bin/installer/cr.bat +0 -5
  747. package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
  748. package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
@@ -1,2500 +0,0 @@
1
- // 7zUpdate.cpp
2
-
3
- #include "StdAfx.h"
4
-
5
- #include "../../../../C/CpuArch.h"
6
-
7
- #include "../../../Common/Wildcard.h"
8
-
9
- #include "../../Common/CreateCoder.h"
10
- #include "../../Common/LimitedStreams.h"
11
- #include "../../Common/ProgressUtils.h"
12
-
13
- #include "../../Compress/CopyCoder.h"
14
-
15
- #include "../Common/ItemNameUtils.h"
16
-
17
- #include "7zDecode.h"
18
- #include "7zEncode.h"
19
- #include "7zFolderInStream.h"
20
- #include "7zHandler.h"
21
- #include "7zOut.h"
22
- #include "7zUpdate.h"
23
-
24
- namespace NArchive {
25
- namespace N7z {
26
-
27
-
28
- #define k_X86 k_BCJ
29
-
30
- struct CFilterMode
31
- {
32
- UInt32 Id;
33
- UInt32 Delta;
34
-
35
- CFilterMode(): Id(0), Delta(0) {}
36
-
37
- void SetDelta()
38
- {
39
- if (Id == k_IA64)
40
- Delta = 16;
41
- else if (Id == k_ARM || Id == k_PPC || Id == k_SPARC)
42
- Delta = 4;
43
- else if (Id == k_ARMT)
44
- Delta = 2;
45
- else
46
- Delta = 0;
47
- }
48
- };
49
-
50
-
51
- /* ---------- PE ---------- */
52
-
53
- #define MZ_SIG 0x5A4D
54
-
55
- #define PE_SIG 0x00004550
56
- #define PE_OptHeader_Magic_32 0x10B
57
- #define PE_OptHeader_Magic_64 0x20B
58
- #define PE_SectHeaderSize 40
59
- #define PE_SECT_EXECUTE 0x20000000
60
-
61
- static int Parse_EXE(const Byte *buf, size_t size, CFilterMode *filterMode)
62
- {
63
- if (size < 512 || GetUi16(buf) != MZ_SIG)
64
- return 0;
65
-
66
- const Byte *p;
67
- UInt32 peOffset, optHeaderSize, filterId;
68
-
69
- peOffset = GetUi32(buf + 0x3C);
70
- if (peOffset >= 0x1000 || peOffset + 512 > size || (peOffset & 7) != 0)
71
- return 0;
72
- p = buf + peOffset;
73
- if (GetUi32(p) != PE_SIG)
74
- return 0;
75
- p += 4;
76
-
77
- switch (GetUi16(p))
78
- {
79
- case 0x014C:
80
- case 0x8664: filterId = k_X86; break;
81
-
82
- /*
83
- IMAGE_FILE_MACHINE_ARM 0x01C0 // ARM LE
84
- IMAGE_FILE_MACHINE_THUMB 0x01C2 // ARM Thumb / Thumb-2 LE
85
- IMAGE_FILE_MACHINE_ARMNT 0x01C4 // ARM Thumb-2, LE
86
- Note: We use ARM filter for 0x01C2. (WinCE 5 - 0x01C2) files mostly contain ARM code (not Thumb/Thumb-2).
87
- */
88
-
89
- case 0x01C0: // WinCE old
90
- case 0x01C2: filterId = k_ARM; break; // WinCE new
91
- case 0x01C4: filterId = k_ARMT; break; // WinRT
92
-
93
- case 0x0200: filterId = k_IA64; break;
94
- default: return 0;
95
- }
96
-
97
- optHeaderSize = GetUi16(p + 16);
98
- if (optHeaderSize > (1 << 10))
99
- return 0;
100
-
101
- p += 20; /* headerSize */
102
-
103
- switch (GetUi16(p))
104
- {
105
- case PE_OptHeader_Magic_32:
106
- case PE_OptHeader_Magic_64:
107
- break;
108
- default:
109
- return 0;
110
- }
111
-
112
- filterMode->Id = filterId;
113
- return 1;
114
- }
115
-
116
-
117
- /* ---------- ELF ---------- */
118
-
119
- #define ELF_SIG 0x464C457F
120
-
121
- #define ELF_CLASS_32 1
122
- #define ELF_CLASS_64 2
123
-
124
- #define ELF_DATA_2LSB 1
125
- #define ELF_DATA_2MSB 2
126
-
127
- static UInt16 Get16(const Byte *p, BoolInt be) { if (be) return (UInt16)GetBe16(p); return (UInt16)GetUi16(p); }
128
- static UInt32 Get32(const Byte *p, BoolInt be) { if (be) return GetBe32(p); return GetUi32(p); }
129
- // static UInt64 Get64(const Byte *p, BoolInt be) { if (be) return GetBe64(p); return GetUi64(p); }
130
-
131
- static int Parse_ELF(const Byte *buf, size_t size, CFilterMode *filterMode)
132
- {
133
- BoolInt /* is32, */ be;
134
- UInt32 filterId;
135
-
136
- if (size < 512 || buf[6] != 1) /* ver */
137
- return 0;
138
-
139
- if (GetUi32(buf) != ELF_SIG)
140
- return 0;
141
-
142
- switch (buf[4])
143
- {
144
- case ELF_CLASS_32: /* is32 = True; */ break;
145
- case ELF_CLASS_64: /* is32 = False; */ break;
146
- default: return 0;
147
- }
148
-
149
- switch (buf[5])
150
- {
151
- case ELF_DATA_2LSB: be = False; break;
152
- case ELF_DATA_2MSB: be = True; break;
153
- default: return 0;
154
- }
155
-
156
- switch (Get16(buf + 0x12, be))
157
- {
158
- case 3:
159
- case 6:
160
- case 62: filterId = k_X86; break;
161
- case 2:
162
- case 18:
163
- case 43: filterId = k_SPARC; break;
164
- case 20:
165
- case 21: if (!be) return 0; filterId = k_PPC; break;
166
- case 40: if ( be) return 0; filterId = k_ARM; break;
167
-
168
- /* Some IA-64 ELF exacutable have size that is not aligned for 16 bytes.
169
- So we don't use IA-64 filter for IA-64 ELF */
170
- // case 50: if ( be) return 0; filterId = k_IA64; break;
171
-
172
- default: return 0;
173
- }
174
-
175
- filterMode->Id = filterId;
176
- return 1;
177
- }
178
-
179
-
180
-
181
- /* ---------- Mach-O ---------- */
182
-
183
- #define MACH_SIG_BE_32 0xCEFAEDFE
184
- #define MACH_SIG_BE_64 0xCFFAEDFE
185
- #define MACH_SIG_LE_32 0xFEEDFACE
186
- #define MACH_SIG_LE_64 0xFEEDFACF
187
-
188
- #define MACH_ARCH_ABI64 (1 << 24)
189
- #define MACH_MACHINE_386 7
190
- #define MACH_MACHINE_ARM 12
191
- #define MACH_MACHINE_SPARC 14
192
- #define MACH_MACHINE_PPC 18
193
- #define MACH_MACHINE_PPC64 (MACH_ARCH_ABI64 | MACH_MACHINE_PPC)
194
- #define MACH_MACHINE_AMD64 (MACH_ARCH_ABI64 | MACH_MACHINE_386)
195
-
196
- static unsigned Parse_MACH(const Byte *buf, size_t size, CFilterMode *filterMode)
197
- {
198
- UInt32 filterId, numCommands, commandsSize;
199
-
200
- if (size < 512)
201
- return 0;
202
-
203
- BoolInt /* mode64, */ be;
204
- switch (GetUi32(buf))
205
- {
206
- case MACH_SIG_BE_32: /* mode64 = False; */ be = True; break;
207
- case MACH_SIG_BE_64: /* mode64 = True; */ be = True; break;
208
- case MACH_SIG_LE_32: /* mode64 = False; */ be = False; break;
209
- case MACH_SIG_LE_64: /* mode64 = True; */ be = False; break;
210
- default: return 0;
211
- }
212
-
213
- switch (Get32(buf + 4, be))
214
- {
215
- case MACH_MACHINE_386:
216
- case MACH_MACHINE_AMD64: filterId = k_X86; break;
217
- case MACH_MACHINE_ARM: if ( be) return 0; filterId = k_ARM; break;
218
- case MACH_MACHINE_SPARC: if (!be) return 0; filterId = k_SPARC; break;
219
- case MACH_MACHINE_PPC:
220
- case MACH_MACHINE_PPC64: if (!be) return 0; filterId = k_PPC; break;
221
- default: return 0;
222
- }
223
-
224
- numCommands = Get32(buf + 0x10, be);
225
- commandsSize = Get32(buf + 0x14, be);
226
-
227
- if (commandsSize > (1 << 24) || numCommands > (1 << 18))
228
- return 0;
229
-
230
- filterMode->Id = filterId;
231
- return 1;
232
- }
233
-
234
-
235
- /* ---------- WAV ---------- */
236
-
237
- #define WAV_SUBCHUNK_fmt 0x20746D66
238
- #define WAV_SUBCHUNK_data 0x61746164
239
-
240
- #define RIFF_SIG 0x46464952
241
-
242
- static BoolInt Parse_WAV(const Byte *buf, size_t size, CFilterMode *filterMode)
243
- {
244
- UInt32 subChunkSize, pos;
245
- if (size < 0x2C)
246
- return False;
247
-
248
- if (GetUi32(buf + 0) != RIFF_SIG ||
249
- GetUi32(buf + 8) != 0x45564157 || // WAVE
250
- GetUi32(buf + 0xC) != WAV_SUBCHUNK_fmt)
251
- return False;
252
- subChunkSize = GetUi32(buf + 0x10);
253
- /* [0x14 = format] = 1 (PCM) */
254
- if (subChunkSize < 0x10 || subChunkSize > 0x12 || GetUi16(buf + 0x14) != 1)
255
- return False;
256
-
257
- unsigned numChannels = GetUi16(buf + 0x16);
258
- unsigned bitsPerSample = GetUi16(buf + 0x22);
259
-
260
- if ((bitsPerSample & 0x7) != 0 || bitsPerSample >= 256 || numChannels >= 256)
261
- return False;
262
-
263
- pos = 0x14 + subChunkSize;
264
-
265
- const int kNumSubChunksTests = 10;
266
- // Do we need to scan more than 3 sub-chunks?
267
- for (int i = 0; i < kNumSubChunksTests; i++)
268
- {
269
- if (pos + 8 > size)
270
- return False;
271
- subChunkSize = GetUi32(buf + pos + 4);
272
- if (GetUi32(buf + pos) == WAV_SUBCHUNK_data)
273
- {
274
- unsigned delta = numChannels * (bitsPerSample >> 3);
275
- if (delta >= 256)
276
- return False;
277
- filterMode->Id = k_Delta;
278
- filterMode->Delta = delta;
279
- return True;
280
- }
281
- if (subChunkSize > (1 << 16))
282
- return False;
283
- pos += subChunkSize + 8;
284
- }
285
- return False;
286
- }
287
-
288
- static BoolInt ParseFile(const Byte *buf, size_t size, CFilterMode *filterMode)
289
- {
290
- filterMode->Id = 0;
291
- filterMode->Delta = 0;
292
-
293
- if (Parse_EXE(buf, size, filterMode)) return True;
294
- if (Parse_ELF(buf, size, filterMode)) return True;
295
- if (Parse_MACH(buf, size, filterMode)) return True;
296
- return Parse_WAV(buf, size, filterMode);
297
- }
298
-
299
-
300
-
301
-
302
- struct CFilterMode2: public CFilterMode
303
- {
304
- bool Encrypted;
305
- unsigned GroupIndex;
306
-
307
- CFilterMode2(): Encrypted(false) {}
308
-
309
- int Compare(const CFilterMode2 &m) const
310
- {
311
- if (!Encrypted)
312
- {
313
- if (m.Encrypted)
314
- return -1;
315
- }
316
- else if (!m.Encrypted)
317
- return 1;
318
-
319
- if (Id < m.Id) return -1;
320
- if (Id > m.Id) return 1;
321
-
322
- if (Delta < m.Delta) return -1;
323
- if (Delta > m.Delta) return 1;
324
-
325
- return 0;
326
- }
327
-
328
- bool operator ==(const CFilterMode2 &m) const
329
- {
330
- return Id == m.Id && Delta == m.Delta && Encrypted == m.Encrypted;
331
- }
332
- };
333
-
334
- static unsigned GetGroup(CRecordVector<CFilterMode2> &filters, const CFilterMode2 &m)
335
- {
336
- unsigned i;
337
- for (i = 0; i < filters.Size(); i++)
338
- {
339
- const CFilterMode2 &m2 = filters[i];
340
- if (m == m2)
341
- return i;
342
- /*
343
- if (m.Encrypted != m2.Encrypted)
344
- {
345
- if (!m.Encrypted)
346
- break;
347
- continue;
348
- }
349
-
350
- if (m.Id < m2.Id) break;
351
- if (m.Id != m2.Id) continue;
352
-
353
- if (m.Delta < m2.Delta) break;
354
- if (m.Delta != m2.Delta) continue;
355
- */
356
- }
357
- // filters.Insert(i, m);
358
- // return i;
359
- return filters.Add(m);
360
- }
361
-
362
- static inline bool Is86Filter(CMethodId m)
363
- {
364
- return (m == k_BCJ || m == k_BCJ2);
365
- }
366
-
367
- static inline bool IsExeFilter(CMethodId m)
368
- {
369
- switch (m)
370
- {
371
- case k_BCJ:
372
- case k_BCJ2:
373
- case k_ARM:
374
- case k_ARMT:
375
- case k_PPC:
376
- case k_SPARC:
377
- case k_IA64:
378
- return true;
379
- }
380
- return false;
381
- }
382
-
383
- static unsigned Get_FilterGroup_for_Folder(
384
- CRecordVector<CFilterMode2> &filters, const CFolderEx &f, bool extractFilter)
385
- {
386
- CFilterMode2 m;
387
- m.Id = 0;
388
- m.Delta = 0;
389
- m.Encrypted = f.IsEncrypted();
390
-
391
- if (extractFilter)
392
- {
393
- const CCoderInfo &coder = f.Coders[f.UnpackCoder];
394
-
395
- if (coder.MethodID == k_Delta)
396
- {
397
- if (coder.Props.Size() == 1)
398
- {
399
- m.Delta = (unsigned)coder.Props[0] + 1;
400
- m.Id = k_Delta;
401
- }
402
- }
403
- else if (IsExeFilter(coder.MethodID))
404
- {
405
- m.Id = (UInt32)coder.MethodID;
406
- if (m.Id == k_BCJ2)
407
- m.Id = k_BCJ;
408
- m.SetDelta();
409
- }
410
- }
411
-
412
- return GetGroup(filters, m);
413
- }
414
-
415
-
416
-
417
-
418
- static HRESULT WriteRange(IInStream *inStream, ISequentialOutStream *outStream,
419
- UInt64 position, UInt64 size, ICompressProgressInfo *progress)
420
- {
421
- RINOK(inStream->Seek(position, STREAM_SEEK_SET, 0));
422
- CLimitedSequentialInStream *streamSpec = new CLimitedSequentialInStream;
423
- CMyComPtr<CLimitedSequentialInStream> inStreamLimited(streamSpec);
424
- streamSpec->SetStream(inStream);
425
- streamSpec->Init(size);
426
-
427
- NCompress::CCopyCoder *copyCoderSpec = new NCompress::CCopyCoder;
428
- CMyComPtr<ICompressCoder> copyCoder = copyCoderSpec;
429
- RINOK(copyCoder->Code(inStreamLimited, outStream, NULL, NULL, progress));
430
- return (copyCoderSpec->TotalSize == size ? S_OK : E_FAIL);
431
- }
432
-
433
- /*
434
- unsigned CUpdateItem::GetExtensionPos() const
435
- {
436
- int slashPos = Name.ReverseFind_PathSepar();
437
- int dotPos = Name.ReverseFind_Dot();
438
- if (dotPos <= slashPos)
439
- return Name.Len();
440
- return dotPos + 1;
441
- }
442
-
443
- UString CUpdateItem::GetExtension() const
444
- {
445
- return Name.Ptr(GetExtensionPos());
446
- }
447
- */
448
-
449
- #define RINOZ(x) { int __tt = (x); if (__tt != 0) return __tt; }
450
-
451
- #define RINOZ_COMP(a, b) RINOZ(MyCompare(a, b))
452
-
453
- /*
454
- static int CompareBuffers(const CByteBuffer &a1, const CByteBuffer &a2)
455
- {
456
- size_t c1 = a1.GetCapacity();
457
- size_t c2 = a2.GetCapacity();
458
- RINOZ_COMP(c1, c2);
459
- for (size_t i = 0; i < c1; i++)
460
- RINOZ_COMP(a1[i], a2[i]);
461
- return 0;
462
- }
463
-
464
- static int CompareCoders(const CCoderInfo &c1, const CCoderInfo &c2)
465
- {
466
- RINOZ_COMP(c1.NumInStreams, c2.NumInStreams);
467
- RINOZ_COMP(c1.NumOutStreams, c2.NumOutStreams);
468
- RINOZ_COMP(c1.MethodID, c2.MethodID);
469
- return CompareBuffers(c1.Props, c2.Props);
470
- }
471
-
472
- static int CompareBonds(const CBond &b1, const CBond &b2)
473
- {
474
- RINOZ_COMP(b1.InIndex, b2.InIndex);
475
- return MyCompare(b1.OutIndex, b2.OutIndex);
476
- }
477
-
478
- static int CompareFolders(const CFolder &f1, const CFolder &f2)
479
- {
480
- int s1 = f1.Coders.Size();
481
- int s2 = f2.Coders.Size();
482
- RINOZ_COMP(s1, s2);
483
- int i;
484
- for (i = 0; i < s1; i++)
485
- RINOZ(CompareCoders(f1.Coders[i], f2.Coders[i]));
486
- s1 = f1.Bonds.Size();
487
- s2 = f2.Bonds.Size();
488
- RINOZ_COMP(s1, s2);
489
- for (i = 0; i < s1; i++)
490
- RINOZ(CompareBonds(f1.Bonds[i], f2.Bonds[i]));
491
- return 0;
492
- }
493
- */
494
-
495
- /*
496
- static int CompareFiles(const CFileItem &f1, const CFileItem &f2)
497
- {
498
- return CompareFileNames(f1.Name, f2.Name);
499
- }
500
- */
501
-
502
- struct CFolderRepack
503
- {
504
- unsigned FolderIndex;
505
- CNum NumCopyFiles;
506
- };
507
-
508
- /*
509
- static int CompareFolderRepacks(const CFolderRepack *p1, const CFolderRepack *p2, void *)
510
- {
511
- int i1 = p1->FolderIndex;
512
- int i2 = p2->FolderIndex;
513
- // In that version we don't want to parse folders here, so we don't compare folders
514
- // probably it must be improved in future
515
- // const CDbEx &db = *(const CDbEx *)param;
516
- // RINOZ(CompareFolders(
517
- // db.Folders[i1],
518
- // db.Folders[i2]));
519
-
520
- return MyCompare(i1, i2);
521
-
522
- // RINOZ_COMP(
523
- // db.NumUnpackStreamsVector[i1],
524
- // db.NumUnpackStreamsVector[i2]);
525
- // if (db.NumUnpackStreamsVector[i1] == 0)
526
- // return 0;
527
- // return CompareFiles(
528
- // db.Files[db.FolderStartFileIndex[i1]],
529
- // db.Files[db.FolderStartFileIndex[i2]]);
530
- }
531
- */
532
-
533
- /*
534
- we sort empty files and dirs in such order:
535
- - Dir.NonAnti (name sorted)
536
- - File.NonAnti (name sorted)
537
- - File.Anti (name sorted)
538
- - Dir.Anti (reverse name sorted)
539
- */
540
-
541
- static int CompareEmptyItems(const unsigned *p1, const unsigned *p2, void *param)
542
- {
543
- const CObjectVector<CUpdateItem> &updateItems = *(const CObjectVector<CUpdateItem> *)param;
544
- const CUpdateItem &u1 = updateItems[*p1];
545
- const CUpdateItem &u2 = updateItems[*p2];
546
- // NonAnti < Anti
547
- if (u1.IsAnti != u2.IsAnti)
548
- return (u1.IsAnti ? 1 : -1);
549
- if (u1.IsDir != u2.IsDir)
550
- {
551
- // Dir.NonAnti < File < Dir.Anti
552
- if (u1.IsDir)
553
- return (u1.IsAnti ? 1 : -1);
554
- return (u2.IsAnti ? -1 : 1);
555
- }
556
- int n = CompareFileNames(u1.Name, u2.Name);
557
- return (u1.IsDir && u1.IsAnti) ? -n : n;
558
- }
559
-
560
- static const char *g_Exts =
561
- " 7z xz lzma ace arc arj bz tbz bz2 tbz2 cab deb gz tgz ha lha lzh lzo lzx pak rar rpm sit zoo"
562
- " zip jar ear war msi"
563
- " 3gp avi mov mpeg mpg mpe wmv"
564
- " aac ape fla flac la mp3 m4a mp4 ofr ogg pac ra rm rka shn swa tta wv wma wav"
565
- " swf"
566
- " chm hxi hxs"
567
- " gif jpeg jpg jp2 png tiff bmp ico psd psp"
568
- " awg ps eps cgm dxf svg vrml wmf emf ai md"
569
- " cad dwg pps key sxi"
570
- " max 3ds"
571
- " iso bin nrg mdf img pdi tar cpio xpi"
572
- " vfd vhd vud vmc vsv"
573
- " vmdk dsk nvram vmem vmsd vmsn vmss vmtm"
574
- " inl inc idl acf asa"
575
- " h hpp hxx c cpp cxx m mm go swift"
576
- " rc java cs rs pas bas vb cls ctl frm dlg def"
577
- " f77 f f90 f95"
578
- " asm s"
579
- " sql manifest dep"
580
- " mak clw csproj vcproj sln dsp dsw"
581
- " class"
582
- " bat cmd bash sh"
583
- " xml xsd xsl xslt hxk hxc htm html xhtml xht mht mhtml htw asp aspx css cgi jsp shtml"
584
- " awk sed hta js json php php3 php4 php5 phptml pl pm py pyo rb tcl ts vbs"
585
- " text txt tex ans asc srt reg ini doc docx mcw dot rtf hlp xls xlr xlt xlw ppt pdf"
586
- " sxc sxd sxi sxg sxw stc sti stw stm odt ott odg otg odp otp ods ots odf"
587
- " abw afp cwk lwp wpd wps wpt wrf wri"
588
- " abf afm bdf fon mgf otf pcf pfa snf ttf"
589
- " dbf mdb nsf ntf wdb db fdb gdb"
590
- " exe dll ocx vbx sfx sys tlb awx com obj lib out o so"
591
- " pdb pch idb ncb opt";
592
-
593
- static unsigned GetExtIndex(const char *ext)
594
- {
595
- unsigned extIndex = 1;
596
- const char *p = g_Exts;
597
- for (;;)
598
- {
599
- char c = *p++;
600
- if (c == 0)
601
- return extIndex;
602
- if (c == ' ')
603
- continue;
604
- unsigned pos = 0;
605
- for (;;)
606
- {
607
- char c2 = ext[pos++];
608
- if (c2 == 0 && (c == 0 || c == ' '))
609
- return extIndex;
610
- if (c != c2)
611
- break;
612
- c = *p++;
613
- }
614
- extIndex++;
615
- for (;;)
616
- {
617
- if (c == 0)
618
- return extIndex;
619
- if (c == ' ')
620
- break;
621
- c = *p++;
622
- }
623
- }
624
- }
625
-
626
- struct CRefItem
627
- {
628
- const CUpdateItem *UpdateItem;
629
- UInt32 Index;
630
- unsigned ExtensionPos;
631
- unsigned NamePos;
632
- unsigned ExtensionIndex;
633
-
634
- CRefItem() {};
635
- CRefItem(UInt32 index, const CUpdateItem &ui, bool sortByType):
636
- UpdateItem(&ui),
637
- Index(index),
638
- ExtensionPos(0),
639
- NamePos(0),
640
- ExtensionIndex(0)
641
- {
642
- if (sortByType)
643
- {
644
- int slashPos = ui.Name.ReverseFind_PathSepar();
645
- NamePos = slashPos + 1;
646
- int dotPos = ui.Name.ReverseFind_Dot();
647
- if (dotPos <= slashPos)
648
- ExtensionPos = ui.Name.Len();
649
- else
650
- {
651
- ExtensionPos = dotPos + 1;
652
- if (ExtensionPos != ui.Name.Len())
653
- {
654
- AString s;
655
- for (unsigned pos = ExtensionPos;; pos++)
656
- {
657
- wchar_t c = ui.Name[pos];
658
- if (c >= 0x80)
659
- break;
660
- if (c == 0)
661
- {
662
- ExtensionIndex = GetExtIndex(s);
663
- break;
664
- }
665
- s += (char)MyCharLower_Ascii((char)c);
666
- }
667
- }
668
- }
669
- }
670
- }
671
- };
672
-
673
- struct CSortParam
674
- {
675
- // const CObjectVector<CTreeFolder> *TreeFolders;
676
- bool SortByType;
677
- };
678
-
679
- /*
680
- we sort files in such order:
681
- - Dir.NonAnti (name sorted)
682
- - alt streams
683
- - Dirs
684
- - Dir.Anti (reverse name sorted)
685
- */
686
-
687
-
688
- static int CompareUpdateItems(const CRefItem *p1, const CRefItem *p2, void *param)
689
- {
690
- const CRefItem &a1 = *p1;
691
- const CRefItem &a2 = *p2;
692
- const CUpdateItem &u1 = *a1.UpdateItem;
693
- const CUpdateItem &u2 = *a2.UpdateItem;
694
-
695
- /*
696
- if (u1.IsAltStream != u2.IsAltStream)
697
- return u1.IsAltStream ? 1 : -1;
698
- */
699
-
700
- // Actually there are no dirs that time. They were stored in other steps
701
- // So that code is unused?
702
- if (u1.IsDir != u2.IsDir)
703
- return u1.IsDir ? 1 : -1;
704
- if (u1.IsDir)
705
- {
706
- if (u1.IsAnti != u2.IsAnti)
707
- return (u1.IsAnti ? 1 : -1);
708
- int n = CompareFileNames(u1.Name, u2.Name);
709
- return -n;
710
- }
711
-
712
- // bool sortByType = *(bool *)param;
713
- const CSortParam *sortParam = (const CSortParam *)param;
714
- bool sortByType = sortParam->SortByType;
715
- if (sortByType)
716
- {
717
- RINOZ_COMP(a1.ExtensionIndex, a2.ExtensionIndex);
718
- RINOZ(CompareFileNames(u1.Name.Ptr(a1.ExtensionPos), u2.Name.Ptr(a2.ExtensionPos)));
719
- RINOZ(CompareFileNames(u1.Name.Ptr(a1.NamePos), u2.Name.Ptr(a2.NamePos)));
720
- if (!u1.MTimeDefined && u2.MTimeDefined) return 1;
721
- if (u1.MTimeDefined && !u2.MTimeDefined) return -1;
722
- if (u1.MTimeDefined && u2.MTimeDefined) RINOZ_COMP(u1.MTime, u2.MTime);
723
- RINOZ_COMP(u1.Size, u2.Size);
724
- }
725
- /*
726
- int par1 = a1.UpdateItem->ParentFolderIndex;
727
- int par2 = a2.UpdateItem->ParentFolderIndex;
728
- const CTreeFolder &tf1 = (*sortParam->TreeFolders)[par1];
729
- const CTreeFolder &tf2 = (*sortParam->TreeFolders)[par2];
730
-
731
- int b1 = tf1.SortIndex, e1 = tf1.SortIndexEnd;
732
- int b2 = tf2.SortIndex, e2 = tf2.SortIndexEnd;
733
- if (b1 < b2)
734
- {
735
- if (e1 <= b2)
736
- return -1;
737
- // p2 in p1
738
- int par = par2;
739
- for (;;)
740
- {
741
- const CTreeFolder &tf = (*sortParam->TreeFolders)[par];
742
- par = tf.Parent;
743
- if (par == par1)
744
- {
745
- RINOZ(CompareFileNames(u1.Name, tf.Name));
746
- break;
747
- }
748
- }
749
- }
750
- else if (b2 < b1)
751
- {
752
- if (e2 <= b1)
753
- return 1;
754
- // p1 in p2
755
- int par = par1;
756
- for (;;)
757
- {
758
- const CTreeFolder &tf = (*sortParam->TreeFolders)[par];
759
- par = tf.Parent;
760
- if (par == par2)
761
- {
762
- RINOZ(CompareFileNames(tf.Name, u2.Name));
763
- break;
764
- }
765
- }
766
- }
767
- */
768
- // RINOZ_COMP(a1.UpdateItem->ParentSortIndex, a2.UpdateItem->ParentSortIndex);
769
- RINOK(CompareFileNames(u1.Name, u2.Name));
770
- RINOZ_COMP(a1.UpdateItem->IndexInClient, a2.UpdateItem->IndexInClient);
771
- RINOZ_COMP(a1.UpdateItem->IndexInArchive, a2.UpdateItem->IndexInArchive);
772
- return 0;
773
- }
774
-
775
- struct CSolidGroup
776
- {
777
- CRecordVector<UInt32> Indices;
778
-
779
- CRecordVector<CFolderRepack> folderRefs;
780
- };
781
-
782
- static const char * const g_ExeExts[] =
783
- {
784
- "dll"
785
- , "exe"
786
- , "ocx"
787
- , "sfx"
788
- , "sys"
789
- };
790
-
791
- static bool IsExeExt(const wchar_t *ext)
792
- {
793
- for (unsigned i = 0; i < ARRAY_SIZE(g_ExeExts); i++)
794
- if (StringsAreEqualNoCase_Ascii(ext, g_ExeExts[i]))
795
- return true;
796
- return false;
797
- }
798
-
799
- struct CAnalysis
800
- {
801
- CMyComPtr<IArchiveUpdateCallbackFile> Callback;
802
- CByteBuffer Buffer;
803
-
804
- bool ParseWav;
805
- bool ParseExe;
806
- bool ParseAll;
807
-
808
- CAnalysis():
809
- ParseWav(true),
810
- ParseExe(false),
811
- ParseAll(false)
812
- {}
813
-
814
- HRESULT GetFilterGroup(UInt32 index, const CUpdateItem &ui, CFilterMode &filterMode);
815
- };
816
-
817
- static const size_t kAnalysisBufSize = 1 << 14;
818
-
819
- HRESULT CAnalysis::GetFilterGroup(UInt32 index, const CUpdateItem &ui, CFilterMode &filterMode)
820
- {
821
- filterMode.Id = 0;
822
- filterMode.Delta = 0;
823
-
824
- CFilterMode filterModeTemp = filterMode;
825
-
826
- int slashPos = ui.Name.ReverseFind_PathSepar();
827
- int dotPos = ui.Name.ReverseFind_Dot();
828
-
829
- // if (dotPos > slashPos)
830
- {
831
- bool needReadFile = ParseAll;
832
-
833
- bool probablyIsSameIsa = false;
834
-
835
- if (!needReadFile || !Callback)
836
- {
837
- const wchar_t *ext;
838
- if (dotPos > slashPos)
839
- ext = ui.Name.Ptr(dotPos + 1);
840
- else
841
- ext = ui.Name.RightPtr(0);
842
-
843
- // p7zip uses the trick to store posix attributes in high 16 bits
844
- if (ui.Attrib & 0x8000)
845
- {
846
- unsigned st_mode = ui.Attrib >> 16;
847
- // st_mode = 00111;
848
- if ((st_mode & 00111) && (ui.Size >= 2048))
849
- {
850
- #ifndef _WIN32
851
- probablyIsSameIsa = true;
852
- #endif
853
- needReadFile = true;
854
- }
855
- }
856
-
857
- if (IsExeExt(ext))
858
- {
859
- needReadFile = true;
860
- #ifdef _WIN32
861
- probablyIsSameIsa = true;
862
- needReadFile = ParseExe;
863
- #endif
864
- }
865
- else if (StringsAreEqualNoCase_Ascii(ext, "wav"))
866
- {
867
- needReadFile = ParseWav;
868
- }
869
- /*
870
- else if (!needReadFile && ParseUnixExt)
871
- {
872
- if (StringsAreEqualNoCase_Ascii(ext, "so")
873
- || StringsAreEqualNoCase_Ascii(ext, ""))
874
-
875
- needReadFile = true;
876
- }
877
- */
878
- }
879
-
880
- if (needReadFile && Callback)
881
- {
882
- if (Buffer.Size() != kAnalysisBufSize)
883
- {
884
- Buffer.Alloc(kAnalysisBufSize);
885
- }
886
- {
887
- CMyComPtr<ISequentialInStream> stream;
888
- HRESULT result = Callback->GetStream2(index, &stream, NUpdateNotifyOp::kAnalyze);
889
- if (result == S_OK && stream)
890
- {
891
- size_t size = kAnalysisBufSize;
892
- result = ReadStream(stream, Buffer, &size);
893
- stream.Release();
894
- // RINOK(Callback->SetOperationResult2(index, NUpdate::NOperationResult::kOK));
895
- if (result == S_OK)
896
- {
897
- BoolInt parseRes = ParseFile(Buffer, size, &filterModeTemp);
898
- if (parseRes && filterModeTemp.Delta == 0)
899
- {
900
- filterModeTemp.SetDelta();
901
- if (filterModeTemp.Delta != 0 && filterModeTemp.Id != k_Delta)
902
- {
903
- if (ui.Size % filterModeTemp.Delta != 0)
904
- {
905
- parseRes = false;
906
- }
907
- }
908
- }
909
- if (!parseRes)
910
- {
911
- filterModeTemp.Id = 0;
912
- filterModeTemp.Delta = 0;
913
- }
914
- }
915
- }
916
- }
917
- }
918
- else if ((needReadFile && !Callback) || probablyIsSameIsa)
919
- {
920
- #ifdef MY_CPU_X86_OR_AMD64
921
- if (probablyIsSameIsa)
922
- filterModeTemp.Id = k_X86;
923
- #endif
924
- }
925
- }
926
-
927
- filterMode = filterModeTemp;
928
- return S_OK;
929
- }
930
-
931
- static inline void GetMethodFull(UInt64 methodID, UInt32 numStreams, CMethodFull &m)
932
- {
933
- m.Id = methodID;
934
- m.NumStreams = numStreams;
935
- }
936
-
937
- static HRESULT AddBondForFilter(CCompressionMethodMode &mode)
938
- {
939
- for (unsigned c = 1; c < mode.Methods.Size(); c++)
940
- {
941
- if (!mode.IsThereBond_to_Coder(c))
942
- {
943
- CBond2 bond;
944
- bond.OutCoder = 0;
945
- bond.OutStream = 0;
946
- bond.InCoder = c;
947
- mode.Bonds.Add(bond);
948
- return S_OK;
949
- }
950
- }
951
- return E_INVALIDARG;
952
- }
953
-
954
- static HRESULT AddFilterBond(CCompressionMethodMode &mode)
955
- {
956
- if (!mode.Bonds.IsEmpty())
957
- return AddBondForFilter(mode);
958
- return S_OK;
959
- }
960
-
961
- static HRESULT AddBcj2Methods(CCompressionMethodMode &mode)
962
- {
963
- // mode.Methods[0] must be k_BCJ2 method !
964
-
965
- CMethodFull m;
966
- GetMethodFull(k_LZMA, 1, m);
967
-
968
- m.AddProp32(NCoderPropID::kDictionarySize, 1 << 20);
969
- m.AddProp32(NCoderPropID::kNumFastBytes, 128);
970
- m.AddProp32(NCoderPropID::kNumThreads, 1);
971
- m.AddProp32(NCoderPropID::kLitPosBits, 2);
972
- m.AddProp32(NCoderPropID::kLitContextBits, 0);
973
- // m.AddProp_Ascii(NCoderPropID::kMatchFinder, "BT2");
974
-
975
- unsigned methodIndex = mode.Methods.Size();
976
-
977
- if (mode.Bonds.IsEmpty())
978
- {
979
- for (unsigned i = 1; i + 1 < mode.Methods.Size(); i++)
980
- {
981
- CBond2 bond;
982
- bond.OutCoder = i;
983
- bond.OutStream = 0;
984
- bond.InCoder = i + 1;
985
- mode.Bonds.Add(bond);
986
- }
987
- }
988
-
989
- mode.Methods.Add(m);
990
- mode.Methods.Add(m);
991
-
992
- RINOK(AddBondForFilter(mode));
993
- CBond2 bond;
994
- bond.OutCoder = 0;
995
- bond.InCoder = methodIndex; bond.OutStream = 1; mode.Bonds.Add(bond);
996
- bond.InCoder = methodIndex + 1; bond.OutStream = 2; mode.Bonds.Add(bond);
997
- return S_OK;
998
- }
999
-
1000
- static HRESULT MakeExeMethod(CCompressionMethodMode &mode,
1001
- const CFilterMode &filterMode, /* bool addFilter, */ bool bcj2Filter)
1002
- {
1003
- if (mode.Filter_was_Inserted)
1004
- {
1005
- const CMethodFull &m = mode.Methods[0];
1006
- CMethodId id = m.Id;
1007
- if (id == k_BCJ2)
1008
- return AddBcj2Methods(mode);
1009
- if (!m.IsSimpleCoder())
1010
- return E_NOTIMPL;
1011
- // if (Bonds.IsEmpty()) we can create bonds later
1012
- return AddFilterBond(mode);
1013
- }
1014
-
1015
- if (filterMode.Id == 0)
1016
- return S_OK;
1017
-
1018
- CMethodFull &m = mode.Methods.InsertNew(0);
1019
-
1020
- {
1021
- FOR_VECTOR(k, mode.Bonds)
1022
- {
1023
- CBond2 &bond = mode.Bonds[k];
1024
- bond.InCoder++;
1025
- bond.OutCoder++;
1026
- }
1027
- }
1028
-
1029
- HRESULT res;
1030
-
1031
- if (bcj2Filter && Is86Filter(filterMode.Id))
1032
- {
1033
- GetMethodFull(k_BCJ2, 4, m);
1034
- res = AddBcj2Methods(mode);
1035
- }
1036
- else
1037
- {
1038
- GetMethodFull(filterMode.Id, 1, m);
1039
- if (filterMode.Id == k_Delta)
1040
- m.AddProp32(NCoderPropID::kDefaultProp, filterMode.Delta);
1041
- res = AddFilterBond(mode);
1042
-
1043
- int alignBits = -1;
1044
- if (filterMode.Id == k_Delta || filterMode.Delta != 0)
1045
- {
1046
- if (filterMode.Delta == 1) alignBits = 0;
1047
- else if (filterMode.Delta == 2) alignBits = 1;
1048
- else if (filterMode.Delta == 4) alignBits = 2;
1049
- else if (filterMode.Delta == 8) alignBits = 3;
1050
- else if (filterMode.Delta == 16) alignBits = 4;
1051
- }
1052
- else
1053
- {
1054
- // alignBits = GetAlignForFilterMethod(filterMode.Id);
1055
- }
1056
-
1057
- if (res == S_OK && alignBits >= 0)
1058
- {
1059
- unsigned nextCoder = 1;
1060
- if (!mode.Bonds.IsEmpty())
1061
- {
1062
- nextCoder = mode.Bonds.Back().InCoder;
1063
- }
1064
- if (nextCoder < mode.Methods.Size())
1065
- {
1066
- CMethodFull &nextMethod = mode.Methods[nextCoder];
1067
- if (nextMethod.Id == k_LZMA || nextMethod.Id == k_LZMA2)
1068
- {
1069
- if (!nextMethod.Are_Lzma_Model_Props_Defined())
1070
- {
1071
- if (alignBits != 0)
1072
- {
1073
- if (alignBits > 2 || filterMode.Id == k_Delta)
1074
- nextMethod.AddProp32(NCoderPropID::kPosStateBits, alignBits);
1075
- unsigned lc = 0;
1076
- if (alignBits < 3)
1077
- lc = 3 - alignBits;
1078
- nextMethod.AddProp32(NCoderPropID::kLitContextBits, lc);
1079
- nextMethod.AddProp32(NCoderPropID::kLitPosBits, alignBits);
1080
- }
1081
- }
1082
- }
1083
- }
1084
- }
1085
- }
1086
-
1087
- return res;
1088
- }
1089
-
1090
-
1091
- static void UpdateItem_To_FileItem2(const CUpdateItem &ui, CFileItem2 &file2)
1092
- {
1093
- file2.Attrib = ui.Attrib; file2.AttribDefined = ui.AttribDefined;
1094
- file2.CTime = ui.CTime; file2.CTimeDefined = ui.CTimeDefined;
1095
- file2.ATime = ui.ATime; file2.ATimeDefined = ui.ATimeDefined;
1096
- file2.MTime = ui.MTime; file2.MTimeDefined = ui.MTimeDefined;
1097
- file2.IsAnti = ui.IsAnti;
1098
- // file2.IsAux = false;
1099
- file2.StartPosDefined = false;
1100
- // file2.StartPos = 0;
1101
- }
1102
-
1103
-
1104
- static void UpdateItem_To_FileItem(const CUpdateItem &ui,
1105
- CFileItem &file, CFileItem2 &file2)
1106
- {
1107
- UpdateItem_To_FileItem2(ui, file2);
1108
-
1109
- file.Size = ui.Size;
1110
- file.IsDir = ui.IsDir;
1111
- file.HasStream = ui.HasStream();
1112
- // file.IsAltStream = ui.IsAltStream;
1113
- }
1114
-
1115
-
1116
-
1117
- class CRepackInStreamWithSizes:
1118
- public ISequentialInStream,
1119
- public ICompressGetSubStreamSize,
1120
- public CMyUnknownImp
1121
- {
1122
- CMyComPtr<ISequentialInStream> _stream;
1123
- // UInt64 _size;
1124
- const CBoolVector *_extractStatuses;
1125
- UInt32 _startIndex;
1126
- public:
1127
- const CDbEx *_db;
1128
-
1129
- void Init(ISequentialInStream *stream, UInt32 startIndex, const CBoolVector *extractStatuses)
1130
- {
1131
- _startIndex = startIndex;
1132
- _extractStatuses = extractStatuses;
1133
- // _size = 0;
1134
- _stream = stream;
1135
- }
1136
- // UInt64 GetSize() const { return _size; }
1137
-
1138
- MY_UNKNOWN_IMP2(ISequentialInStream, ICompressGetSubStreamSize)
1139
-
1140
- STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
1141
-
1142
- STDMETHOD(GetSubStreamSize)(UInt64 subStream, UInt64 *value);
1143
- };
1144
-
1145
- STDMETHODIMP CRepackInStreamWithSizes::Read(void *data, UInt32 size, UInt32 *processedSize)
1146
- {
1147
- return _stream->Read(data, size, processedSize);
1148
- /*
1149
- UInt32 realProcessedSize;
1150
- HRESULT result = _stream->Read(data, size, &realProcessedSize);
1151
- _size += realProcessedSize;
1152
- if (processedSize)
1153
- *processedSize = realProcessedSize;
1154
- return result;
1155
- */
1156
- }
1157
-
1158
- STDMETHODIMP CRepackInStreamWithSizes::GetSubStreamSize(UInt64 subStream, UInt64 *value)
1159
- {
1160
- *value = 0;
1161
- if (subStream >= _extractStatuses->Size())
1162
- return S_FALSE; // E_FAIL;
1163
- unsigned index = (unsigned)subStream;
1164
- if ((*_extractStatuses)[index])
1165
- {
1166
- const CFileItem &fi = _db->Files[_startIndex + index];
1167
- if (fi.HasStream)
1168
- *value = fi.Size;
1169
- }
1170
- return S_OK;
1171
- }
1172
-
1173
-
1174
- class CRepackStreamBase
1175
- {
1176
- protected:
1177
- bool _needWrite;
1178
- bool _fileIsOpen;
1179
- bool _calcCrc;
1180
- UInt32 _crc;
1181
- UInt64 _rem;
1182
-
1183
- const CBoolVector *_extractStatuses;
1184
- UInt32 _startIndex;
1185
- unsigned _currentIndex;
1186
-
1187
- HRESULT OpenFile();
1188
- HRESULT CloseFile();
1189
- HRESULT ProcessEmptyFiles();
1190
-
1191
- public:
1192
- const CDbEx *_db;
1193
- CMyComPtr<IArchiveUpdateCallbackFile> _opCallback;
1194
- CMyComPtr<IArchiveExtractCallbackMessage> _extractCallback;
1195
-
1196
- HRESULT Init(UInt32 startIndex, const CBoolVector *extractStatuses);
1197
- HRESULT CheckFinishedState() const { return (_currentIndex == _extractStatuses->Size()) ? S_OK: E_FAIL; }
1198
- };
1199
-
1200
- HRESULT CRepackStreamBase::Init(UInt32 startIndex, const CBoolVector *extractStatuses)
1201
- {
1202
- _startIndex = startIndex;
1203
- _extractStatuses = extractStatuses;
1204
-
1205
- _currentIndex = 0;
1206
- _fileIsOpen = false;
1207
-
1208
- return ProcessEmptyFiles();
1209
- }
1210
-
1211
- HRESULT CRepackStreamBase::OpenFile()
1212
- {
1213
- UInt32 arcIndex = _startIndex + _currentIndex;
1214
- const CFileItem &fi = _db->Files[arcIndex];
1215
-
1216
- _needWrite = (*_extractStatuses)[_currentIndex];
1217
- if (_opCallback)
1218
- {
1219
- RINOK(_opCallback->ReportOperation(
1220
- NEventIndexType::kInArcIndex, arcIndex,
1221
- _needWrite ?
1222
- NUpdateNotifyOp::kRepack :
1223
- NUpdateNotifyOp::kSkip));
1224
- }
1225
-
1226
- _crc = CRC_INIT_VAL;
1227
- _calcCrc = (fi.CrcDefined && !fi.IsDir);
1228
-
1229
- _fileIsOpen = true;
1230
- _rem = fi.Size;
1231
- return S_OK;
1232
- }
1233
-
1234
- const HRESULT k_My_HRESULT_CRC_ERROR = 0x20000002;
1235
-
1236
- HRESULT CRepackStreamBase::CloseFile()
1237
- {
1238
- UInt32 arcIndex = _startIndex + _currentIndex;
1239
- const CFileItem &fi = _db->Files[arcIndex];
1240
- _fileIsOpen = false;
1241
- _currentIndex++;
1242
- if (!_calcCrc || fi.Crc == CRC_GET_DIGEST(_crc))
1243
- return S_OK;
1244
-
1245
- if (_extractCallback)
1246
- {
1247
- RINOK(_extractCallback->ReportExtractResult(
1248
- NEventIndexType::kInArcIndex, arcIndex,
1249
- NExtract::NOperationResult::kCRCError));
1250
- }
1251
- // return S_FALSE;
1252
- return k_My_HRESULT_CRC_ERROR;
1253
- }
1254
-
1255
- HRESULT CRepackStreamBase::ProcessEmptyFiles()
1256
- {
1257
- while (_currentIndex < _extractStatuses->Size() && _db->Files[_startIndex + _currentIndex].Size == 0)
1258
- {
1259
- RINOK(OpenFile());
1260
- RINOK(CloseFile());
1261
- }
1262
- return S_OK;
1263
- }
1264
-
1265
-
1266
-
1267
- #ifndef _7ZIP_ST
1268
-
1269
- class CFolderOutStream2:
1270
- public CRepackStreamBase,
1271
- public ISequentialOutStream,
1272
- public CMyUnknownImp
1273
- {
1274
- public:
1275
- CMyComPtr<ISequentialOutStream> _stream;
1276
-
1277
- MY_UNKNOWN_IMP
1278
-
1279
- STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
1280
- };
1281
-
1282
- STDMETHODIMP CFolderOutStream2::Write(const void *data, UInt32 size, UInt32 *processedSize)
1283
- {
1284
- if (processedSize)
1285
- *processedSize = 0;
1286
-
1287
- while (size != 0)
1288
- {
1289
- if (_fileIsOpen)
1290
- {
1291
- UInt32 cur = (size < _rem ? size : (UInt32)_rem);
1292
- HRESULT result = S_OK;
1293
- if (_needWrite)
1294
- result = _stream->Write(data, cur, &cur);
1295
- if (_calcCrc)
1296
- _crc = CrcUpdate(_crc, data, cur);
1297
- if (processedSize)
1298
- *processedSize += cur;
1299
- data = (const Byte *)data + cur;
1300
- size -= cur;
1301
- _rem -= cur;
1302
- if (_rem == 0)
1303
- {
1304
- RINOK(CloseFile());
1305
- RINOK(ProcessEmptyFiles());
1306
- }
1307
- RINOK(result);
1308
- if (cur == 0)
1309
- break;
1310
- continue;
1311
- }
1312
-
1313
- RINOK(ProcessEmptyFiles());
1314
- if (_currentIndex == _extractStatuses->Size())
1315
- {
1316
- // we don't support write cut here
1317
- return E_FAIL;
1318
- }
1319
- RINOK(OpenFile());
1320
- }
1321
-
1322
- return S_OK;
1323
- }
1324
-
1325
- #endif
1326
-
1327
-
1328
-
1329
- static const UInt32 kTempBufSize = 1 << 16;
1330
-
1331
- class CFolderInStream2:
1332
- public CRepackStreamBase,
1333
- public ISequentialInStream,
1334
- public CMyUnknownImp
1335
- {
1336
- Byte *_buf;
1337
- public:
1338
- CMyComPtr<ISequentialInStream> _inStream;
1339
- HRESULT Result;
1340
-
1341
- MY_UNKNOWN_IMP
1342
-
1343
- CFolderInStream2():
1344
- Result(S_OK)
1345
- {
1346
- _buf = new Byte[kTempBufSize];
1347
- }
1348
-
1349
- ~CFolderInStream2()
1350
- {
1351
- delete []_buf;
1352
- }
1353
-
1354
- void Init() { Result = S_OK; }
1355
- STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
1356
- };
1357
-
1358
- STDMETHODIMP CFolderInStream2::Read(void *data, UInt32 size, UInt32 *processedSize)
1359
- {
1360
- if (processedSize)
1361
- *processedSize = 0;
1362
-
1363
- while (size != 0)
1364
- {
1365
- if (_fileIsOpen)
1366
- {
1367
- UInt32 cur = (size < _rem ? size : (UInt32)_rem);
1368
-
1369
- void *buf;
1370
- if (_needWrite)
1371
- buf = data;
1372
- else
1373
- {
1374
- buf = _buf;
1375
- if (cur > kTempBufSize)
1376
- cur = kTempBufSize;
1377
- }
1378
-
1379
- HRESULT result = _inStream->Read(buf, cur, &cur);
1380
- _crc = CrcUpdate(_crc, buf, cur);
1381
- _rem -= cur;
1382
-
1383
- if (_needWrite)
1384
- {
1385
- data = (Byte *)data + cur;
1386
- size -= cur;
1387
- if (processedSize)
1388
- *processedSize += cur;
1389
- }
1390
-
1391
- if (result != S_OK)
1392
- Result = result;
1393
-
1394
- if (_rem == 0)
1395
- {
1396
- RINOK(CloseFile());
1397
- RINOK(ProcessEmptyFiles());
1398
- }
1399
-
1400
- RINOK(result);
1401
-
1402
- if (cur == 0)
1403
- return E_FAIL;
1404
-
1405
- continue;
1406
- }
1407
-
1408
- RINOK(ProcessEmptyFiles());
1409
- if (_currentIndex == _extractStatuses->Size())
1410
- {
1411
- return S_OK;
1412
- }
1413
- RINOK(OpenFile());
1414
- }
1415
-
1416
- return S_OK;
1417
- }
1418
-
1419
-
1420
- class CThreadDecoder
1421
- #ifndef _7ZIP_ST
1422
- : public CVirtThread
1423
- #endif
1424
- {
1425
- public:
1426
- CDecoder Decoder;
1427
-
1428
- CThreadDecoder(bool multiThreadMixer):
1429
- Decoder(multiThreadMixer)
1430
- {
1431
- #ifndef _7ZIP_ST
1432
- if (multiThreadMixer)
1433
- {
1434
- MtMode = false;
1435
- NumThreads = 1;
1436
- FosSpec = new CFolderOutStream2;
1437
- Fos = FosSpec;
1438
- Result = E_FAIL;
1439
- }
1440
- #endif
1441
- // UnpackSize = 0;
1442
- // send_UnpackSize = false;
1443
- }
1444
-
1445
- #ifndef _7ZIP_ST
1446
-
1447
- bool dataAfterEnd_Error;
1448
- HRESULT Result;
1449
- CMyComPtr<IInStream> InStream;
1450
-
1451
- CFolderOutStream2 *FosSpec;
1452
- CMyComPtr<ISequentialOutStream> Fos;
1453
-
1454
- UInt64 StartPos;
1455
- const CFolders *Folders;
1456
- int FolderIndex;
1457
-
1458
- // bool send_UnpackSize;
1459
- // UInt64 UnpackSize;
1460
-
1461
- #ifndef _NO_CRYPTO
1462
- CMyComPtr<ICryptoGetTextPassword> getTextPassword;
1463
- #endif
1464
-
1465
- DECL_EXTERNAL_CODECS_LOC_VARS2;
1466
-
1467
- #ifndef _7ZIP_ST
1468
- bool MtMode;
1469
- UInt32 NumThreads;
1470
- #endif
1471
-
1472
-
1473
- ~CThreadDecoder() { CVirtThread::WaitThreadFinish(); }
1474
- virtual void Execute();
1475
-
1476
- #endif
1477
- };
1478
-
1479
- #ifndef _7ZIP_ST
1480
-
1481
- void CThreadDecoder::Execute()
1482
- {
1483
- try
1484
- {
1485
- #ifndef _NO_CRYPTO
1486
- bool isEncrypted = false;
1487
- bool passwordIsDefined = false;
1488
- UString password;
1489
- #endif
1490
-
1491
- dataAfterEnd_Error = false;
1492
-
1493
- Result = Decoder.Decode(
1494
- EXTERNAL_CODECS_LOC_VARS
1495
- InStream,
1496
- StartPos,
1497
- *Folders, FolderIndex,
1498
-
1499
- // send_UnpackSize ? &UnpackSize : NULL,
1500
- NULL, // unpackSize : FULL unpack
1501
-
1502
- Fos,
1503
- NULL, // compressProgress
1504
-
1505
- NULL // *inStreamMainRes
1506
- , dataAfterEnd_Error
1507
-
1508
- _7Z_DECODER_CRYPRO_VARS
1509
- #ifndef _7ZIP_ST
1510
- , MtMode, NumThreads,
1511
- 0 // MemUsage
1512
- #endif
1513
-
1514
- );
1515
- }
1516
- catch(...)
1517
- {
1518
- Result = E_FAIL;
1519
- }
1520
-
1521
- /*
1522
- if (Result == S_OK)
1523
- Result = FosSpec->CheckFinishedState();
1524
- */
1525
- FosSpec->_stream.Release();
1526
- }
1527
-
1528
- #endif
1529
-
1530
- #ifndef _NO_CRYPTO
1531
-
1532
- class CCryptoGetTextPassword:
1533
- public ICryptoGetTextPassword,
1534
- public CMyUnknownImp
1535
- {
1536
- public:
1537
- UString Password;
1538
-
1539
- MY_UNKNOWN_IMP
1540
- STDMETHOD(CryptoGetTextPassword)(BSTR *password);
1541
- };
1542
-
1543
- STDMETHODIMP CCryptoGetTextPassword::CryptoGetTextPassword(BSTR *password)
1544
- {
1545
- return StringToBstr(Password, password);
1546
- }
1547
-
1548
- #endif
1549
-
1550
-
1551
- static void GetFile(const CDatabase &inDb, unsigned index, CFileItem &file, CFileItem2 &file2)
1552
- {
1553
- file = inDb.Files[index];
1554
- file2.CTimeDefined = inDb.CTime.GetItem(index, file2.CTime);
1555
- file2.ATimeDefined = inDb.ATime.GetItem(index, file2.ATime);
1556
- file2.MTimeDefined = inDb.MTime.GetItem(index, file2.MTime);
1557
- file2.StartPosDefined = inDb.StartPos.GetItem(index, file2.StartPos);
1558
- file2.AttribDefined = inDb.Attrib.GetItem(index, file2.Attrib);
1559
- file2.IsAnti = inDb.IsItemAnti(index);
1560
- // file2.IsAux = inDb.IsItemAux(index);
1561
- }
1562
-
1563
- HRESULT Update(
1564
- DECL_EXTERNAL_CODECS_LOC_VARS
1565
- IInStream *inStream,
1566
- const CDbEx *db,
1567
- const CObjectVector<CUpdateItem> &updateItems,
1568
- // const CObjectVector<CTreeFolder> &treeFolders,
1569
- // const CUniqBlocks &secureBlocks,
1570
- COutArchive &archive,
1571
- CArchiveDatabaseOut &newDatabase,
1572
- ISequentialOutStream *seqOutStream,
1573
- IArchiveUpdateCallback *updateCallback,
1574
- const CUpdateOptions &options
1575
- #ifndef _NO_CRYPTO
1576
- , ICryptoGetTextPassword *getDecoderPassword
1577
- #endif
1578
- )
1579
- {
1580
- UInt64 numSolidFiles = options.NumSolidFiles;
1581
- if (numSolidFiles == 0)
1582
- numSolidFiles = 1;
1583
-
1584
- CMyComPtr<IArchiveUpdateCallbackFile> opCallback;
1585
- updateCallback->QueryInterface(IID_IArchiveUpdateCallbackFile, (void **)&opCallback);
1586
-
1587
- CMyComPtr<IArchiveExtractCallbackMessage> extractCallback;
1588
- updateCallback->QueryInterface(IID_IArchiveExtractCallbackMessage, (void **)&extractCallback);
1589
-
1590
- // size_t totalSecureDataSize = (size_t)secureBlocks.GetTotalSizeInBytes();
1591
-
1592
- /*
1593
- CMyComPtr<IOutStream> outStream;
1594
- RINOK(seqOutStream->QueryInterface(IID_IOutStream, (void **)&outStream));
1595
- if (!outStream)
1596
- return E_NOTIMPL;
1597
- */
1598
-
1599
- UInt64 startBlockSize = db ? db->ArcInfo.StartPosition: 0;
1600
- if (startBlockSize > 0 && !options.RemoveSfxBlock)
1601
- {
1602
- RINOK(WriteRange(inStream, seqOutStream, 0, startBlockSize, NULL));
1603
- }
1604
-
1605
- CIntArr fileIndexToUpdateIndexMap;
1606
- UInt64 complexity = 0;
1607
- UInt64 inSizeForReduce2 = 0;
1608
- bool needEncryptedRepack = false;
1609
-
1610
- CRecordVector<CFilterMode2> filters;
1611
- CObjectVector<CSolidGroup> groups;
1612
- bool thereAreRepacks = false;
1613
-
1614
- bool useFilters = options.UseFilters;
1615
- if (useFilters)
1616
- {
1617
- const CCompressionMethodMode &method = *options.Method;
1618
-
1619
- FOR_VECTOR (i, method.Methods)
1620
- if (IsFilterMethod(method.Methods[i].Id))
1621
- {
1622
- useFilters = false;
1623
- break;
1624
- }
1625
- }
1626
-
1627
- if (db)
1628
- {
1629
- fileIndexToUpdateIndexMap.Alloc(db->Files.Size());
1630
- unsigned i;
1631
-
1632
- for (i = 0; i < db->Files.Size(); i++)
1633
- fileIndexToUpdateIndexMap[i] = -1;
1634
-
1635
- for (i = 0; i < updateItems.Size(); i++)
1636
- {
1637
- int index = updateItems[i].IndexInArchive;
1638
- if (index != -1)
1639
- fileIndexToUpdateIndexMap[(unsigned)index] = i;
1640
- }
1641
-
1642
- for (i = 0; i < db->NumFolders; i++)
1643
- {
1644
- CNum indexInFolder = 0;
1645
- CNum numCopyItems = 0;
1646
- CNum numUnpackStreams = db->NumUnpackStreamsVector[i];
1647
- UInt64 repackSize = 0;
1648
-
1649
- for (CNum fi = db->FolderStartFileIndex[i]; indexInFolder < numUnpackStreams; fi++)
1650
- {
1651
- if (fi >= db->Files.Size())
1652
- return E_FAIL;
1653
-
1654
- const CFileItem &file = db->Files[fi];
1655
- if (file.HasStream)
1656
- {
1657
- indexInFolder++;
1658
- int updateIndex = fileIndexToUpdateIndexMap[fi];
1659
- if (updateIndex >= 0 && !updateItems[updateIndex].NewData)
1660
- {
1661
- numCopyItems++;
1662
- repackSize += file.Size;
1663
- }
1664
- }
1665
- }
1666
-
1667
- if (numCopyItems == 0)
1668
- continue;
1669
-
1670
- CFolderRepack rep;
1671
- rep.FolderIndex = i;
1672
- rep.NumCopyFiles = numCopyItems;
1673
- CFolderEx f;
1674
- db->ParseFolderEx(i, f);
1675
-
1676
- const bool isEncrypted = f.IsEncrypted();
1677
- const bool needCopy = (numCopyItems == numUnpackStreams);
1678
- const bool extractFilter = (useFilters || needCopy);
1679
-
1680
- unsigned groupIndex = Get_FilterGroup_for_Folder(filters, f, extractFilter);
1681
-
1682
- while (groupIndex >= groups.Size())
1683
- groups.AddNew();
1684
-
1685
- groups[groupIndex].folderRefs.Add(rep);
1686
-
1687
- if (needCopy)
1688
- complexity += db->GetFolderFullPackSize(i);
1689
- else
1690
- {
1691
- thereAreRepacks = true;
1692
- complexity += repackSize;
1693
- if (inSizeForReduce2 < repackSize)
1694
- inSizeForReduce2 = repackSize;
1695
- if (isEncrypted)
1696
- needEncryptedRepack = true;
1697
- }
1698
- }
1699
- }
1700
-
1701
- UInt64 inSizeForReduce = 0;
1702
- {
1703
- bool isSolid = (numSolidFiles > 1 && options.NumSolidBytes != 0);
1704
- FOR_VECTOR (i, updateItems)
1705
- {
1706
- const CUpdateItem &ui = updateItems[i];
1707
- if (ui.NewData)
1708
- {
1709
- complexity += ui.Size;
1710
- if (isSolid)
1711
- inSizeForReduce += ui.Size;
1712
- else if (inSizeForReduce < ui.Size)
1713
- inSizeForReduce = ui.Size;
1714
- }
1715
- }
1716
- }
1717
-
1718
- if (inSizeForReduce < inSizeForReduce2)
1719
- inSizeForReduce = inSizeForReduce2;
1720
-
1721
- RINOK(updateCallback->SetTotal(complexity));
1722
-
1723
- CLocalProgress *lps = new CLocalProgress;
1724
- CMyComPtr<ICompressProgressInfo> progress = lps;
1725
- lps->Init(updateCallback, true);
1726
-
1727
- #ifndef _7ZIP_ST
1728
-
1729
- CStreamBinder sb;
1730
- if (options.MultiThreadMixer)
1731
- {
1732
- RINOK(sb.CreateEvents());
1733
- }
1734
-
1735
- #endif
1736
-
1737
- CThreadDecoder threadDecoder(options.MultiThreadMixer);
1738
-
1739
- #ifndef _7ZIP_ST
1740
- if (options.MultiThreadMixer && thereAreRepacks)
1741
- {
1742
- #ifdef EXTERNAL_CODECS
1743
- threadDecoder.__externalCodecs = __externalCodecs;
1744
- #endif
1745
- RINOK(threadDecoder.Create());
1746
- }
1747
- #endif
1748
-
1749
- {
1750
- CAnalysis analysis;
1751
- if (options.AnalysisLevel == 0)
1752
- {
1753
- analysis.ParseWav = false;
1754
- analysis.ParseExe = false;
1755
- analysis.ParseAll = false;
1756
- }
1757
- else
1758
- {
1759
- analysis.Callback = opCallback;
1760
- if (options.AnalysisLevel > 0)
1761
- {
1762
- analysis.ParseWav = true;
1763
- if (options.AnalysisLevel >= 7)
1764
- {
1765
- analysis.ParseExe = true;
1766
- if (options.AnalysisLevel >= 9)
1767
- analysis.ParseAll = true;
1768
- }
1769
- }
1770
- }
1771
-
1772
- // ---------- Split files to groups ----------
1773
-
1774
- const CCompressionMethodMode &method = *options.Method;
1775
-
1776
- FOR_VECTOR (i, updateItems)
1777
- {
1778
- const CUpdateItem &ui = updateItems[i];
1779
- if (!ui.NewData || !ui.HasStream())
1780
- continue;
1781
-
1782
- CFilterMode2 fm;
1783
- if (useFilters)
1784
- {
1785
- RINOK(analysis.GetFilterGroup(i, ui, fm));
1786
- }
1787
- fm.Encrypted = method.PasswordIsDefined;
1788
-
1789
- unsigned groupIndex = GetGroup(filters, fm);
1790
- while (groupIndex >= groups.Size())
1791
- groups.AddNew();
1792
- groups[groupIndex].Indices.Add(i);
1793
- }
1794
- }
1795
-
1796
-
1797
- #ifndef _NO_CRYPTO
1798
-
1799
- CCryptoGetTextPassword *getPasswordSpec = NULL;
1800
- CMyComPtr<ICryptoGetTextPassword> getTextPassword;
1801
- if (needEncryptedRepack)
1802
- {
1803
- getPasswordSpec = new CCryptoGetTextPassword;
1804
- getTextPassword = getPasswordSpec;
1805
-
1806
- #ifndef _7ZIP_ST
1807
- threadDecoder.getTextPassword = getPasswordSpec;
1808
- #endif
1809
-
1810
- if (options.Method->PasswordIsDefined)
1811
- getPasswordSpec->Password = options.Method->Password;
1812
- else
1813
- {
1814
- if (!getDecoderPassword)
1815
- return E_NOTIMPL;
1816
- CMyComBSTR password;
1817
- RINOK(getDecoderPassword->CryptoGetTextPassword(&password));
1818
- if (password)
1819
- getPasswordSpec->Password = password;
1820
- }
1821
- }
1822
-
1823
- #endif
1824
-
1825
-
1826
- // ---------- Compress ----------
1827
-
1828
- RINOK(archive.Create(seqOutStream, false));
1829
- RINOK(archive.SkipPrefixArchiveHeader());
1830
-
1831
- /*
1832
- CIntVector treeFolderToArcIndex;
1833
- treeFolderToArcIndex.Reserve(treeFolders.Size());
1834
- for (i = 0; i < treeFolders.Size(); i++)
1835
- treeFolderToArcIndex.Add(-1);
1836
- // ---------- Write Tree (only AUX dirs) ----------
1837
- for (i = 1; i < treeFolders.Size(); i++)
1838
- {
1839
- const CTreeFolder &treeFolder = treeFolders[i];
1840
- CFileItem file;
1841
- CFileItem2 file2;
1842
- file2.Init();
1843
- int secureID = 0;
1844
- if (treeFolder.UpdateItemIndex < 0)
1845
- {
1846
- // we can store virtual dir item wuthout attrib, but we want all items have attrib.
1847
- file.SetAttrib(FILE_ATTRIBUTE_DIRECTORY);
1848
- file2.IsAux = true;
1849
- }
1850
- else
1851
- {
1852
- const CUpdateItem &ui = updateItems[treeFolder.UpdateItemIndex];
1853
- // if item is not dir, then it's parent for alt streams.
1854
- // we will write such items later
1855
- if (!ui.IsDir)
1856
- continue;
1857
- secureID = ui.SecureIndex;
1858
- if (ui.NewProps)
1859
- UpdateItem_To_FileItem(ui, file, file2);
1860
- else
1861
- GetFile(*db, ui.IndexInArchive, file, file2);
1862
- }
1863
- file.Size = 0;
1864
- file.HasStream = false;
1865
- file.IsDir = true;
1866
- file.Parent = treeFolder.Parent;
1867
-
1868
- treeFolderToArcIndex[i] = newDatabase.Files.Size();
1869
- newDatabase.AddFile(file, file2, treeFolder.Name);
1870
-
1871
- if (totalSecureDataSize != 0)
1872
- newDatabase.SecureIDs.Add(secureID);
1873
- }
1874
- */
1875
-
1876
- {
1877
- /* ---------- Write non-AUX dirs and Empty files ---------- */
1878
- CUIntVector emptyRefs;
1879
-
1880
- unsigned i;
1881
-
1882
- for (i = 0; i < updateItems.Size(); i++)
1883
- {
1884
- const CUpdateItem &ui = updateItems[i];
1885
- if (ui.NewData)
1886
- {
1887
- if (ui.HasStream())
1888
- continue;
1889
- }
1890
- else if (ui.IndexInArchive != -1 && db->Files[ui.IndexInArchive].HasStream)
1891
- continue;
1892
- /*
1893
- if (ui.TreeFolderIndex >= 0)
1894
- continue;
1895
- */
1896
- emptyRefs.Add(i);
1897
- }
1898
-
1899
- emptyRefs.Sort(CompareEmptyItems, (void *)&updateItems);
1900
-
1901
- for (i = 0; i < emptyRefs.Size(); i++)
1902
- {
1903
- const CUpdateItem &ui = updateItems[emptyRefs[i]];
1904
- CFileItem file;
1905
- CFileItem2 file2;
1906
- UString name;
1907
- if (ui.NewProps)
1908
- {
1909
- UpdateItem_To_FileItem(ui, file, file2);
1910
- file.CrcDefined = false;
1911
- name = ui.Name;
1912
- }
1913
- else
1914
- {
1915
- GetFile(*db, ui.IndexInArchive, file, file2);
1916
- db->GetPath(ui.IndexInArchive, name);
1917
- }
1918
-
1919
- /*
1920
- if (totalSecureDataSize != 0)
1921
- newDatabase.SecureIDs.Add(ui.SecureIndex);
1922
- file.Parent = ui.ParentFolderIndex;
1923
- */
1924
- newDatabase.AddFile(file, file2, name);
1925
- }
1926
- }
1927
-
1928
- lps->ProgressOffset = 0;
1929
-
1930
- {
1931
- // ---------- Sort Filters ----------
1932
-
1933
- FOR_VECTOR (i, filters)
1934
- {
1935
- filters[i].GroupIndex = i;
1936
- }
1937
- filters.Sort2();
1938
- }
1939
-
1940
- for (unsigned groupIndex = 0; groupIndex < filters.Size(); groupIndex++)
1941
- {
1942
- const CFilterMode2 &filterMode = filters[groupIndex];
1943
-
1944
- CCompressionMethodMode method = *options.Method;
1945
- {
1946
- HRESULT res = MakeExeMethod(method, filterMode,
1947
- #ifdef _7ZIP_ST
1948
- false
1949
- #else
1950
- options.MaxFilter && options.MultiThreadMixer
1951
- #endif
1952
- );
1953
-
1954
- RINOK(res);
1955
- }
1956
-
1957
- if (filterMode.Encrypted)
1958
- {
1959
- if (!method.PasswordIsDefined)
1960
- {
1961
- #ifndef _NO_CRYPTO
1962
- if (getPasswordSpec)
1963
- method.Password = getPasswordSpec->Password;
1964
- #endif
1965
- method.PasswordIsDefined = true;
1966
- }
1967
- }
1968
- else
1969
- {
1970
- method.PasswordIsDefined = false;
1971
- method.Password.Empty();
1972
- }
1973
-
1974
- CEncoder encoder(method);
1975
-
1976
- // ---------- Repack and copy old solid blocks ----------
1977
-
1978
- const CSolidGroup &group = groups[filterMode.GroupIndex];
1979
-
1980
- FOR_VECTOR(folderRefIndex, group.folderRefs)
1981
- {
1982
- const CFolderRepack &rep = group.folderRefs[folderRefIndex];
1983
-
1984
- unsigned folderIndex = rep.FolderIndex;
1985
-
1986
- CNum numUnpackStreams = db->NumUnpackStreamsVector[folderIndex];
1987
-
1988
- if (rep.NumCopyFiles == numUnpackStreams)
1989
- {
1990
- if (opCallback)
1991
- {
1992
- RINOK(opCallback->ReportOperation(
1993
- NEventIndexType::kBlockIndex, (UInt32)folderIndex,
1994
- NUpdateNotifyOp::kReplicate));
1995
-
1996
- // ---------- Copy old solid block ----------
1997
- {
1998
- CNum indexInFolder = 0;
1999
- for (CNum fi = db->FolderStartFileIndex[folderIndex]; indexInFolder < numUnpackStreams; fi++)
2000
- {
2001
- if (db->Files[fi].HasStream)
2002
- {
2003
- indexInFolder++;
2004
- RINOK(opCallback->ReportOperation(
2005
- NEventIndexType::kInArcIndex, (UInt32)fi,
2006
- NUpdateNotifyOp::kReplicate));
2007
- }
2008
- }
2009
- }
2010
- }
2011
-
2012
- UInt64 packSize = db->GetFolderFullPackSize(folderIndex);
2013
- RINOK(WriteRange(inStream, archive.SeqStream,
2014
- db->GetFolderStreamPos(folderIndex, 0), packSize, progress));
2015
- lps->ProgressOffset += packSize;
2016
-
2017
- CFolder &folder = newDatabase.Folders.AddNew();
2018
- db->ParseFolderInfo(folderIndex, folder);
2019
- CNum startIndex = db->FoStartPackStreamIndex[folderIndex];
2020
- FOR_VECTOR(j, folder.PackStreams)
2021
- {
2022
- newDatabase.PackSizes.Add(db->GetStreamPackSize(startIndex + j));
2023
- // newDatabase.PackCRCsDefined.Add(db.PackCRCsDefined[startIndex + j]);
2024
- // newDatabase.PackCRCs.Add(db.PackCRCs[startIndex + j]);
2025
- }
2026
-
2027
- size_t indexStart = db->FoToCoderUnpackSizes[folderIndex];
2028
- size_t indexEnd = db->FoToCoderUnpackSizes[folderIndex + 1];
2029
- for (; indexStart < indexEnd; indexStart++)
2030
- newDatabase.CoderUnpackSizes.Add(db->CoderUnpackSizes[indexStart]);
2031
- }
2032
- else
2033
- {
2034
- // ---------- Repack old solid block ----------
2035
-
2036
- CBoolVector extractStatuses;
2037
-
2038
- CNum indexInFolder = 0;
2039
-
2040
- if (opCallback)
2041
- {
2042
- RINOK(opCallback->ReportOperation(
2043
- NEventIndexType::kBlockIndex, (UInt32)folderIndex,
2044
- NUpdateNotifyOp::kRepack))
2045
- }
2046
-
2047
- /* We could reduce data size of decoded folder, if we don't need to repack
2048
- last files in folder. But the gain in speed is small in most cases.
2049
- So we unpack full folder. */
2050
-
2051
- UInt64 sizeToEncode = 0;
2052
-
2053
- /*
2054
- UInt64 importantUnpackSize = 0;
2055
- unsigned numImportantFiles = 0;
2056
- UInt64 decodeSize = 0;
2057
- */
2058
-
2059
- for (CNum fi = db->FolderStartFileIndex[folderIndex]; indexInFolder < numUnpackStreams; fi++)
2060
- {
2061
- bool needExtract = false;
2062
- const CFileItem &file = db->Files[fi];
2063
-
2064
- if (file.HasStream)
2065
- {
2066
- indexInFolder++;
2067
- int updateIndex = fileIndexToUpdateIndexMap[fi];
2068
- if (updateIndex >= 0 && !updateItems[updateIndex].NewData)
2069
- needExtract = true;
2070
- // decodeSize += file.Size;
2071
- }
2072
-
2073
- extractStatuses.Add(needExtract);
2074
- if (needExtract)
2075
- {
2076
- sizeToEncode += file.Size;
2077
- /*
2078
- numImportantFiles = extractStatuses.Size();
2079
- importantUnpackSize = decodeSize;
2080
- */
2081
- }
2082
- }
2083
-
2084
- // extractStatuses.DeleteFrom(numImportantFiles);
2085
-
2086
- unsigned startPackIndex = newDatabase.PackSizes.Size();
2087
- UInt64 curUnpackSize;
2088
- {
2089
-
2090
- CMyComPtr<ISequentialInStream> sbInStream;
2091
- CRepackStreamBase *repackBase;
2092
- CFolderInStream2 *FosSpec2 = NULL;
2093
-
2094
- CRepackInStreamWithSizes *inStreamSizeCountSpec = new CRepackInStreamWithSizes;
2095
- CMyComPtr<ISequentialInStream> inStreamSizeCount = inStreamSizeCountSpec;
2096
- {
2097
- #ifndef _7ZIP_ST
2098
- if (options.MultiThreadMixer)
2099
- {
2100
- repackBase = threadDecoder.FosSpec;
2101
- CMyComPtr<ISequentialOutStream> sbOutStream;
2102
- sb.CreateStreams(&sbInStream, &sbOutStream);
2103
- sb.ReInit();
2104
-
2105
- threadDecoder.FosSpec->_stream = sbOutStream;
2106
-
2107
- threadDecoder.InStream = inStream;
2108
- threadDecoder.StartPos = db->ArcInfo.DataStartPosition; // db->GetFolderStreamPos(folderIndex, 0);
2109
- threadDecoder.Folders = (const CFolders *)db;
2110
- threadDecoder.FolderIndex = folderIndex;
2111
-
2112
- // threadDecoder.UnpackSize = importantUnpackSize;
2113
- // threadDecoder.send_UnpackSize = true;
2114
- }
2115
- else
2116
- #endif
2117
- {
2118
- FosSpec2 = new CFolderInStream2;
2119
- FosSpec2->Init();
2120
- sbInStream = FosSpec2;
2121
- repackBase = FosSpec2;
2122
-
2123
- #ifndef _NO_CRYPTO
2124
- bool isEncrypted = false;
2125
- bool passwordIsDefined = false;
2126
- UString password;
2127
- #endif
2128
-
2129
- CMyComPtr<ISequentialInStream> decodedStream;
2130
- bool dataAfterEnd_Error = false;
2131
-
2132
- HRESULT res = threadDecoder.Decoder.Decode(
2133
- EXTERNAL_CODECS_LOC_VARS
2134
- inStream,
2135
- db->ArcInfo.DataStartPosition, // db->GetFolderStreamPos(folderIndex, 0);,
2136
- *db, folderIndex,
2137
- // &importantUnpackSize, // *unpackSize
2138
- NULL, // *unpackSize : FULL unpack
2139
-
2140
- NULL, // *outStream
2141
- NULL, // *compressProgress
2142
-
2143
- &decodedStream
2144
- , dataAfterEnd_Error
2145
-
2146
- _7Z_DECODER_CRYPRO_VARS
2147
- #ifndef _7ZIP_ST
2148
- , false // mtMode
2149
- , 1 // numThreads
2150
- , 0 // memUsage
2151
- #endif
2152
- );
2153
-
2154
- RINOK(res);
2155
- if (!decodedStream)
2156
- return E_FAIL;
2157
-
2158
- FosSpec2->_inStream = decodedStream;
2159
- }
2160
-
2161
- repackBase->_db = db;
2162
- repackBase->_opCallback = opCallback;
2163
- repackBase->_extractCallback = extractCallback;
2164
-
2165
- UInt32 startIndex = db->FolderStartFileIndex[folderIndex];
2166
- RINOK(repackBase->Init(startIndex, &extractStatuses));
2167
-
2168
- inStreamSizeCountSpec->_db = db;
2169
- inStreamSizeCountSpec->Init(sbInStream, startIndex, &extractStatuses);
2170
-
2171
- #ifndef _7ZIP_ST
2172
- if (options.MultiThreadMixer)
2173
- {
2174
- threadDecoder.Start();
2175
- }
2176
- #endif
2177
- }
2178
-
2179
- curUnpackSize = sizeToEncode;
2180
-
2181
- HRESULT encodeRes = encoder.Encode(
2182
- EXTERNAL_CODECS_LOC_VARS
2183
- inStreamSizeCount,
2184
- // NULL,
2185
- &inSizeForReduce,
2186
- newDatabase.Folders.AddNew(), newDatabase.CoderUnpackSizes, curUnpackSize,
2187
- archive.SeqStream, newDatabase.PackSizes, progress);
2188
-
2189
- if (encodeRes == k_My_HRESULT_CRC_ERROR)
2190
- return E_FAIL;
2191
-
2192
- #ifndef _7ZIP_ST
2193
- if (options.MultiThreadMixer)
2194
- {
2195
- // 16.00: hang was fixed : for case if decoding was not finished.
2196
- // We close CBinderInStream and it calls CStreamBinder::CloseRead()
2197
- inStreamSizeCount.Release();
2198
- sbInStream.Release();
2199
-
2200
- threadDecoder.WaitExecuteFinish();
2201
-
2202
- HRESULT decodeRes = threadDecoder.Result;
2203
- // if (res == k_My_HRESULT_CRC_ERROR)
2204
- if (decodeRes == S_FALSE || threadDecoder.dataAfterEnd_Error)
2205
- {
2206
- if (extractCallback)
2207
- {
2208
- RINOK(extractCallback->ReportExtractResult(
2209
- NEventIndexType::kInArcIndex, db->FolderStartFileIndex[folderIndex],
2210
- // NEventIndexType::kBlockIndex, (UInt32)folderIndex,
2211
- (decodeRes != S_OK ?
2212
- NExtract::NOperationResult::kDataError :
2213
- NExtract::NOperationResult::kDataAfterEnd)));
2214
- }
2215
- if (decodeRes != S_OK)
2216
- return E_FAIL;
2217
- }
2218
- RINOK(decodeRes);
2219
- if (encodeRes == S_OK)
2220
- if (sb.ProcessedSize != sizeToEncode)
2221
- encodeRes = E_FAIL;
2222
- }
2223
- else
2224
- #endif
2225
- {
2226
- if (FosSpec2->Result == S_FALSE)
2227
- {
2228
- if (extractCallback)
2229
- {
2230
- RINOK(extractCallback->ReportExtractResult(
2231
- NEventIndexType::kBlockIndex, (UInt32)folderIndex,
2232
- NExtract::NOperationResult::kDataError));
2233
- }
2234
- return E_FAIL;
2235
- }
2236
- RINOK(FosSpec2->Result);
2237
- }
2238
-
2239
- RINOK(encodeRes);
2240
- RINOK(repackBase->CheckFinishedState());
2241
-
2242
- if (curUnpackSize != sizeToEncode)
2243
- return E_FAIL;
2244
- }
2245
-
2246
- for (; startPackIndex < newDatabase.PackSizes.Size(); startPackIndex++)
2247
- lps->OutSize += newDatabase.PackSizes[startPackIndex];
2248
- lps->InSize += curUnpackSize;
2249
- }
2250
-
2251
- newDatabase.NumUnpackStreamsVector.Add(rep.NumCopyFiles);
2252
-
2253
- CNum indexInFolder = 0;
2254
- for (CNum fi = db->FolderStartFileIndex[folderIndex]; indexInFolder < numUnpackStreams; fi++)
2255
- {
2256
- if (db->Files[fi].HasStream)
2257
- {
2258
- indexInFolder++;
2259
- int updateIndex = fileIndexToUpdateIndexMap[fi];
2260
- if (updateIndex >= 0)
2261
- {
2262
- const CUpdateItem &ui = updateItems[updateIndex];
2263
- if (ui.NewData)
2264
- continue;
2265
-
2266
- UString name;
2267
- CFileItem file;
2268
- CFileItem2 file2;
2269
- GetFile(*db, fi, file, file2);
2270
-
2271
- if (ui.NewProps)
2272
- {
2273
- UpdateItem_To_FileItem2(ui, file2);
2274
- file.IsDir = ui.IsDir;
2275
- name = ui.Name;
2276
- }
2277
- else
2278
- db->GetPath(fi, name);
2279
-
2280
- /*
2281
- file.Parent = ui.ParentFolderIndex;
2282
- if (ui.TreeFolderIndex >= 0)
2283
- treeFolderToArcIndex[ui.TreeFolderIndex] = newDatabase.Files.Size();
2284
- if (totalSecureDataSize != 0)
2285
- newDatabase.SecureIDs.Add(ui.SecureIndex);
2286
- */
2287
- newDatabase.AddFile(file, file2, name);
2288
- }
2289
- }
2290
- }
2291
- }
2292
-
2293
-
2294
- // ---------- Compress files to new solid blocks ----------
2295
-
2296
- unsigned numFiles = group.Indices.Size();
2297
- if (numFiles == 0)
2298
- continue;
2299
- CRecordVector<CRefItem> refItems;
2300
- refItems.ClearAndSetSize(numFiles);
2301
- // bool sortByType = (options.UseTypeSorting && isSoid); // numSolidFiles > 1
2302
- bool sortByType = options.UseTypeSorting;
2303
-
2304
- unsigned i;
2305
-
2306
- for (i = 0; i < numFiles; i++)
2307
- refItems[i] = CRefItem(group.Indices[i], updateItems[group.Indices[i]], sortByType);
2308
-
2309
- CSortParam sortParam;
2310
- // sortParam.TreeFolders = &treeFolders;
2311
- sortParam.SortByType = sortByType;
2312
- refItems.Sort(CompareUpdateItems, (void *)&sortParam);
2313
-
2314
- CObjArray<UInt32> indices(numFiles);
2315
-
2316
- for (i = 0; i < numFiles; i++)
2317
- {
2318
- UInt32 index = refItems[i].Index;
2319
- indices[i] = index;
2320
- /*
2321
- const CUpdateItem &ui = updateItems[index];
2322
- CFileItem file;
2323
- if (ui.NewProps)
2324
- UpdateItem_To_FileItem(ui, file);
2325
- else
2326
- file = db.Files[ui.IndexInArchive];
2327
- if (file.IsAnti || file.IsDir)
2328
- return E_FAIL;
2329
- newDatabase.Files.Add(file);
2330
- */
2331
- }
2332
-
2333
- for (i = 0; i < numFiles;)
2334
- {
2335
- UInt64 totalSize = 0;
2336
- unsigned numSubFiles;
2337
-
2338
- const wchar_t *prevExtension = NULL;
2339
-
2340
- for (numSubFiles = 0; i + numSubFiles < numFiles && numSubFiles < numSolidFiles; numSubFiles++)
2341
- {
2342
- const CUpdateItem &ui = updateItems[indices[i + numSubFiles]];
2343
- totalSize += ui.Size;
2344
- if (totalSize > options.NumSolidBytes)
2345
- break;
2346
- if (options.SolidExtension)
2347
- {
2348
- int slashPos = ui.Name.ReverseFind_PathSepar();
2349
- int dotPos = ui.Name.ReverseFind_Dot();
2350
- const wchar_t *ext = ui.Name.Ptr(dotPos <= slashPos ? ui.Name.Len() : dotPos + 1);
2351
- if (numSubFiles == 0)
2352
- prevExtension = ext;
2353
- else if (!StringsAreEqualNoCase(ext, prevExtension))
2354
- break;
2355
- }
2356
- }
2357
-
2358
- if (numSubFiles < 1)
2359
- numSubFiles = 1;
2360
-
2361
- RINOK(lps->SetCur());
2362
-
2363
- CFolderInStream *inStreamSpec = new CFolderInStream;
2364
- CMyComPtr<ISequentialInStream> solidInStream(inStreamSpec);
2365
- inStreamSpec->Init(updateCallback, &indices[i], numSubFiles);
2366
-
2367
- unsigned startPackIndex = newDatabase.PackSizes.Size();
2368
- UInt64 curFolderUnpackSize = totalSize;
2369
- // curFolderUnpackSize = (UInt64)(Int64)-1;
2370
-
2371
- RINOK(encoder.Encode(
2372
- EXTERNAL_CODECS_LOC_VARS
2373
- solidInStream,
2374
- // NULL,
2375
- &inSizeForReduce,
2376
- newDatabase.Folders.AddNew(), newDatabase.CoderUnpackSizes, curFolderUnpackSize,
2377
- archive.SeqStream, newDatabase.PackSizes, progress));
2378
-
2379
- if (!inStreamSpec->WasFinished())
2380
- return E_FAIL;
2381
-
2382
- for (; startPackIndex < newDatabase.PackSizes.Size(); startPackIndex++)
2383
- lps->OutSize += newDatabase.PackSizes[startPackIndex];
2384
-
2385
- lps->InSize += curFolderUnpackSize;
2386
- // for ()
2387
- // newDatabase.PackCRCsDefined.Add(false);
2388
- // newDatabase.PackCRCs.Add(0);
2389
-
2390
- CNum numUnpackStreams = 0;
2391
- UInt64 skippedSize = 0;
2392
-
2393
- for (unsigned subIndex = 0; subIndex < numSubFiles; subIndex++)
2394
- {
2395
- const CUpdateItem &ui = updateItems[indices[i + subIndex]];
2396
- CFileItem file;
2397
- CFileItem2 file2;
2398
- UString name;
2399
- if (ui.NewProps)
2400
- {
2401
- UpdateItem_To_FileItem(ui, file, file2);
2402
- name = ui.Name;
2403
- }
2404
- else
2405
- {
2406
- GetFile(*db, ui.IndexInArchive, file, file2);
2407
- db->GetPath(ui.IndexInArchive, name);
2408
- }
2409
- if (file2.IsAnti || file.IsDir)
2410
- return E_FAIL;
2411
-
2412
- /*
2413
- CFileItem &file = newDatabase.Files[
2414
- startFileIndexInDatabase + i + subIndex];
2415
- */
2416
- if (!inStreamSpec->Processed[subIndex])
2417
- {
2418
- skippedSize += ui.Size;
2419
- continue;
2420
- // file.Name += ".locked";
2421
- }
2422
-
2423
- file.Crc = inStreamSpec->CRCs[subIndex];
2424
- file.Size = inStreamSpec->Sizes[subIndex];
2425
-
2426
- // if (file.Size >= 0) // test purposes
2427
- if (file.Size != 0)
2428
- {
2429
- file.CrcDefined = true;
2430
- file.HasStream = true;
2431
- numUnpackStreams++;
2432
- }
2433
- else
2434
- {
2435
- file.CrcDefined = false;
2436
- file.HasStream = false;
2437
- }
2438
-
2439
- /*
2440
- file.Parent = ui.ParentFolderIndex;
2441
- if (ui.TreeFolderIndex >= 0)
2442
- treeFolderToArcIndex[ui.TreeFolderIndex] = newDatabase.Files.Size();
2443
- if (totalSecureDataSize != 0)
2444
- newDatabase.SecureIDs.Add(ui.SecureIndex);
2445
- */
2446
- newDatabase.AddFile(file, file2, name);
2447
- }
2448
-
2449
- // numUnpackStreams = 0 is very bad case for locked files
2450
- // v3.13 doesn't understand it.
2451
- newDatabase.NumUnpackStreamsVector.Add(numUnpackStreams);
2452
- i += numSubFiles;
2453
-
2454
- if (skippedSize != 0 && complexity >= skippedSize)
2455
- {
2456
- complexity -= skippedSize;
2457
- RINOK(updateCallback->SetTotal(complexity));
2458
- }
2459
- }
2460
- }
2461
-
2462
- RINOK(lps->SetCur());
2463
-
2464
- /*
2465
- fileIndexToUpdateIndexMap.ClearAndFree();
2466
- groups.ClearAndFree();
2467
- */
2468
-
2469
- /*
2470
- for (i = 0; i < newDatabase.Files.Size(); i++)
2471
- {
2472
- CFileItem &file = newDatabase.Files[i];
2473
- file.Parent = treeFolderToArcIndex[file.Parent];
2474
- }
2475
-
2476
- if (totalSecureDataSize != 0)
2477
- {
2478
- newDatabase.SecureBuf.SetCapacity(totalSecureDataSize);
2479
- size_t pos = 0;
2480
- newDatabase.SecureSizes.Reserve(secureBlocks.Sorted.Size());
2481
- for (i = 0; i < secureBlocks.Sorted.Size(); i++)
2482
- {
2483
- const CByteBuffer &buf = secureBlocks.Bufs[secureBlocks.Sorted[i]];
2484
- size_t size = buf.GetCapacity();
2485
- if (size != 0)
2486
- memcpy(newDatabase.SecureBuf + pos, buf, size);
2487
- newDatabase.SecureSizes.Add((UInt32)size);
2488
- pos += size;
2489
- }
2490
- }
2491
- */
2492
- newDatabase.ReserveDown();
2493
-
2494
- if (opCallback)
2495
- RINOK(opCallback->ReportOperation(NEventIndexType::kNoIndex, (UInt32)(Int32)-1, NUpdateNotifyOp::kHeader));
2496
-
2497
- return S_OK;
2498
- }
2499
-
2500
- }}