react-native-update 10.28.10 → 10.28.11

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 (776) hide show
  1. package/harmony/pushy.har +0 -0
  2. package/package.json +1 -1
  3. package/harmony/src/main/cpp/HDiffPatch/CHANGELOG.md +0 -153
  4. package/harmony/src/main/cpp/HDiffPatch/LICENSE +0 -48
  5. package/harmony/src/main/cpp/HDiffPatch/Makefile +0 -157
  6. package/harmony/src/main/cpp/HDiffPatch/README.md +0 -307
  7. package/harmony/src/main/cpp/HDiffPatch/_atosize.h +0 -83
  8. package/harmony/src/main/cpp/HDiffPatch/_clock_for_demo.h +0 -47
  9. package/harmony/src/main/cpp/HDiffPatch/_dir_ignore.h +0 -191
  10. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +0 -37
  11. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +0 -7
  12. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +0 -1
  13. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +0 -1
  14. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +0 -18
  15. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +0 -20
  16. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +0 -28
  17. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +0 -8
  18. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +0 -8
  19. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +0 -219
  20. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +0 -156
  21. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +0 -65
  22. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +0 -105
  23. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +0 -237
  24. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +0 -3
  25. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +0 -318
  26. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +0 -3
  27. package/harmony/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +0 -182
  28. package/harmony/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +0 -3
  29. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -30
  30. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  31. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +0 -408
  32. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +0 -573
  33. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +0 -396
  34. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +0 -268
  35. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +0 -361
  36. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +0 -301
  37. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +0 -411
  38. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +0 -504
  39. package/harmony/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +0 -344
  40. package/harmony/src/main/cpp/HDiffPatch/compress_parallel.cpp +0 -166
  41. package/harmony/src/main/cpp/HDiffPatch/compress_parallel.h +0 -59
  42. package/harmony/src/main/cpp/HDiffPatch/compress_plugin_demo.h +0 -1152
  43. package/harmony/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +0 -995
  44. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +0 -797
  45. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +0 -65
  46. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +0 -200
  47. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +0 -178
  48. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +0 -357
  49. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +0 -87
  50. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +0 -151
  51. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +0 -770
  52. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +0 -236
  53. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +0 -47
  54. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +0 -112
  55. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +0 -53
  56. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +0 -61
  57. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +0 -331
  58. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +0 -144
  59. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +0 -176
  60. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +0 -84
  61. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +0 -146
  62. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +0 -61
  63. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +0 -152
  64. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +0 -76
  65. package/harmony/src/main/cpp/HDiffPatch/file_for_patch.c +0 -524
  66. package/harmony/src/main/cpp/HDiffPatch/file_for_patch.h +0 -259
  67. package/harmony/src/main/cpp/HDiffPatch/hdiffz.cpp +0 -1570
  68. package/harmony/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +0 -290
  69. package/harmony/src/main/cpp/HDiffPatch/hpatchz.c +0 -1221
  70. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +0 -1025
  71. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +0 -116
  72. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -72
  73. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +0 -213
  74. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +0 -63
  75. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +0 -170
  76. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +0 -86
  77. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +0 -89
  78. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c +0 -13
  79. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +0 -398
  80. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +0 -194
  81. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +0 -13
  82. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +0 -204
  83. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +0 -207
  84. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +0 -815
  85. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +0 -586
  86. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +0 -381
  87. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +0 -352
  88. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +0 -137
  89. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +0 -137
  90. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +0 -70
  91. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +0 -628
  92. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +0 -87
  93. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +0 -363
  94. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +0 -139
  95. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +0 -68
  96. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +0 -115
  97. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +0 -342
  98. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +0 -94
  99. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +0 -52
  100. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +0 -2292
  101. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +0 -215
  102. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +0 -165
  103. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +0 -251
  104. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +0 -174
  105. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +0 -73
  106. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +0 -367
  107. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +0 -92
  108. package/harmony/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +0 -301
  109. package/harmony/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +0 -292
  110. package/harmony/src/main/cpp/HDiffPatch/test/testHashClash.cpp +0 -436
  111. package/harmony/src/main/cpp/HDiffPatch/test/unit_test.cpp +0 -417
  112. package/harmony/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +0 -100
  113. package/harmony/src/main/cpp/lzma/Asm/x86/7zAsm.asm +0 -147
  114. package/harmony/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +0 -147
  115. package/harmony/src/main/cpp/lzma/Asm/x86/AesOpt.asm +0 -237
  116. package/harmony/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +0 -1258
  117. package/harmony/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +0 -205
  118. package/harmony/src/main/cpp/lzma/C/7z.h +0 -202
  119. package/harmony/src/main/cpp/lzma/C/7zAlloc.c +0 -80
  120. package/harmony/src/main/cpp/lzma/C/7zAlloc.h +0 -19
  121. package/harmony/src/main/cpp/lzma/C/7zArcIn.c +0 -1771
  122. package/harmony/src/main/cpp/lzma/C/7zBuf.c +0 -36
  123. package/harmony/src/main/cpp/lzma/C/7zBuf.h +0 -35
  124. package/harmony/src/main/cpp/lzma/C/7zBuf2.c +0 -52
  125. package/harmony/src/main/cpp/lzma/C/7zCrc.c +0 -128
  126. package/harmony/src/main/cpp/lzma/C/7zCrc.h +0 -25
  127. package/harmony/src/main/cpp/lzma/C/7zCrcOpt.c +0 -115
  128. package/harmony/src/main/cpp/lzma/C/7zDec.c +0 -591
  129. package/harmony/src/main/cpp/lzma/C/7zFile.c +0 -286
  130. package/harmony/src/main/cpp/lzma/C/7zFile.h +0 -83
  131. package/harmony/src/main/cpp/lzma/C/7zStream.c +0 -176
  132. package/harmony/src/main/cpp/lzma/C/7zTypes.h +0 -375
  133. package/harmony/src/main/cpp/lzma/C/7zVersion.h +0 -27
  134. package/harmony/src/main/cpp/lzma/C/7zVersion.rc +0 -55
  135. package/harmony/src/main/cpp/lzma/C/Aes.c +0 -306
  136. package/harmony/src/main/cpp/lzma/C/Aes.h +0 -38
  137. package/harmony/src/main/cpp/lzma/C/AesOpt.c +0 -184
  138. package/harmony/src/main/cpp/lzma/C/Alloc.c +0 -455
  139. package/harmony/src/main/cpp/lzma/C/Alloc.h +0 -51
  140. package/harmony/src/main/cpp/lzma/C/Bcj2.c +0 -257
  141. package/harmony/src/main/cpp/lzma/C/Bcj2.h +0 -146
  142. package/harmony/src/main/cpp/lzma/C/Bcj2Enc.c +0 -311
  143. package/harmony/src/main/cpp/lzma/C/Bra.c +0 -230
  144. package/harmony/src/main/cpp/lzma/C/Bra.h +0 -64
  145. package/harmony/src/main/cpp/lzma/C/Bra86.c +0 -82
  146. package/harmony/src/main/cpp/lzma/C/BraIA64.c +0 -53
  147. package/harmony/src/main/cpp/lzma/C/Compiler.h +0 -33
  148. package/harmony/src/main/cpp/lzma/C/CpuArch.c +0 -218
  149. package/harmony/src/main/cpp/lzma/C/CpuArch.h +0 -336
  150. package/harmony/src/main/cpp/lzma/C/Delta.c +0 -64
  151. package/harmony/src/main/cpp/lzma/C/Delta.h +0 -19
  152. package/harmony/src/main/cpp/lzma/C/DllSecur.c +0 -108
  153. package/harmony/src/main/cpp/lzma/C/DllSecur.h +0 -20
  154. package/harmony/src/main/cpp/lzma/C/LzFind.c +0 -1127
  155. package/harmony/src/main/cpp/lzma/C/LzFind.h +0 -121
  156. package/harmony/src/main/cpp/lzma/C/LzFindMt.c +0 -853
  157. package/harmony/src/main/cpp/lzma/C/LzFindMt.h +0 -101
  158. package/harmony/src/main/cpp/lzma/C/LzHash.h +0 -57
  159. package/harmony/src/main/cpp/lzma/C/Lzma2Dec.c +0 -488
  160. package/harmony/src/main/cpp/lzma/C/Lzma2Dec.h +0 -120
  161. package/harmony/src/main/cpp/lzma/C/Lzma2DecMt.c +0 -1082
  162. package/harmony/src/main/cpp/lzma/C/Lzma2DecMt.h +0 -79
  163. package/harmony/src/main/cpp/lzma/C/Lzma2Enc.c +0 -803
  164. package/harmony/src/main/cpp/lzma/C/Lzma2Enc.h +0 -55
  165. package/harmony/src/main/cpp/lzma/C/Lzma86.h +0 -111
  166. package/harmony/src/main/cpp/lzma/C/Lzma86Dec.c +0 -54
  167. package/harmony/src/main/cpp/lzma/C/Lzma86Enc.c +0 -106
  168. package/harmony/src/main/cpp/lzma/C/LzmaDec.c +0 -1185
  169. package/harmony/src/main/cpp/lzma/C/LzmaDec.h +0 -234
  170. package/harmony/src/main/cpp/lzma/C/LzmaEnc.c +0 -2976
  171. package/harmony/src/main/cpp/lzma/C/LzmaEnc.h +0 -76
  172. package/harmony/src/main/cpp/lzma/C/LzmaLib.c +0 -40
  173. package/harmony/src/main/cpp/lzma/C/LzmaLib.h +0 -131
  174. package/harmony/src/main/cpp/lzma/C/MtCoder.c +0 -601
  175. package/harmony/src/main/cpp/lzma/C/MtCoder.h +0 -141
  176. package/harmony/src/main/cpp/lzma/C/MtDec.c +0 -1138
  177. package/harmony/src/main/cpp/lzma/C/MtDec.h +0 -201
  178. package/harmony/src/main/cpp/lzma/C/Ppmd.h +0 -85
  179. package/harmony/src/main/cpp/lzma/C/Ppmd7.c +0 -712
  180. package/harmony/src/main/cpp/lzma/C/Ppmd7.h +0 -142
  181. package/harmony/src/main/cpp/lzma/C/Ppmd7Dec.c +0 -191
  182. package/harmony/src/main/cpp/lzma/C/Ppmd7Enc.c +0 -187
  183. package/harmony/src/main/cpp/lzma/C/Precomp.h +0 -10
  184. package/harmony/src/main/cpp/lzma/C/RotateDefs.h +0 -30
  185. package/harmony/src/main/cpp/lzma/C/Sha256.c +0 -248
  186. package/harmony/src/main/cpp/lzma/C/Sha256.h +0 -26
  187. package/harmony/src/main/cpp/lzma/C/Sort.c +0 -141
  188. package/harmony/src/main/cpp/lzma/C/Sort.h +0 -18
  189. package/harmony/src/main/cpp/lzma/C/Threads.c +0 -95
  190. package/harmony/src/main/cpp/lzma/C/Threads.h +0 -70
  191. package/harmony/src/main/cpp/lzma/C/ThreadsP.c +0 -396
  192. package/harmony/src/main/cpp/lzma/C/ThreadsP.h +0 -31
  193. package/harmony/src/main/cpp/lzma/C/Util/7z/7z.dsp +0 -241
  194. package/harmony/src/main/cpp/lzma/C/Util/7z/7z.dsw +0 -29
  195. package/harmony/src/main/cpp/lzma/C/Util/7z/7zMain.c +0 -686
  196. package/harmony/src/main/cpp/lzma/C/Util/7z/Precomp.c +0 -4
  197. package/harmony/src/main/cpp/lzma/C/Util/7z/Precomp.h +0 -10
  198. package/harmony/src/main/cpp/lzma/C/Util/7z/makefile +0 -40
  199. package/harmony/src/main/cpp/lzma/C/Util/7z/makefile.gcc +0 -75
  200. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +0 -258
  201. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -168
  202. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +0 -29
  203. package/harmony/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -28
  204. package/harmony/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +0 -44
  205. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +0 -4
  206. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +0 -178
  207. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +0 -29
  208. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +0 -14
  209. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/makefile +0 -34
  210. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +0 -3
  211. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +0 -4
  212. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +0 -10
  213. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +0 -640
  214. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +0 -231
  215. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +0 -29
  216. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/makefile +0 -37
  217. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +0 -38
  218. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +0 -5
  219. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
  220. package/harmony/src/main/cpp/lzma/C/Xz.c +0 -90
  221. package/harmony/src/main/cpp/lzma/C/Xz.h +0 -460
  222. package/harmony/src/main/cpp/lzma/C/XzCrc64.c +0 -86
  223. package/harmony/src/main/cpp/lzma/C/XzCrc64.h +0 -26
  224. package/harmony/src/main/cpp/lzma/C/XzCrc64Opt.c +0 -69
  225. package/harmony/src/main/cpp/lzma/C/XzDec.c +0 -2766
  226. package/harmony/src/main/cpp/lzma/C/XzEnc.c +0 -1329
  227. package/harmony/src/main/cpp/lzma/C/XzEnc.h +0 -60
  228. package/harmony/src/main/cpp/lzma/C/XzIn.c +0 -319
  229. package/harmony/src/main/cpp/lzma/CPP/7zip/7zip.mak +0 -240
  230. package/harmony/src/main/cpp/lzma/CPP/7zip/Aes.mak +0 -7
  231. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +0 -3
  232. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +0 -76
  233. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +0 -569
  234. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +0 -70
  235. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +0 -678
  236. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +0 -92
  237. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +0 -423
  238. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +0 -139
  239. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +0 -61
  240. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +0 -763
  241. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +0 -181
  242. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +0 -942
  243. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +0 -19
  244. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +0 -148
  245. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +0 -1666
  246. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +0 -445
  247. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +0 -202
  248. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +0 -901
  249. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +0 -335
  250. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +0 -174
  251. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +0 -22
  252. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +0 -21
  253. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +0 -22
  254. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +0 -35
  255. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +0 -2500
  256. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +0 -139
  257. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +0 -3
  258. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +0 -8
  259. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -12
  260. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -19
  261. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +0 -151
  262. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +0 -1125
  263. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +0 -447
  264. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +0 -17
  265. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +0 -25
  266. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +0 -232
  267. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +0 -110
  268. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +0 -46
  269. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +0 -67
  270. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +0 -88
  271. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +0 -28
  272. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +0 -191
  273. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +0 -89
  274. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +0 -18
  275. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +0 -37
  276. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +0 -3
  277. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +0 -6
  278. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +0 -8
  279. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +0 -122
  280. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +0 -608
  281. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
  282. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +0 -629
  283. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +0 -359
  284. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +0 -8
  285. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +0 -1308
  286. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +0 -11
  287. package/harmony/src/main/cpp/lzma/CPP/7zip/Asm.mak +0 -9
  288. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +0 -1910
  289. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +0 -29
  290. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +0 -3
  291. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +0 -8
  292. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +0 -154
  293. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +0 -7
  294. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +0 -3
  295. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +0 -8
  296. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +0 -96
  297. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +0 -5
  298. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +0 -3
  299. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +0 -8
  300. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +0 -116
  301. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +0 -5
  302. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +0 -799
  303. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +0 -477
  304. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +0 -29
  305. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +0 -3
  306. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +0 -8
  307. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +0 -59
  308. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +0 -195
  309. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +0 -3
  310. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +0 -715
  311. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
  312. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +0 -912
  313. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +0 -29
  314. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +0 -482
  315. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +0 -3
  316. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +0 -8
  317. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +0 -134
  318. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +0 -5
  319. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +0 -246
  320. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +0 -86
  321. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +0 -137
  322. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +0 -11
  323. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +0 -803
  324. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +0 -29
  325. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +0 -364
  326. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +0 -3
  327. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +0 -13
  328. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +0 -117
  329. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +0 -6
  330. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +0 -16
  331. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
  332. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
  333. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +0 -988
  334. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +0 -29
  335. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +0 -241
  336. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +0 -3
  337. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +0 -14
  338. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +0 -153
  339. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +0 -1
  340. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -50
  341. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +0 -250
  342. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +0 -120
  343. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +0 -536
  344. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +0 -192
  345. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +0 -46
  346. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +0 -10
  347. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +0 -475
  348. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +0 -166
  349. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +0 -435
  350. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +0 -205
  351. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +0 -163
  352. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +0 -92
  353. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +0 -127
  354. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +0 -48
  355. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +0 -367
  356. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +0 -252
  357. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +0 -3
  358. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +0 -6
  359. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +0 -3
  360. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +0 -10
  361. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +0 -509
  362. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +0 -264
  363. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +0 -39
  364. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +0 -26
  365. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +0 -111
  366. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +0 -66
  367. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +0 -51
  368. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +0 -35
  369. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +0 -108
  370. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +0 -78
  371. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +0 -106
  372. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +0 -8
  373. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +0 -156
  374. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +0 -60
  375. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +0 -285
  376. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +0 -157
  377. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +0 -56
  378. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +0 -13
  379. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +0 -57
  380. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +0 -26
  381. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +0 -48
  382. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +0 -24
  383. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +0 -666
  384. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +0 -120
  385. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +0 -24
  386. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +0 -24
  387. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +0 -31
  388. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +0 -17
  389. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +0 -23
  390. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +0 -35
  391. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +0 -41
  392. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +0 -92
  393. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +0 -344
  394. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +0 -120
  395. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +0 -49
  396. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +0 -15
  397. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +0 -128
  398. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +0 -265
  399. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +0 -96
  400. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +0 -122
  401. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +0 -42
  402. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +0 -22
  403. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +0 -343
  404. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +0 -113
  405. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +0 -182
  406. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +0 -46
  407. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +0 -22
  408. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +0 -170
  409. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +0 -86
  410. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +0 -152
  411. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +0 -58
  412. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +0 -22
  413. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +0 -8
  414. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +0 -150
  415. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +0 -92
  416. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +0 -245
  417. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +0 -46
  418. package/harmony/src/main/cpp/lzma/CPP/7zip/Crc.mak +0 -8
  419. package/harmony/src/main/cpp/lzma/CPP/7zip/Crc64.mak +0 -8
  420. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +0 -280
  421. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +0 -118
  422. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +0 -17
  423. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +0 -112
  424. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +0 -57
  425. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +0 -16
  426. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +0 -233
  427. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +0 -40
  428. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +0 -8
  429. package/harmony/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +0 -84
  430. package/harmony/src/main/cpp/lzma/CPP/7zip/Guid.txt +0 -220
  431. package/harmony/src/main/cpp/lzma/CPP/7zip/ICoder.h +0 -399
  432. package/harmony/src/main/cpp/lzma/CPP/7zip/IDecl.h +0 -28
  433. package/harmony/src/main/cpp/lzma/CPP/7zip/IPassword.h +0 -23
  434. package/harmony/src/main/cpp/lzma/CPP/7zip/IProgress.h +0 -19
  435. package/harmony/src/main/cpp/lzma/CPP/7zip/IStream.h +0 -127
  436. package/harmony/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +0 -5
  437. package/harmony/src/main/cpp/lzma/CPP/7zip/MyVersion.h +0 -2
  438. package/harmony/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +0 -2
  439. package/harmony/src/main/cpp/lzma/CPP/7zip/PropID.h +0 -127
  440. package/harmony/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +0 -3
  441. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +0 -993
  442. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +0 -235
  443. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +0 -29
  444. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +0 -3
  445. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +0 -8
  446. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +0 -28
  447. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +0 -3
  448. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +0 -1295
  449. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +0 -136
  450. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +0 -1715
  451. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +0 -403
  452. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +0 -155
  453. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +0 -10
  454. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +0 -161
  455. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +0 -112
  456. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +0 -3618
  457. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +0 -77
  458. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +0 -37
  459. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +0 -11
  460. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +0 -190
  461. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +0 -1096
  462. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +0 -42
  463. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +0 -27
  464. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +0 -482
  465. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +0 -94
  466. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +0 -34
  467. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +0 -280
  468. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +0 -31
  469. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +0 -347
  470. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +0 -110
  471. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +0 -114
  472. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +0 -1074
  473. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +0 -424
  474. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +0 -3553
  475. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +0 -436
  476. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +0 -668
  477. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +0 -18
  478. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +0 -14
  479. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +0 -80
  480. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +0 -10
  481. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +0 -25
  482. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +0 -10
  483. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +0 -8
  484. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +0 -19
  485. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +0 -16
  486. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +0 -1704
  487. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +0 -200
  488. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +0 -64
  489. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +0 -66
  490. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +0 -771
  491. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +0 -162
  492. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +0 -233
  493. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +0 -27
  494. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +0 -70
  495. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +0 -55
  496. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +0 -94
  497. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +0 -26
  498. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +0 -130
  499. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +0 -41
  500. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +0 -14
  501. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +0 -43
  502. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -13
  503. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +0 -69
  504. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +0 -33
  505. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +0 -825
  506. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +0 -164
  507. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +0 -367
  508. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +0 -48
  509. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +0 -1359
  510. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +0 -27
  511. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +0 -1154
  512. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +0 -175
  513. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +0 -115
  514. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +0 -66
  515. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +0 -183
  516. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +0 -62
  517. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +0 -3
  518. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +0 -8
  519. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +0 -702
  520. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +0 -124
  521. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +0 -110
  522. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +0 -27
  523. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +0 -64
  524. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +0 -7
  525. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +0 -37
  526. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +0 -16
  527. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +0 -1025
  528. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +0 -21
  529. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +0 -9
  530. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +0 -64
  531. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +0 -28
  532. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +0 -4
  533. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +0 -16
  534. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +0 -1037
  535. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +0 -328
  536. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +0 -28
  537. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +0 -14
  538. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +0 -40
  539. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +0 -76
  540. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +0 -122
  541. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +0 -69
  542. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +0 -91
  543. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +0 -17
  544. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +0 -58
  545. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +0 -28
  546. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -14
  547. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +0 -5
  548. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +0 -196
  549. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +0 -170
  550. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +0 -12
  551. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +0 -1337
  552. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +0 -351
  553. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +0 -40
  554. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +0 -48
  555. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +0 -80
  556. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +0 -3
  557. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +0 -23
  558. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +0 -10
  559. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -95
  560. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +0 -255
  561. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +0 -62
  562. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +0 -177
  563. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -15
  564. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +0 -59
  565. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +0 -418
  566. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +0 -113
  567. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +0 -98
  568. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +0 -24
  569. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +0 -280
  570. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +0 -38
  571. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +0 -51
  572. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +0 -27
  573. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +0 -2
  574. package/harmony/src/main/cpp/lzma/CPP/Build.mak +0 -156
  575. package/harmony/src/main/cpp/lzma/CPP/Common/AutoPtr.h +0 -35
  576. package/harmony/src/main/cpp/lzma/CPP/Common/CRC.cpp +0 -7
  577. package/harmony/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +0 -92
  578. package/harmony/src/main/cpp/lzma/CPP/Common/C_FileIO.h +0 -53
  579. package/harmony/src/main/cpp/lzma/CPP/Common/ComTry.h +0 -21
  580. package/harmony/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +0 -197
  581. package/harmony/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +0 -63
  582. package/harmony/src/main/cpp/lzma/CPP/Common/Common.h +0 -43
  583. package/harmony/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +0 -98
  584. package/harmony/src/main/cpp/lzma/CPP/Common/Defs.h +0 -15
  585. package/harmony/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +0 -64
  586. package/harmony/src/main/cpp/lzma/CPP/Common/IntToString.cpp +0 -193
  587. package/harmony/src/main/cpp/lzma/CPP/Common/IntToString.h +0 -28
  588. package/harmony/src/main/cpp/lzma/CPP/Common/Lang.h +0 -23
  589. package/harmony/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +0 -132
  590. package/harmony/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +0 -18
  591. package/harmony/src/main/cpp/lzma/CPP/Common/MyBuffer.h +0 -259
  592. package/harmony/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +0 -100
  593. package/harmony/src/main/cpp/lzma/CPP/Common/MyCom.h +0 -277
  594. package/harmony/src/main/cpp/lzma/CPP/Common/MyException.h +0 -14
  595. package/harmony/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +0 -54
  596. package/harmony/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +0 -45
  597. package/harmony/src/main/cpp/lzma/CPP/Common/MyLinux.h +0 -42
  598. package/harmony/src/main/cpp/lzma/CPP/Common/MyString.cpp +0 -1659
  599. package/harmony/src/main/cpp/lzma/CPP/Common/MyString.h +0 -868
  600. package/harmony/src/main/cpp/lzma/CPP/Common/MyTypes.h +0 -35
  601. package/harmony/src/main/cpp/lzma/CPP/Common/MyUnknown.h +0 -17
  602. package/harmony/src/main/cpp/lzma/CPP/Common/MyVector.cpp +0 -3
  603. package/harmony/src/main/cpp/lzma/CPP/Common/MyVector.h +0 -634
  604. package/harmony/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +0 -145
  605. package/harmony/src/main/cpp/lzma/CPP/Common/MyWindows.h +0 -231
  606. package/harmony/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +0 -163
  607. package/harmony/src/main/cpp/lzma/CPP/Common/NewHandler.h +0 -88
  608. package/harmony/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +0 -40
  609. package/harmony/src/main/cpp/lzma/CPP/Common/StdAfx.h +0 -8
  610. package/harmony/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +0 -89
  611. package/harmony/src/main/cpp/lzma/CPP/Common/StdInStream.h +0 -38
  612. package/harmony/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +0 -163
  613. package/harmony/src/main/cpp/lzma/CPP/Common/StdOutStream.h +0 -71
  614. package/harmony/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +0 -319
  615. package/harmony/src/main/cpp/lzma/CPP/Common/StringConvert.h +0 -88
  616. package/harmony/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +0 -144
  617. package/harmony/src/main/cpp/lzma/CPP/Common/StringToInt.h +0 -21
  618. package/harmony/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +0 -124
  619. package/harmony/src/main/cpp/lzma/CPP/Common/TextConfig.h +0 -19
  620. package/harmony/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +0 -288
  621. package/harmony/src/main/cpp/lzma/CPP/Common/UTFConvert.h +0 -12
  622. package/harmony/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +0 -676
  623. package/harmony/src/main/cpp/lzma/CPP/Common/Wildcard.h +0 -149
  624. package/harmony/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +0 -7
  625. package/harmony/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +0 -42
  626. package/harmony/src/main/cpp/lzma/CPP/Windows/COM.h +0 -70
  627. package/harmony/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +0 -185
  628. package/harmony/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +0 -23
  629. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +0 -66
  630. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +0 -65
  631. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +0 -52
  632. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +0 -251
  633. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +0 -170
  634. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +0 -19
  635. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +0 -10
  636. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +0 -87
  637. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +0 -155
  638. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +0 -146
  639. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +0 -35
  640. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +0 -143
  641. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +0 -50
  642. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +0 -34
  643. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Static.h +0 -28
  644. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +0 -42
  645. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +0 -8
  646. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +0 -43
  647. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +0 -27
  648. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +0 -200
  649. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +0 -51
  650. package/harmony/src/main/cpp/lzma/CPP/Windows/DLL.cpp +0 -109
  651. package/harmony/src/main/cpp/lzma/CPP/Windows/DLL.h +0 -58
  652. package/harmony/src/main/cpp/lzma/CPP/Windows/Defs.h +0 -17
  653. package/harmony/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +0 -66
  654. package/harmony/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +0 -15
  655. package/harmony/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +0 -714
  656. package/harmony/src/main/cpp/lzma/CPP/Windows/FileDir.h +0 -117
  657. package/harmony/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +0 -749
  658. package/harmony/src/main/cpp/lzma/CPP/Windows/FileFind.h +0 -161
  659. package/harmony/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +0 -432
  660. package/harmony/src/main/cpp/lzma/CPP/Windows/FileIO.h +0 -212
  661. package/harmony/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +0 -440
  662. package/harmony/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +0 -12
  663. package/harmony/src/main/cpp/lzma/CPP/Windows/FileMapping.h +0 -66
  664. package/harmony/src/main/cpp/lzma/CPP/Windows/FileName.cpp +0 -839
  665. package/harmony/src/main/cpp/lzma/CPP/Windows/FileName.h +0 -115
  666. package/harmony/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +0 -131
  667. package/harmony/src/main/cpp/lzma/CPP/Windows/FileSystem.h +0 -27
  668. package/harmony/src/main/cpp/lzma/CPP/Windows/Handle.h +0 -37
  669. package/harmony/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +0 -112
  670. package/harmony/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +0 -40
  671. package/harmony/src/main/cpp/lzma/CPP/Windows/NtCheck.h +0 -46
  672. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +0 -347
  673. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariant.h +0 -114
  674. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +0 -138
  675. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +0 -37
  676. package/harmony/src/main/cpp/lzma/CPP/Windows/Registry.cpp +0 -390
  677. package/harmony/src/main/cpp/lzma/CPP/Windows/Registry.h +0 -84
  678. package/harmony/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +0 -103
  679. package/harmony/src/main/cpp/lzma/CPP/Windows/ResourceString.h +0 -16
  680. package/harmony/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +0 -181
  681. package/harmony/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +0 -167
  682. package/harmony/src/main/cpp/lzma/CPP/Windows/Shell.cpp +0 -358
  683. package/harmony/src/main/cpp/lzma/CPP/Windows/Shell.h +0 -94
  684. package/harmony/src/main/cpp/lzma/CPP/Windows/StdAfx.h +0 -8
  685. package/harmony/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -10
  686. package/harmony/src/main/cpp/lzma/CPP/Windows/Synchronization.h +0 -164
  687. package/harmony/src/main/cpp/lzma/CPP/Windows/System.cpp +0 -142
  688. package/harmony/src/main/cpp/lzma/CPP/Windows/System.h +0 -40
  689. package/harmony/src/main/cpp/lzma/CPP/Windows/Thread.h +0 -38
  690. package/harmony/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +0 -213
  691. package/harmony/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +0 -32
  692. package/harmony/src/main/cpp/lzma/CPP/Windows/Window.cpp +0 -179
  693. package/harmony/src/main/cpp/lzma/CPP/Windows/Window.h +0 -284
  694. package/harmony/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +0 -55
  695. package/harmony/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +0 -274
  696. package/harmony/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +0 -72
  697. package/harmony/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +0 -47
  698. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +0 -24
  699. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +0 -367
  700. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +0 -132
  701. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +0 -110
  702. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +0 -76
  703. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +0 -398
  704. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +0 -1480
  705. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +0 -364
  706. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +0 -90
  707. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +0 -20
  708. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +0 -340
  709. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +0 -29
  710. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +0 -70
  711. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +0 -42
  712. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +0 -234
  713. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +0 -117
  714. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +0 -157
  715. package/harmony/src/main/cpp/lzma/CS/7zip/ICoder.cs +0 -157
  716. package/harmony/src/main/cpp/lzma/DOC/7zC.txt +0 -187
  717. package/harmony/src/main/cpp/lzma/DOC/7zFormat.txt +0 -469
  718. package/harmony/src/main/cpp/lzma/DOC/Methods.txt +0 -173
  719. package/harmony/src/main/cpp/lzma/DOC/installer.txt +0 -166
  720. package/harmony/src/main/cpp/lzma/DOC/lzma-history.txt +0 -446
  721. package/harmony/src/main/cpp/lzma/DOC/lzma-sdk.txt +0 -357
  722. package/harmony/src/main/cpp/lzma/DOC/lzma-specification.txt +0 -1176
  723. package/harmony/src/main/cpp/lzma/DOC/lzma.txt +0 -328
  724. package/harmony/src/main/cpp/lzma/Java/SevenZip/CRC.java +0 -52
  725. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +0 -382
  726. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +0 -131
  727. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +0 -85
  728. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +0 -88
  729. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +0 -329
  730. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +0 -1416
  731. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +0 -55
  732. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +0 -99
  733. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +0 -88
  734. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +0 -151
  735. package/harmony/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +0 -6
  736. package/harmony/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +0 -253
  737. package/harmony/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +0 -392
  738. package/harmony/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
  739. package/harmony/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
  740. package/harmony/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
  741. package/harmony/src/main/cpp/lzma/bin/7zdec.exe +0 -0
  742. package/harmony/src/main/cpp/lzma/bin/7zr.exe +0 -0
  743. package/harmony/src/main/cpp/lzma/bin/installer/config.txt +0 -5
  744. package/harmony/src/main/cpp/lzma/bin/installer/cr.bat +0 -5
  745. package/harmony/src/main/cpp/lzma/bin/lzma.exe +0 -0
  746. package/harmony/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
  747. /package/harmony/{BuildProfile.ets → pushy/BuildProfile.ets} +0 -0
  748. /package/harmony/{OAT.xml → pushy/OAT.xml} +0 -0
  749. /package/harmony/{README.md → pushy/README.md} +0 -0
  750. /package/harmony/{build-profile.json5 → pushy/build-profile.json5} +0 -0
  751. /package/harmony/{hvigorfile.ts → pushy/hvigorfile.ts} +0 -0
  752. /package/harmony/{index.ets → pushy/index.ets} +0 -0
  753. /package/harmony/{oh-package-lock.json5 → pushy/oh-package-lock.json5} +0 -0
  754. /package/harmony/{oh-package.json5 → pushy/oh-package.json5} +0 -0
  755. /package/harmony/{src → pushy/src}/main/cpp/CMakeLists.txt +0 -0
  756. /package/harmony/{src → pushy/src}/main/cpp/PushyPackage.h +0 -0
  757. /package/harmony/{src → pushy/src}/main/cpp/PushyTurboModule.cpp +0 -0
  758. /package/harmony/{src → pushy/src}/main/cpp/PushyTurboModule.h +0 -0
  759. /package/harmony/{src → pushy/src}/main/cpp/hpatch.c +0 -0
  760. /package/harmony/{src → pushy/src}/main/cpp/hpatch.h +0 -0
  761. /package/harmony/{src → pushy/src}/main/cpp/pushy.c +0 -0
  762. /package/harmony/{src → pushy/src}/main/cpp/pushy.h +0 -0
  763. /package/harmony/{src → pushy/src}/main/ets/DownloadTask.ts +0 -0
  764. /package/harmony/{src → pushy/src}/main/ets/DownloadTaskParams.ts +0 -0
  765. /package/harmony/{src → pushy/src}/main/ets/EventHub.ts +0 -0
  766. /package/harmony/{src → pushy/src}/main/ets/Logger.ts +0 -0
  767. /package/harmony/{src → pushy/src}/main/ets/PushyFileJSBundleProvider.ets +0 -0
  768. /package/harmony/{src → pushy/src}/main/ets/PushyPackage.ts +0 -0
  769. /package/harmony/{src → pushy/src}/main/ets/PushyTurboModule.ts +0 -0
  770. /package/harmony/{src → pushy/src}/main/ets/UpdateContext.ts +0 -0
  771. /package/harmony/{src → pushy/src}/main/ets/UpdateModuleImpl.ts +0 -0
  772. /package/harmony/{src → pushy/src}/main/module.json5 +0 -0
  773. /package/harmony/{src → pushy/src}/main/resources/base/element/string.json +0 -0
  774. /package/harmony/{src → pushy/src}/main/resources/en_US/element/string.json +0 -0
  775. /package/harmony/{src → pushy/src}/main/resources/zh_CN/element/string.json +0 -0
  776. /package/harmony/{ts.ts → pushy/ts.ts} +0 -0
@@ -1,1221 +0,0 @@
1
- //hpatchz.c
2
- // patch tool
3
- //
4
- /*
5
- This is the HDiffPatch copyright.
6
-
7
- Copyright (c) 2012-2019 HouSisong All Rights Reserved.
8
-
9
- Permission is hereby granted, free of charge, to any person
10
- obtaining a copy of this software and associated documentation
11
- files (the "Software"), to deal in the Software without
12
- restriction, including without limitation the rights to use,
13
- copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the
15
- Software is furnished to do so, subject to the following
16
- conditions:
17
-
18
- The above copyright notice and this permission notice shall be
19
- included in all copies of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
- OTHER DEALINGS IN THE SOFTWARE.
29
- */
30
-
31
- #include <string.h>
32
- #include <stdlib.h>
33
- #include <stdio.h> //fprintf
34
- #include "libHDiffPatch/HPatch/patch.h"
35
- #include "_clock_for_demo.h"
36
- #include "_atosize.h"
37
- #include "file_for_patch.h"
38
-
39
- #if (_IS_NEED_DIR_DIFF_PATCH)
40
- #include "dirDiffPatch/dir_patch/dir_patch.h"
41
- #include "hpatch_dir_listener.h"
42
- #endif
43
-
44
- #ifndef _IS_NEED_MAIN
45
- # define _IS_NEED_MAIN 1
46
- #endif
47
- #ifndef _IS_NEED_SFX
48
- # define _IS_NEED_SFX 1
49
- #endif
50
-
51
- #ifndef _IS_NEED_DEFAULT_CompressPlugin
52
- # define _IS_NEED_DEFAULT_CompressPlugin 1
53
- #endif
54
- #if (_IS_NEED_ALL_CompressPlugin)
55
- # undef _IS_NEED_DEFAULT_CompressPlugin
56
- # define _IS_NEED_DEFAULT_CompressPlugin 1
57
- #endif
58
- #if (_IS_NEED_DEFAULT_CompressPlugin)
59
- //===== select needs decompress plugins or change to your plugin=====
60
- # define _CompressPlugin_zlib
61
- # define _CompressPlugin_bz2
62
- # define _CompressPlugin_lzma
63
- # define _CompressPlugin_lzma2
64
- #endif
65
- #if (_IS_NEED_ALL_CompressPlugin)
66
- //===== select needs decompress plugins or change to your plugin=====
67
- # define _CompressPlugin_lz4 // || _CompressPlugin_lz4hc
68
- # define _CompressPlugin_zstd
69
- # define _CompressPlugin_brotli
70
- # define _CompressPlugin_lzham
71
- #endif
72
-
73
- #include "decompress_plugin_demo.h"
74
-
75
- #if (_IS_NEED_DIR_DIFF_PATCH)
76
-
77
- #ifndef _IS_NEED_DEFAULT_ChecksumPlugin
78
- # define _IS_NEED_DEFAULT_ChecksumPlugin 1
79
- #endif
80
- #if (_IS_NEED_ALL_ChecksumPlugin)
81
- # undef _IS_NEED_DEFAULT_ChecksumPlugin
82
- # define _IS_NEED_DEFAULT_ChecksumPlugin 1
83
- #endif
84
- #if (_IS_NEED_DEFAULT_ChecksumPlugin)
85
- //===== select needs checksum plugins or change to your plugin=====
86
- # define _ChecksumPlugin_crc32 // = 32 bit effective //need zlib
87
- # define _ChecksumPlugin_fadler64 // ? 63 bit effective
88
- #endif
89
- #if (_IS_NEED_ALL_ChecksumPlugin)
90
- //===== select needs checksum plugins or change to your plugin=====
91
- # define _ChecksumPlugin_adler32 // ? 29 bit effective
92
- # define _ChecksumPlugin_adler64 // ? 30 bit effective
93
- # define _ChecksumPlugin_fadler32 // ~ 32 bit effective
94
- # define _ChecksumPlugin_fadler128// ? 81 bit effective
95
- # define _ChecksumPlugin_md5 // ? 128 bit effective
96
- #endif
97
-
98
-
99
- #include "checksum_plugin_demo.h"
100
- #endif
101
-
102
- static void printVersion(){
103
- printf("HDiffPatch::hpatchz v" HDIFFPATCH_VERSION_STRING "\n\n");
104
- }
105
-
106
- static void printUsage(){
107
- printVersion();
108
- printf("patch usage: hpatchz [options] oldPath diffFile outNewPath\n"
109
- #if (_IS_NEED_SFX)
110
- "create SFX: hpatchz [-X-exe#selfExecuteFile] diffFile -X#outSelfExtractArchive\n"
111
- "run SFX: selfExtractArchive [[options] oldPath -X outNewPath]\n"
112
- "extract SFX: selfExtractArchive (same as: selfExtractArchive -f \"\" -X "
113
- # ifdef _WIN32
114
- "\".\\\")\n"
115
- # else
116
- "\"./\")\n"
117
- # endif
118
- #endif
119
- " if oldPath is empty input parameter \"\"\n"
120
- "memory options:\n"
121
- " -m oldPath all loaded into Memory;\n"
122
- " requires (oldFileSize+ 4*decompress stream size)+O(1) bytes of memory.\n"
123
- " -s[-cacheSize] \n"
124
- " DEFAULT -s-64m; oldPath loaded as Stream;\n"
125
- " requires (cacheSize+ 4*decompress stream size)+O(1) bytes of memory;\n"
126
- " cacheSize can like 262144 or 256k or 512m or 2g etc....\n"
127
- "special options:\n"
128
- #if (_IS_NEED_DIR_DIFF_PATCH)
129
- " -C-checksumSets\n"
130
- " set Checksum data for directory patch, DEFAULT -C-new-copy;\n"
131
- " checksumSets support (can choose multiple):\n"
132
- " -C-diff checksum diffFile;\n"
133
- " -C-old checksum old reference files;\n"
134
- " -C-new checksum new files edited from old reference files;\n"
135
- " -C-copy checksum new files copy from old same files;\n"
136
- " -C-no no checksum;\n"
137
- " -C-all same as: -C-diff-old-new-copy;\n"
138
- " -n-maxOpenFileNumber\n"
139
- " limit Number of open files at same time when stream directory patch;\n"
140
- " maxOpenFileNumber>=8, DEFAULT -n-24, the best limit value by different\n"
141
- " operating system.\n"
142
- #endif
143
- " -f Force overwrite, ignore write path already exists;\n"
144
- " DEFAULT (no -f) not overwrite and then return error;\n"
145
- " support oldPath outNewPath same path!(patch to tempPath and overwrite old)\n"
146
- " if used -f and outNewPath is exist file:\n"
147
- #if (_IS_NEED_DIR_DIFF_PATCH)
148
- " if patch output file, will overwrite;\n"
149
- #else
150
- " will overwrite;\n"
151
- #endif
152
- #if (_IS_NEED_DIR_DIFF_PATCH)
153
- " if patch output directory, will always return error;\n"
154
- #endif
155
- " if used -f and outNewPath is exist directory:\n"
156
- #if (_IS_NEED_DIR_DIFF_PATCH)
157
- " if patch output file, will always return error;\n"
158
- #else
159
- " will always return error;\n"
160
- #endif
161
- #if (_IS_NEED_DIR_DIFF_PATCH)
162
- " if patch output directory, will overwrite, but not delete\n"
163
- " needless existing files in directory.\n"
164
- #endif
165
- " -h or -?\n"
166
- " output Help info (this usage).\n"
167
- " -v output Version info.\n\n"
168
- );
169
- }
170
-
171
- typedef enum THPatchResult {
172
- HPATCH_SUCCESS=0,
173
- HPATCH_OPTIONS_ERROR,
174
- HPATCH_OPENREAD_ERROR,
175
- HPATCH_OPENWRITE_ERROR,
176
- HPATCH_FILEREAD_ERROR,
177
- HPATCH_FILEWRITE_ERROR, // 5
178
- HPATCH_FILEDATA_ERROR,
179
- HPATCH_FILECLOSE_ERROR,
180
- HPATCH_MEM_ERROR,
181
- HPATCH_HDIFFINFO_ERROR,
182
- HPATCH_COMPRESSTYPE_ERROR, // 10
183
- HPATCH_PATCH_ERROR,
184
-
185
- HPATCH_PATHTYPE_ERROR, //adding begin v3.0
186
- HPATCH_TEMPPATH_ERROR,
187
- HPATCH_DELETEPATH_ERROR,
188
- HPATCH_RENAMEPATH_ERROR, // 15
189
-
190
- #if (_IS_NEED_DIR_DIFF_PATCH)
191
- DIRPATCH_DIRDIFFINFO_ERROR=101,
192
- DIRPATCH_CHECKSUMTYPE_ERROR,
193
- DIRPATCH_CHECKSUMSET_ERROR,
194
- DIRPATCH_CHECKSUM_DIFFDATA_ERROR,
195
- DIRPATCH_CHECKSUM_OLDDATA_ERROR, // 105
196
- DIRPATCH_CHECKSUM_NEWDATA_ERROR,
197
- DIRPATCH_CHECKSUM_COPYDATA_ERROR,
198
- DIRPATCH_PATCH_ERROR,
199
- DIRPATCH_LAOD_DIRDIFFDATA_ERROR,
200
- DIRPATCH_OPEN_OLDPATH_ERROR, // 110
201
- DIRPATCH_OPEN_NEWPATH_ERROR,
202
- DIRPATCH_CLOSE_OLDPATH_ERROR,
203
- DIRPATCH_CLOSE_NEWPATH_ERROR,
204
- DIRPATCH_PATCHBEGIN_ERROR,
205
- DIRPATCH_PATCHFINISH_ERROR, // 115
206
- #endif
207
- #if (_IS_NEED_SFX)
208
- HPATCH_CREATE_SFX_DIFFFILETYPE_ERROR=201,
209
- HPATCH_CREATE_SFX_SFXTYPE_ERROR,
210
- HPATCH_CREATE_SFX_EXECUTETAG_ERROR,
211
- HPATCH_RUN_SFX_NOTSFX_ERROR,
212
- HPATCH_RUN_SFX_DIFFOFFSERT_ERROR, // 205
213
- #endif
214
- } THPatchResult;
215
-
216
- int hpatch_cmd_line(int argc, const char * argv[]);
217
-
218
- int hpatch(const char* oldFileName,const char* diffFileName,const char* outNewFileName,
219
- hpatch_BOOL isLoadOldAll,size_t patchCacheSize,
220
- hpatch_StreamPos_t diffDataOffert,hpatch_StreamPos_t diffDataSize);
221
- #if (_IS_NEED_DIR_DIFF_PATCH)
222
- int hpatch_dir(const char* oldPath,const char* diffFileName,const char* outNewPath,
223
- hpatch_BOOL isLoadOldAll,size_t patchCacheSize,size_t kMaxOpenFileNumber,
224
- TDirPatchChecksumSet* checksumSet,IHPatchDirListener* hlistener,
225
- hpatch_StreamPos_t diffDataOffert,hpatch_StreamPos_t diffDataSize);
226
- #endif
227
- #if (_IS_NEED_SFX)
228
- int createSfx(const char* selfExecuteFileName,const char* diffFileName,const char* out_sfxFileName);
229
- hpatch_BOOL getDiffDataOffertInSfx(hpatch_StreamPos_t* out_diffDataOffert,hpatch_StreamPos_t* out_diffDataSize);
230
- #endif
231
-
232
- #if (_IS_NEED_MAIN)
233
- # if (_IS_USED_WIN32_UTF8_WAPI)
234
- int wmain(int argc,wchar_t* argv_w[]){
235
- char* argv_utf8[hpatch_kPathMaxSize*3/sizeof(char*)];
236
- if (!_wFileNames_to_utf8((const wchar_t**)argv_w,argc,argv_utf8,sizeof(argv_utf8)))
237
- return HPATCH_OPTIONS_ERROR;
238
- SetDefaultStringLocale();
239
- return hpatch_cmd_line(argc,argv_utf8);
240
- }
241
- # else
242
- int main(int argc, const char * argv[]){
243
- return hpatch_cmd_line(argc,argv);
244
- }
245
- # endif
246
- #endif
247
-
248
- #if (_IS_NEED_DIR_DIFF_PATCH)
249
- static hpatch_BOOL _toChecksumSet(const char* psets,TDirPatchChecksumSet* checksumSet){
250
- while (hpatch_TRUE) {
251
- const char* pend=findUntilEnd(psets,'-');
252
- size_t len=(size_t)(pend-psets);
253
- if (len==0) return hpatch_FALSE; //error no set
254
- if ((len==4)&&(0==memcmp(psets,"diff",len))){
255
- checksumSet->isCheck_dirDiffData=hpatch_TRUE;
256
- }else if ((len==3)&&(0==memcmp(psets,"old",len))){
257
- checksumSet->isCheck_oldRefData=hpatch_TRUE;
258
- }else if ((len==3)&&(0==memcmp(psets,"new",len))){
259
- checksumSet->isCheck_newRefData=hpatch_TRUE;
260
- }else if ((len==4)&&(0==memcmp(psets,"copy",len))){
261
- checksumSet->isCheck_copyFileData=hpatch_TRUE;
262
- }else if ((len==3)&&(0==memcmp(psets,"all",len))){
263
- checksumSet->isCheck_dirDiffData=hpatch_TRUE;
264
- checksumSet->isCheck_oldRefData=hpatch_TRUE;
265
- checksumSet->isCheck_newRefData=hpatch_TRUE;
266
- checksumSet->isCheck_copyFileData=hpatch_TRUE;
267
- }else if ((len==2)&&(0==memcmp(psets,"no",len))){
268
- checksumSet->isCheck_dirDiffData=hpatch_FALSE;
269
- checksumSet->isCheck_oldRefData=hpatch_FALSE;
270
- checksumSet->isCheck_newRefData=hpatch_FALSE;
271
- checksumSet->isCheck_copyFileData=hpatch_FALSE;
272
- }else{
273
- return hpatch_FALSE;//error unknow set
274
- }
275
- if (*pend=='\0')
276
- return hpatch_TRUE; //ok
277
- else
278
- psets=pend+1;
279
- }
280
- }
281
- #endif
282
-
283
- #define _return_check(value,exitCode,errorInfo){ \
284
- if (!(value)) { fprintf(stderr,errorInfo " ERROR!\n"); return exitCode; } }
285
-
286
- #define _options_check(value,errorInfo){ \
287
- if (!(value)) { fprintf(stderr,"options " errorInfo " ERROR!\n\n"); \
288
- printUsage(); return HPATCH_OPTIONS_ERROR; } }
289
-
290
- #define kPatchCacheSize_min (hpatch_kStreamCacheSize*8)
291
- #define kPatchCacheSize_bestmin ((size_t)1<<21)
292
- #define kPatchCacheSize_default ((size_t)1<<26)
293
- #define kPatchCacheSize_bestmax ((size_t)1<<30)
294
-
295
- #define _kNULL_VALUE (-1)
296
- #define _kNULL_SIZE (~(size_t)0)
297
-
298
- int hpatch_cmd_line(int argc, const char * argv[]){
299
- hpatch_BOOL isLoadOldAll=_kNULL_VALUE;
300
- hpatch_BOOL isForceOverwrite=_kNULL_VALUE;
301
- hpatch_BOOL isOutputHelp=_kNULL_VALUE;
302
- hpatch_BOOL isOutputVersion=_kNULL_VALUE;
303
- hpatch_BOOL isOldPathInputEmpty=_kNULL_VALUE;
304
- #if (_IS_NEED_SFX)
305
- hpatch_BOOL isRunSFX=_kNULL_VALUE;
306
- const char* out_SFX=0;
307
- const char* selfExecuteFile=0;
308
- #endif
309
- size_t patchCacheSize=0;
310
- #if (_IS_NEED_DIR_DIFF_PATCH)
311
- size_t kMaxOpenFileNumber=_kNULL_SIZE; //only used in stream dir patch
312
- TDirPatchChecksumSet checksumSet={0,hpatch_FALSE,hpatch_TRUE,hpatch_TRUE,hpatch_FALSE}; //DEFAULT
313
- #endif
314
- #define kMax_arg_values_size 3
315
- const char* arg_values[kMax_arg_values_size]={0};
316
- int arg_values_size=0;
317
- int i;
318
- for (i=1; i<argc; ++i) {
319
- const char* op=argv[i];
320
- _options_check(op!=0,"?");
321
- if (op[0]!='-'){
322
- hpatch_BOOL isEmpty=(strlen(op)==0);
323
- _options_check(arg_values_size<kMax_arg_values_size,"input count");
324
- if (isEmpty){
325
- if (isOldPathInputEmpty==_kNULL_VALUE)
326
- isOldPathInputEmpty=hpatch_TRUE;
327
- else
328
- _options_check(!isEmpty,"?"); //error return
329
- }else{
330
- if (isOldPathInputEmpty==_kNULL_VALUE)
331
- isOldPathInputEmpty=hpatch_FALSE;
332
- }
333
- arg_values[arg_values_size]=op; //path: file or directory
334
- ++arg_values_size;
335
- continue;
336
- }
337
- _options_check((op!=0)&&(op[0]=='-'),"?");
338
- switch (op[1]) {
339
- case 'm':{
340
- _options_check((isLoadOldAll==_kNULL_VALUE)&&(op[2]=='\0'),"-m");
341
- isLoadOldAll=hpatch_TRUE;
342
- } break;
343
- case 's':{
344
- _options_check((isLoadOldAll==_kNULL_VALUE)&&((op[2]=='-')||(op[2]=='\0')),"-s");
345
- isLoadOldAll=hpatch_FALSE; //stream
346
- if (op[2]=='-'){
347
- const char* pnum=op+3;
348
- _options_check(kmg_to_size(pnum,strlen(pnum),&patchCacheSize),"-s-?");
349
- }else{
350
- patchCacheSize=kPatchCacheSize_default;
351
- }
352
- } break;
353
- #if (_IS_NEED_SFX)
354
- case 'X':{
355
- if (op[2]=='#'){
356
- const char* pnum=op+3;
357
- _options_check(out_SFX==0,"-X#?");
358
- out_SFX=pnum;
359
- _options_check(strlen(out_SFX)>0,"-X#?");
360
- }else if (op[2]=='-'){
361
- _options_check(selfExecuteFile==0,"-X-?");
362
- if ((op[3]=='e')&&(op[4]=='x')&&(op[5]=='e')&&(op[6]=='#')){
363
- selfExecuteFile=op+7;
364
- _options_check(strlen(selfExecuteFile)>0,"-X-exe#?");
365
- }else{
366
- _options_check(hpatch_FALSE,"-X-?");
367
- }
368
- }else{
369
- _options_check((isRunSFX==_kNULL_VALUE)&&(op[2]=='\0'),"-X");
370
- isRunSFX=hpatch_TRUE;
371
- }
372
- } break;
373
- #endif
374
- case 'f':{
375
- _options_check((isForceOverwrite==_kNULL_VALUE)&&(op[2]=='\0'),"-f");
376
- isForceOverwrite=hpatch_TRUE;
377
- } break;
378
- #if (_IS_NEED_DIR_DIFF_PATCH)
379
- case 'C':{
380
- const char* psets=op+3;
381
- _options_check((op[2]=='-'),"-C-?");
382
- memset(&checksumSet,0,sizeof(checksumSet));//all set false
383
- _options_check(_toChecksumSet(psets,&checksumSet),"-C-?");
384
- } break;
385
- case 'n':{
386
- const char* pnum=op+3;
387
- _options_check((kMaxOpenFileNumber==_kNULL_SIZE)&&(op[2]=='-'),"-n-?");
388
- _options_check(kmg_to_size(pnum,strlen(pnum),&kMaxOpenFileNumber),"-n-?");
389
- } break;
390
- #endif
391
- case '?':
392
- case 'h':{
393
- _options_check((isOutputHelp==_kNULL_VALUE)&&(op[2]=='\0'),"-h");
394
- isOutputHelp=hpatch_TRUE;
395
- } break;
396
- case 'v':{
397
- _options_check((isOutputVersion==_kNULL_VALUE)&&(op[2]=='\0'),"-v");
398
- isOutputVersion=hpatch_TRUE;
399
- } break;
400
- default: {
401
- _options_check(hpatch_FALSE,"-?");
402
- } break;
403
- }//switch
404
- }
405
-
406
- if (isOutputHelp==_kNULL_VALUE)
407
- isOutputHelp=hpatch_FALSE;
408
- if (isOutputVersion==_kNULL_VALUE)
409
- isOutputVersion=hpatch_FALSE;
410
- if (isForceOverwrite==_kNULL_VALUE)
411
- isForceOverwrite=hpatch_FALSE;
412
- #if (_IS_NEED_SFX)
413
- if (isRunSFX==_kNULL_VALUE)
414
- isRunSFX=hpatch_FALSE;
415
- if (arg_values_size==0){
416
- hpatch_StreamPos_t _diffDataOffert=0;
417
- hpatch_StreamPos_t _diffDataSize=0;
418
- if (getDiffDataOffertInSfx(&_diffDataOffert,&_diffDataSize)){//autoExtractSFX
419
- isForceOverwrite=hpatch_TRUE;
420
- isRunSFX=hpatch_TRUE;
421
- }
422
- }
423
- #endif
424
- if (isOutputHelp||isOutputVersion){
425
- if (isOutputHelp)
426
- printUsage();//with version
427
- else
428
- printVersion();
429
- #if (_IS_NEED_SFX)
430
- if ((arg_values_size==0)&&(!isRunSFX)&&(out_SFX==0)&&(selfExecuteFile==0))
431
- #else
432
- if (arg_values_size==0)
433
- #endif
434
- return 0; //ok
435
- }
436
- #if (_IS_NEED_DIR_DIFF_PATCH)
437
- if (kMaxOpenFileNumber==_kNULL_SIZE)
438
- kMaxOpenFileNumber=kMaxOpenFileNumber_default_patch;
439
- if (kMaxOpenFileNumber<kMaxOpenFileNumber_default_min)
440
- kMaxOpenFileNumber=kMaxOpenFileNumber_default_min;
441
- #endif
442
-
443
- if (isLoadOldAll==_kNULL_VALUE){
444
- isLoadOldAll=hpatch_FALSE;
445
- patchCacheSize=kPatchCacheSize_default;
446
- }
447
- if (isOldPathInputEmpty==_kNULL_VALUE)
448
- isOldPathInputEmpty=hpatch_FALSE;
449
-
450
- #if (_IS_NEED_SFX)
451
- if ((out_SFX!=0)||(selfExecuteFile!=0)){ //create SFX
452
- _options_check(out_SFX!=0,"-X#?");
453
- _options_check(!isRunSFX, "-X");
454
- _options_check(arg_values_size==1,"-X# input count");
455
- {
456
- const char* diffFileName =arg_values[0];
457
- if (selfExecuteFile==0) selfExecuteFile=argv[0];
458
- if (!isForceOverwrite){
459
- hpatch_TPathType outPathType;
460
- _return_check(hpatch_getPathStat(out_SFX,&outPathType,0),
461
- HPATCH_PATHTYPE_ERROR,"get outSelfExtractArchive type");
462
- _return_check(outPathType==kPathType_notExist,
463
- HPATCH_PATHTYPE_ERROR,"outSelfExtractArchive already exists, overwrite");
464
- }
465
- return createSfx(selfExecuteFile,diffFileName,out_SFX);
466
- }
467
- }else if (isRunSFX){//patch run as SFX mode
468
- _options_check((arg_values_size==2)||(arg_values_size==0),"-X input count");
469
- }else
470
- #endif
471
- {//patch default mode
472
- _options_check(arg_values_size==3,"input count");
473
- }
474
- {//patch
475
- const char* oldPath =0;
476
- const char* diffFileName=0;
477
- const char* outNewPath =0;
478
- #if (_IS_NEED_SFX)
479
- # ifdef _WIN32
480
- const char* kSFX_curDefaultPath=".\\";
481
- # else
482
- const char* kSFX_curDefaultPath="./";
483
- # endif
484
- const char* kSFX_emptyPath="";
485
- #endif
486
- #if (_IS_NEED_DIR_DIFF_PATCH)
487
- TDirDiffInfo dirDiffInfo;
488
- hpatch_BOOL isOutDir;
489
- #endif
490
- hpatch_BOOL isSamePath;
491
- hpatch_StreamPos_t diffDataOffert=0;
492
- hpatch_StreamPos_t diffDataSize=0;
493
- #if (_IS_NEED_SFX)
494
- if (isRunSFX){
495
- printf("run as SFX mode!\n");
496
- _return_check(getDiffDataOffertInSfx(&diffDataOffert,&diffDataSize),
497
- HPATCH_RUN_SFX_NOTSFX_ERROR,"not found diff data in selfExecuteFile");
498
- diffFileName=argv[0];//selfExecuteFileName
499
- if (arg_values_size==0){//autoExtractSFX
500
- oldPath =kSFX_emptyPath;
501
- outNewPath =kSFX_curDefaultPath;
502
- }else{
503
- oldPath =arg_values[0];
504
- outNewPath =arg_values[1];
505
- }
506
- //continue
507
- }else
508
- #endif
509
- {
510
- oldPath =arg_values[0];
511
- diffFileName=arg_values[1];
512
- outNewPath =arg_values[2];
513
- }
514
-
515
- isSamePath=hpatch_getIsSamePath(oldPath,outNewPath);
516
- _return_check(!hpatch_getIsSamePath(oldPath,diffFileName),
517
- HPATCH_PATHTYPE_ERROR,"oldPath diffFile same path");
518
- _return_check(!hpatch_getIsSamePath(outNewPath,diffFileName),
519
- HPATCH_PATHTYPE_ERROR,"outNewPath diffFile same path");
520
- if (!isForceOverwrite){
521
- hpatch_TPathType outNewPathType;
522
- _return_check(hpatch_getPathStat(outNewPath,&outNewPathType,0),
523
- HPATCH_PATHTYPE_ERROR,"get outNewPath type");
524
- _return_check(outNewPathType==kPathType_notExist,
525
- HPATCH_PATHTYPE_ERROR,"outNewPath already exists, overwrite");
526
- }
527
- if (isSamePath)
528
- _return_check(isForceOverwrite,HPATCH_PATHTYPE_ERROR,"oldPath outNewPath same path, overwrite");
529
- #if (_IS_NEED_DIR_DIFF_PATCH)
530
- _return_check(getDirDiffInfoByFile(diffFileName,&dirDiffInfo,diffDataOffert,diffDataSize),
531
- HPATCH_OPENREAD_ERROR,"input diffFile open read");
532
- isOutDir=(dirDiffInfo.isDirDiff)&&(dirDiffInfo.newPathIsDir);
533
- #endif
534
- if (!isSamePath){ // out new file or new dir
535
- #if (_IS_NEED_DIR_DIFF_PATCH)
536
- if (dirDiffInfo.isDirDiff){
537
- return hpatch_dir(oldPath,diffFileName,outNewPath,isLoadOldAll,patchCacheSize,kMaxOpenFileNumber,
538
- &checksumSet,&defaultPatchDirlistener,diffDataOffert,diffDataSize);
539
- }else
540
- #endif
541
- {
542
- return hpatch(oldPath,diffFileName,outNewPath,
543
- isLoadOldAll,patchCacheSize,diffDataOffert,diffDataSize);
544
- }
545
- }else
546
- #if (_IS_NEED_DIR_DIFF_PATCH)
547
- if (!isOutDir)
548
- #endif
549
- { // isSamePath==true and out to file
550
- int result;
551
- char newTempName[hpatch_kPathMaxSize];
552
- #if (_IS_NEED_DIR_DIFF_PATCH)
553
- if (dirDiffInfo.isDirDiff)
554
- _return_check(!dirDiffInfo.oldPathIsDir,
555
- HPATCH_PATHTYPE_ERROR,"can not use file overwrite oldDirectory");
556
- #endif
557
- // 1. patch to newTempName
558
- // 2. if patch ok then { delelte oldPath; rename newTempName to oldPath; }
559
- // if patch error then { delelte newTempName; }
560
- _return_check(hpatch_getTempPathName(outNewPath,newTempName,newTempName+hpatch_kPathMaxSize),
561
- HPATCH_TEMPPATH_ERROR,"getTempPathName(outNewPath)");
562
- printf("NOTE: outNewPath temp file will be rename to oldPath name after patch!\n");
563
- #if (_IS_NEED_DIR_DIFF_PATCH)
564
- if (dirDiffInfo.isDirDiff){
565
- result=hpatch_dir(oldPath,diffFileName,newTempName,isLoadOldAll,patchCacheSize,
566
- kMaxOpenFileNumber,&checksumSet,&defaultPatchDirlistener,diffDataOffert,diffDataSize);
567
- }else
568
- #endif
569
- {
570
- result=hpatch(oldPath,diffFileName,newTempName,
571
- isLoadOldAll,patchCacheSize,diffDataOffert,diffDataSize);
572
- }
573
- if (result==HPATCH_SUCCESS){
574
- _return_check(hpatch_removeFile(oldPath),
575
- HPATCH_DELETEPATH_ERROR,"removeFile(oldPath)");
576
- _return_check(hpatch_renamePath(newTempName,oldPath),
577
- HPATCH_RENAMEPATH_ERROR,"renamePath(temp,oldPath)");
578
- printf("outNewPath temp file renamed to oldPath name!\n");
579
- }else{//patch error
580
- if (!hpatch_removeFile(newTempName)){
581
- printf("WARNING: can't remove temp file \"");
582
- hpatch_printPath_utf8(newTempName); printf("\"\n");
583
- }
584
- }
585
- return result;
586
- }
587
- #if (_IS_NEED_DIR_DIFF_PATCH)
588
- else{ // isDirDiff==true isSamePath==true and out to dir
589
- int result;
590
- char newTempDir[hpatch_kPathMaxSize];
591
- assert(dirDiffInfo.isDirDiff);
592
- _return_check(dirDiffInfo.oldPathIsDir,
593
- HPATCH_PATHTYPE_ERROR,"can not use directory overwrite oldFile");
594
- _return_check(hpatch_getTempPathName(outNewPath,newTempDir,newTempDir+hpatch_kPathMaxSize),
595
- HPATCH_TEMPPATH_ERROR,"getTempPathName(outNewPath)");
596
- printf("NOTE: all in outNewPath temp directory will be move to oldDirectory after patch!\n");
597
- result=hpatch_dir(oldPath,diffFileName,newTempDir,isLoadOldAll,patchCacheSize,
598
- kMaxOpenFileNumber,&checksumSet,&tempDirPatchListener,diffDataOffert,diffDataSize);
599
- if (result==HPATCH_SUCCESS){
600
- printf("all in outNewPath temp directory moved to oldDirectory!\n");
601
- }else if(!hpatch_isPathNotExist(newTempDir)){
602
- printf("WARNING: not remove temp directory \"");
603
- hpatch_printPath_utf8(newTempDir); printf("\"\n");
604
- }
605
- return result;
606
- }
607
- #endif
608
- }
609
- }
610
-
611
-
612
- #define check_on_error(errorType) { \
613
- if (result==HPATCH_SUCCESS) result=errorType; if (!_isInClear){ goto clear; } }
614
- #define check(value,errorType,errorInfo) { \
615
- if (!(value)){ fprintf(stderr,errorInfo " ERROR!\n"); check_on_error(errorType); } }
616
-
617
-
618
- static hpatch_BOOL getDecompressPlugin(const hpatch_compressedDiffInfo* diffInfo,
619
- hpatch_TDecompress** out_decompressPlugin){
620
- hpatch_TDecompress* decompressPlugin=0;
621
- assert(0==*out_decompressPlugin);
622
- if (strlen(diffInfo->compressType)>0){
623
- #ifdef _CompressPlugin_zlib
624
- if ((!decompressPlugin)&&zlibDecompressPlugin.is_can_open(diffInfo->compressType))
625
- decompressPlugin=&zlibDecompressPlugin;
626
- #endif
627
- #ifdef _CompressPlugin_bz2
628
- if ((!decompressPlugin)&&bz2DecompressPlugin.is_can_open(diffInfo->compressType))
629
- decompressPlugin=&bz2DecompressPlugin;
630
- #endif
631
- #ifdef _CompressPlugin_lzma
632
- if ((!decompressPlugin)&&lzmaDecompressPlugin.is_can_open(diffInfo->compressType))
633
- decompressPlugin=&lzmaDecompressPlugin;
634
- #endif
635
- #ifdef _CompressPlugin_lzma2
636
- if ((!decompressPlugin)&&lzma2DecompressPlugin.is_can_open(diffInfo->compressType))
637
- decompressPlugin=&lzma2DecompressPlugin;
638
- #endif
639
- #if (defined(_CompressPlugin_lz4) || (defined(_CompressPlugin_lz4hc)))
640
- if ((!decompressPlugin)&&lz4DecompressPlugin.is_can_open(diffInfo->compressType))
641
- decompressPlugin=&lz4DecompressPlugin;
642
- #endif
643
- #ifdef _CompressPlugin_zstd
644
- if ((!decompressPlugin)&&zstdDecompressPlugin.is_can_open(diffInfo->compressType))
645
- decompressPlugin=&zstdDecompressPlugin;
646
- #endif
647
- #ifdef _CompressPlugin_brotli
648
- if ((!decompressPlugin)&&brotliDecompressPlugin.is_can_open(diffInfo->compressType))
649
- decompressPlugin=&brotliDecompressPlugin;
650
- #endif
651
- #ifdef _CompressPlugin_lzham
652
- if ((!decompressPlugin)&&lzhamDecompressPlugin.is_can_open(diffInfo->compressType))
653
- decompressPlugin=&lzhamDecompressPlugin;
654
- #endif
655
- }
656
- if (!decompressPlugin){
657
- if (diffInfo->compressedCount>0){
658
- return hpatch_FALSE; //error
659
- }else{
660
- if (strlen(diffInfo->compressType)>0)
661
- printf(" diffFile added useless compress tag \"%s\"\n",diffInfo->compressType);
662
- decompressPlugin=0;
663
- }
664
- }else{
665
- printf("hpatchz run with decompress plugin: \"%s\" (need decompress %d)\n",
666
- diffInfo->compressType,diffInfo->compressedCount);
667
- }
668
- *out_decompressPlugin=decompressPlugin;
669
- return hpatch_TRUE;
670
- }
671
-
672
- #if (_IS_NEED_DIR_DIFF_PATCH)
673
- static void _trySetChecksum(hpatch_TChecksum** out_checksumPlugin,const char* checksumType,
674
- hpatch_TChecksum* testChecksumPlugin){
675
- if ((*out_checksumPlugin)!=0) return;
676
- if (0==strcmp(checksumType,testChecksumPlugin->checksumType()))
677
- *out_checksumPlugin=testChecksumPlugin;
678
- }
679
- static hpatch_BOOL findChecksum(hpatch_TChecksum** out_checksumPlugin,const char* checksumType){
680
- *out_checksumPlugin=0;
681
- if (strlen(checksumType)==0) return hpatch_TRUE;
682
- #ifdef _ChecksumPlugin_crc32
683
- _trySetChecksum(out_checksumPlugin,checksumType,&crc32ChecksumPlugin);
684
- #endif
685
- #ifdef _ChecksumPlugin_adler32
686
- _trySetChecksum(out_checksumPlugin,checksumType,&adler32ChecksumPlugin);
687
- #endif
688
- #ifdef _ChecksumPlugin_adler64
689
- _trySetChecksum(out_checksumPlugin,checksumType,&adler64ChecksumPlugin);
690
- #endif
691
- #ifdef _ChecksumPlugin_fadler32
692
- _trySetChecksum(out_checksumPlugin,checksumType,&fadler32ChecksumPlugin);
693
- #endif
694
- #ifdef _ChecksumPlugin_fadler64
695
- _trySetChecksum(out_checksumPlugin,checksumType,&fadler64ChecksumPlugin);
696
- #endif
697
- #ifdef _ChecksumPlugin_fadler128
698
- _trySetChecksum(out_checksumPlugin,checksumType,&fadler128ChecksumPlugin);
699
- #endif
700
- #ifdef _ChecksumPlugin_md5
701
- _trySetChecksum(out_checksumPlugin,checksumType,&md5ChecksumPlugin);
702
- #endif
703
- return (0!=*out_checksumPlugin);
704
- }
705
- #endif
706
-
707
- #define _free_mem(p) { if (p) { free(p); p=0; } }
708
-
709
- static TByte* getPatchMemCache(hpatch_BOOL isLoadOldAll,size_t patchCacheSize,
710
- hpatch_StreamPos_t oldDataSize,size_t* out_memCacheSize){
711
- TByte* temp_cache=0;
712
- size_t temp_cache_size;
713
- if (isLoadOldAll){
714
- size_t addSize=kPatchCacheSize_bestmin;
715
- if (addSize>oldDataSize+kPatchCacheSize_min)
716
- addSize=(size_t)(oldDataSize+kPatchCacheSize_min);
717
- assert(patchCacheSize==0);
718
- temp_cache_size=(size_t)(oldDataSize+addSize);
719
- if (temp_cache_size!=oldDataSize+addSize)
720
- temp_cache_size=kPatchCacheSize_bestmax;//can not load all,load part
721
- }else{
722
- if (patchCacheSize<kPatchCacheSize_min)
723
- patchCacheSize=kPatchCacheSize_min;
724
- temp_cache_size=patchCacheSize;
725
- if (temp_cache_size>oldDataSize+kPatchCacheSize_bestmin)
726
- temp_cache_size=(size_t)(oldDataSize+kPatchCacheSize_bestmin);
727
- }
728
- while (!temp_cache) {
729
- temp_cache=(TByte*)malloc(temp_cache_size);
730
- if ((!temp_cache)&&(temp_cache_size>=kPatchCacheSize_min*2))
731
- temp_cache_size>>=1;
732
- }
733
- *out_memCacheSize=(temp_cache)?temp_cache_size:0;
734
- return temp_cache;
735
- }
736
-
737
-
738
- int hpatch(const char* oldFileName,const char* diffFileName,
739
- const char* outNewFileName,hpatch_BOOL isLoadOldAll,size_t patchCacheSize,
740
- hpatch_StreamPos_t diffDataOffert,hpatch_StreamPos_t diffDataSize){
741
- int result=HPATCH_SUCCESS;
742
- int _isInClear=hpatch_FALSE;
743
- double time0=clock_s();
744
- #if (_IS_NEED_SINGLE_STREAM_DIFF)
745
- hpatch_BOOL isSingleStreamDiff=hpatch_FALSE;
746
- hpatch_singleCompressedDiffInfo sdiffInfo;
747
- #endif
748
- hpatch_TDecompress* decompressPlugin=0;
749
- hpatch_TFileStreamOutput newData;
750
- hpatch_TFileStreamInput diffData;
751
- hpatch_TFileStreamInput oldData;
752
- hpatch_TStreamInput* poldData=&oldData.base;
753
- TByte* temp_cache=0;
754
- size_t temp_cache_size;
755
- hpatch_StreamPos_t savedNewSize=0;
756
- hpatch_BOOL patch_result;
757
- hpatch_TFileStreamInput_init(&oldData);
758
- hpatch_TFileStreamInput_init(&diffData);
759
- hpatch_TFileStreamOutput_init(&newData);
760
- {//open
761
- printf( "old : \""); hpatch_printPath_utf8(oldFileName);
762
- printf("\"\ndiff: \""); hpatch_printPath_utf8(diffFileName);
763
- printf("\"\nout : \""); hpatch_printPath_utf8(outNewFileName);
764
- printf("\"\n");
765
- if (0==strcmp(oldFileName,"")){ // isOldPathInputEmpty
766
- mem_as_hStreamInput(&oldData.base,0,0);
767
- }else{
768
- check(hpatch_TFileStreamInput_open(&oldData,oldFileName),
769
- HPATCH_OPENREAD_ERROR,"open oldFile for read");
770
- }
771
- check(hpatch_TFileStreamInput_open(&diffData,diffFileName),
772
- HPATCH_OPENREAD_ERROR,"open diffFile for read");
773
- #if (_IS_NEED_SFX)
774
- if (diffDataOffert>0){ //run sfx
775
- check(hpatch_TFileStreamInput_setOffset(&diffData,diffDataOffert),
776
- HPATCH_RUN_SFX_DIFFOFFSERT_ERROR,"readed sfx diffFile offset");
777
- check(diffData.base.streamSize>=diffDataSize,
778
- HPATCH_RUN_SFX_DIFFOFFSERT_ERROR,"readed sfx diffFile size");
779
- diffData.base.streamSize=diffDataSize;
780
- }
781
- #endif
782
- }
783
-
784
- {
785
- hpatch_compressedDiffInfo diffInfo;
786
- if (!getCompressedDiffInfo(&diffInfo,&diffData.base)){
787
- check(!diffData.fileError,HPATCH_FILEREAD_ERROR,"read diffFile");
788
- #if (_IS_NEED_SINGLE_STREAM_DIFF)
789
- if (getSingleCompressedDiffInfo(&sdiffInfo,&diffData.base,0)){
790
- memcpy(diffInfo.compressType,sdiffInfo.compressType,strlen(sdiffInfo.compressType)+1);
791
- diffInfo.compressedCount=(sdiffInfo.compressType[0]!='\0')?1:0;
792
- diffInfo.newDataSize=sdiffInfo.newDataSize;
793
- diffInfo.oldDataSize=sdiffInfo.oldDataSize;
794
- patchCacheSize+=(size_t)sdiffInfo.stepMemSize;
795
- if (patchCacheSize<sdiffInfo.stepMemSize+hpatch_kStreamCacheSize*3)
796
- patchCacheSize=sdiffInfo.stepMemSize+hpatch_kStreamCacheSize*3;
797
- isSingleStreamDiff=hpatch_TRUE;
798
- printf("patch single compressed stream diffData!\n");
799
- }else
800
- #endif
801
- check(hpatch_FALSE,HPATCH_HDIFFINFO_ERROR,"is hdiff file? getCompressedDiffInfo()");
802
- }
803
- if (poldData->streamSize!=diffInfo.oldDataSize){
804
- fprintf(stderr,"oldFile dataSize %" PRIu64 " != diffFile saved oldDataSize %" PRIu64 " ERROR!\n",
805
- poldData->streamSize,diffInfo.oldDataSize);
806
- check_on_error(HPATCH_FILEDATA_ERROR);
807
- }
808
- if(!getDecompressPlugin(&diffInfo,&decompressPlugin)){
809
- fprintf(stderr,"can not decompress \"%s\" data ERROR!\n",diffInfo.compressType);
810
- check_on_error(HPATCH_COMPRESSTYPE_ERROR);
811
- }
812
- savedNewSize=diffInfo.newDataSize;
813
- }
814
- check(hpatch_TFileStreamOutput_open(&newData, outNewFileName,savedNewSize),
815
- HPATCH_OPENWRITE_ERROR,"open out newFile for write");
816
- printf("oldDataSize : %" PRIu64 "\ndiffDataSize: %" PRIu64 "\nnewDataSize : %" PRIu64 "\n",
817
- poldData->streamSize,diffData.base.streamSize,newData.base.streamSize);
818
-
819
- temp_cache=getPatchMemCache(isLoadOldAll,patchCacheSize,poldData->streamSize, &temp_cache_size);
820
- check(temp_cache,HPATCH_MEM_ERROR,"alloc cache memory");
821
- #if (_IS_NEED_SINGLE_STREAM_DIFF)
822
- if (isSingleStreamDiff){
823
- check(temp_cache_size>=sdiffInfo.stepMemSize+hpatch_kStreamCacheSize*3,HPATCH_MEM_ERROR,"alloc cache memory");
824
- patch_result=patch_single_compressed_diff(&newData.base,poldData,&diffData.base,sdiffInfo.diffDataPos,
825
- sdiffInfo.uncompressedSize,decompressPlugin,sdiffInfo.coverCount,
826
- sdiffInfo.stepMemSize,temp_cache,temp_cache+temp_cache_size);
827
- }else
828
- #endif
829
- patch_result=patch_decompress_with_cache(&newData.base,poldData,&diffData.base,decompressPlugin,
830
- temp_cache,temp_cache+temp_cache_size);
831
- if (!patch_result){
832
- check(!oldData.fileError,HPATCH_FILEREAD_ERROR,"oldFile read");
833
- check(!diffData.fileError,HPATCH_FILEREAD_ERROR,"diffFile read");
834
- check(!newData.fileError,HPATCH_FILEWRITE_ERROR,"out newFile write");
835
- check(hpatch_FALSE,HPATCH_PATCH_ERROR,"patch run");
836
- }
837
- if (newData.out_length!=newData.base.streamSize){
838
- fprintf(stderr,"out newFile dataSize %" PRIu64 " != diffFile saved newDataSize %" PRIu64 " ERROR!\n",
839
- newData.out_length,newData.base.streamSize);
840
- check_on_error(HPATCH_FILEDATA_ERROR);
841
- }
842
- printf(" patch ok!\n");
843
-
844
- clear:
845
- _isInClear=hpatch_TRUE;
846
- check(hpatch_TFileStreamOutput_close(&newData),HPATCH_FILECLOSE_ERROR,"out newFile close");
847
- check(hpatch_TFileStreamInput_close(&diffData),HPATCH_FILECLOSE_ERROR,"diffFile close");
848
- check(hpatch_TFileStreamInput_close(&oldData),HPATCH_FILECLOSE_ERROR,"oldFile close");
849
- _free_mem(temp_cache);
850
- printf("\nhpatchz time: %.3f s\n",(clock_s()-time0));
851
- return result;
852
- }
853
-
854
- #if (_IS_NEED_DIR_DIFF_PATCH)
855
- int hpatch_dir(const char* oldPath,const char* diffFileName,const char* outNewPath,
856
- hpatch_BOOL isLoadOldAll,size_t patchCacheSize,size_t kMaxOpenFileNumber,
857
- TDirPatchChecksumSet* checksumSet,IHPatchDirListener* hlistener,
858
- hpatch_StreamPos_t diffDataOffert,hpatch_StreamPos_t diffDataSize){
859
- int result=HPATCH_SUCCESS;
860
- int _isInClear=hpatch_FALSE;
861
- double time0=clock_s();
862
- hpatch_TFileStreamInput diffData;
863
- TDirPatcher dirPatcher;
864
- const TDirDiffInfo* dirDiffInfo=0;
865
- TByte* p_temp_mem=0;
866
- TByte* temp_cache=0;
867
- size_t temp_cache_size;
868
- const hpatch_TStreamInput* oldStream=0;
869
- const hpatch_TStreamOutput* newStream=0;
870
- hpatch_TFileStreamInput_init(&diffData);
871
- TDirPatcher_init(&dirPatcher);
872
- assert(0!=strcmp(oldPath,outNewPath));
873
- {//dir diff info
874
- hpatch_BOOL rt;
875
- hpatch_TPathType oldType;
876
- if (0==strcmp(oldPath,"")){ // isOldPathInputEmpty
877
- oldType=kPathType_file; //as empty file
878
- }else{
879
- check(hpatch_getPathStat(oldPath,&oldType,0),HPATCH_PATHTYPE_ERROR,"get oldPath type");
880
- check((oldType!=kPathType_notExist),HPATCH_PATHTYPE_ERROR,"oldPath not exist");
881
- }
882
- check(hpatch_TFileStreamInput_open(&diffData,diffFileName),HPATCH_OPENREAD_ERROR,"open diffFile for read");
883
- #if (_IS_NEED_SFX)
884
- if (diffDataOffert>0){ //run sfx
885
- check(hpatch_TFileStreamInput_setOffset(&diffData,diffDataOffert),
886
- HPATCH_RUN_SFX_DIFFOFFSERT_ERROR,"readed sfx diffFile offset");
887
- check(diffData.base.streamSize>=diffDataSize,
888
- HPATCH_RUN_SFX_DIFFOFFSERT_ERROR,"readed sfx diffFile size");
889
- diffData.base.streamSize=diffDataSize;
890
- }
891
- #endif
892
- rt=TDirPatcher_open(&dirPatcher,&diffData.base,&dirDiffInfo);
893
- if((!rt)||(!dirDiffInfo->isDirDiff)){
894
- check(!diffData.fileError,HPATCH_FILEREAD_ERROR,"read diffFile");
895
- check(hpatch_FALSE,DIRPATCH_DIRDIFFINFO_ERROR,"is hdiff file? get dir diff info");
896
- }
897
- if (dirDiffInfo->oldPathIsDir){
898
- check(kPathType_dir==oldType,HPATCH_PATHTYPE_ERROR,"input old path need dir");
899
- }else{
900
- check(kPathType_file==oldType,HPATCH_PATHTYPE_ERROR,"input old path need file");
901
- }
902
- printf( dirDiffInfo->oldPathIsDir?"old dir: \"":"old file: \"");
903
- hpatch_printPath_utf8(oldPath);
904
- if (dirDiffInfo->oldPathIsDir&&(!hpatch_getIsDirName(oldPath))) printf("%c",kPatch_dirSeparator);
905
- printf( "\"\ndiffFile: \"");
906
- hpatch_printPath_utf8(diffFileName);
907
- printf(dirDiffInfo->newPathIsDir?"\"\nout dir: \"":"\"\nout file: \"");
908
- hpatch_printPath_utf8(outNewPath);
909
- if (dirDiffInfo->newPathIsDir&&(!hpatch_getIsDirName(outNewPath))) printf("%c",kPatch_dirSeparator);
910
- printf("\"\n");
911
- }
912
- {//decompressPlugin
913
- hpatch_TDecompress* decompressPlugin=0;
914
- hpatch_compressedDiffInfo hdiffInfo;
915
- hdiffInfo=dirDiffInfo->hdiffInfo;
916
- hdiffInfo.compressedCount+=(dirDiffInfo->dirDataIsCompressed)?1:0;
917
- if(!getDecompressPlugin(&hdiffInfo,&decompressPlugin)){
918
- fprintf(stderr,"can not decompress \"%s\" data ERROR!\n",hdiffInfo.compressType);
919
- check_on_error(HPATCH_COMPRESSTYPE_ERROR);
920
- }
921
- //load dir data
922
- check(TDirPatcher_loadDirData(&dirPatcher,decompressPlugin,oldPath,outNewPath),
923
- DIRPATCH_LAOD_DIRDIFFDATA_ERROR,"load dir data in diffFile");
924
- }
925
- check(hlistener->patchBegin(hlistener,&dirPatcher),
926
- DIRPATCH_PATCHBEGIN_ERROR,"dir patch begin");
927
- {// checksumPlugin
928
- int wantChecksumCount = checksumSet->isCheck_dirDiffData+checksumSet->isCheck_oldRefData+
929
- checksumSet->isCheck_newRefData+checksumSet->isCheck_copyFileData;
930
- assert(checksumSet->checksumPlugin==0);
931
- if (wantChecksumCount>0){
932
- if (strlen(dirDiffInfo->checksumType)==0){
933
- memset(checksumSet,0,sizeof(*checksumSet));
934
- printf(" NOTE: no checksum saved in diffFile,can not do checksum\n");
935
- }else{
936
- if (!findChecksum(&checksumSet->checksumPlugin,dirDiffInfo->checksumType)){
937
- fprintf(stderr,"not found checksumType \"%s\" ERROR!\n",dirDiffInfo->checksumType);
938
- check_on_error(DIRPATCH_CHECKSUMTYPE_ERROR);
939
- }
940
- printf("hpatchz run with checksum plugin: \"%s\" (need checksum %d)\n",
941
- dirDiffInfo->checksumType,wantChecksumCount);
942
- if (!TDirPatcher_checksum(&dirPatcher,checksumSet)){
943
- check(!TDirPatcher_isDiffDataChecksumError(&dirPatcher),
944
- DIRPATCH_CHECKSUM_DIFFDATA_ERROR,"diffFile checksum");
945
- check(hpatch_FALSE,DIRPATCH_CHECKSUMSET_ERROR,"diffFile set checksum");
946
- }
947
- }
948
- }
949
- }
950
- {//info
951
- const _TDirDiffHead* head=&dirPatcher.dirDiffHead;
952
- printf("DirPatch new path count: %" PRIu64 " (fileCount:%" PRIu64 ")\n",(hpatch_StreamPos_t)head->newPathCount,
953
- (hpatch_StreamPos_t)(head->sameFilePairCount+head->newRefFileCount));
954
- printf(" copy from old count: %" PRIu64 " (dataSize: %" PRIu64 ")\n",
955
- (hpatch_StreamPos_t)head->sameFilePairCount,head->sameFileSize);
956
- printf(" ref old file count: %" PRIu64 "\n",(hpatch_StreamPos_t)head->oldRefFileCount);
957
- printf(" ref new file count: %" PRIu64 "\n",(hpatch_StreamPos_t)head->newRefFileCount);
958
- printf("oldRefSize : %" PRIu64 "\ndiffDataSize: %" PRIu64 "\nnewRefSize : %" PRIu64 " (all newSize: %" PRIu64 ")\n",
959
- dirDiffInfo->hdiffInfo.oldDataSize,diffData.base.streamSize,dirDiffInfo->hdiffInfo.newDataSize,
960
- dirDiffInfo->hdiffInfo.newDataSize+head->sameFileSize);
961
- }
962
- {//mem cache
963
- p_temp_mem=getPatchMemCache(isLoadOldAll,patchCacheSize,dirDiffInfo->hdiffInfo.oldDataSize, &temp_cache_size);
964
- check(p_temp_mem,HPATCH_MEM_ERROR,"alloc cache memory");
965
- temp_cache=p_temp_mem;
966
- }
967
- {//old data
968
- if (temp_cache_size>=dirDiffInfo->hdiffInfo.oldDataSize+kPatchCacheSize_min){
969
- // all old while auto cache by patch; not need open old files at same time
970
- kMaxOpenFileNumber=kMaxOpenFileNumber_limit_min;
971
- }
972
- check(TDirPatcher_openOldRefAsStream(&dirPatcher,kMaxOpenFileNumber,&oldStream),
973
- DIRPATCH_OPEN_OLDPATH_ERROR,"open oldFile");
974
- }
975
- {//new data
976
- check(TDirPatcher_openNewDirAsStream(&dirPatcher,&hlistener->base,&newStream),
977
- DIRPATCH_OPEN_NEWPATH_ERROR,"open newFile");
978
- }
979
- //patch
980
- if(!TDirPatcher_patch(&dirPatcher,newStream,oldStream,temp_cache,temp_cache+temp_cache_size)){
981
- check(!TDirPatcher_isOldRefDataChecksumError(&dirPatcher),
982
- DIRPATCH_CHECKSUM_OLDDATA_ERROR,"oldFile checksum");
983
- check(!TDirPatcher_isCopyDataChecksumError(&dirPatcher),
984
- DIRPATCH_CHECKSUM_COPYDATA_ERROR,"copyOldFile checksum");
985
- check(!TDirPatcher_isNewRefDataChecksumError(&dirPatcher),
986
- DIRPATCH_CHECKSUM_NEWDATA_ERROR,"newFile checksum");
987
- check(hpatch_FALSE,DIRPATCH_PATCH_ERROR,"dir patch run");
988
- }
989
- clear:
990
- _isInClear=hpatch_TRUE;
991
- check(hlistener->patchFinish(hlistener,result==HPATCH_SUCCESS),
992
- DIRPATCH_PATCHFINISH_ERROR,"dir patch finish");
993
- check(TDirPatcher_closeNewDirStream(&dirPatcher),DIRPATCH_CLOSE_NEWPATH_ERROR,"newPath close");
994
- check(TDirPatcher_closeOldRefStream(&dirPatcher),DIRPATCH_CLOSE_OLDPATH_ERROR,"oldPath close");
995
- TDirPatcher_close(&dirPatcher);
996
- check(hpatch_TFileStreamInput_close(&diffData),HPATCH_FILECLOSE_ERROR,"diffFile close");
997
- _free_mem(p_temp_mem);
998
- printf("\nhpatchz dir patch time: %.3f s\n",(clock_s()-time0));
999
- return result;
1000
- }
1001
- #endif
1002
-
1003
- #if (_IS_NEED_SFX)
1004
- #define _sfx_guid_size 16
1005
- #define _sfx_guid_node_size (_sfx_guid_size+sizeof(hpatch_uint32_t)+sizeof(hpatch_uint64_t))
1006
- //_sfx_guid_node:{fd6c3a9d-1498-4a5d-a9d5-7303a82fd08e-ffffffff-ffffffffffffffff}
1007
- TByte _sfx_guid_node[_sfx_guid_node_size]={
1008
- 0xfd,0x6c,0x3a,0x9d,
1009
- 0x14,0x98,
1010
- 0x4a,0x5d,
1011
- 0xa9,0xd5,
1012
- 0x73,0x03,0xa8,0x2f,0xd0,0x8e,
1013
- 0xff,0xff,0xff,0xff, // saved diffDataOffert , selfExecute fileSize < 4GB
1014
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}; // diffDataSize
1015
-
1016
- static TByte* _search(TByte* src,TByte* src_end,const TByte* sub,const TByte* sub_end){
1017
- size_t sub_len=(size_t)(sub_end-sub);
1018
- TByte* search_last=src_end-sub_len;
1019
- TByte c0;
1020
- if (sub_len==0) return src;
1021
- if ((size_t)(src_end-src)<sub_len) return src_end;
1022
- c0=*sub;
1023
- for (;src<=search_last;++src) {
1024
- if (c0!=*src){
1025
- continue;
1026
- }else{
1027
- hpatch_BOOL is_eq=hpatch_TRUE;
1028
- size_t i;
1029
- for (i=1; i<sub_len;++i) {
1030
- if (sub[i]!=src[i]){
1031
- is_eq=hpatch_FALSE;
1032
- break;
1033
- }
1034
- }
1035
- if (!is_eq)
1036
- continue;
1037
- else
1038
- return src;
1039
- }
1040
- }
1041
- return src_end;
1042
- }
1043
-
1044
- static int createSfx_notCheckDiffFile_byStream(const hpatch_TStreamInput* selfExecute,
1045
- const hpatch_TStreamInput* diffData,
1046
- const hpatch_TStreamOutput* out_sfxData){
1047
- int result=HPATCH_SUCCESS;
1048
- int _isInClear=hpatch_FALSE;
1049
- TByte* buf=0;
1050
- TByte* pmem=0;
1051
- hpatch_StreamPos_t writePos=0;
1052
- hpatch_BOOL isFoundGuid=hpatch_FALSE;
1053
- const hpatch_StreamPos_t diffDataOffert=selfExecute->streamSize;
1054
- const hpatch_StreamPos_t diffDataSize=diffData->streamSize;
1055
- {//mem
1056
- pmem=(TByte*)malloc(_sfx_guid_node_size+hpatch_kFileIOBufBetterSize);
1057
- check(pmem!=0,HPATCH_MEM_ERROR,"createSfx() malloc");
1058
- memset(pmem,0,_sfx_guid_node_size);
1059
- buf=pmem+_sfx_guid_node_size; // [ _sfx_guid_node_size | hpatch_kFileIOBufBetterSize ]
1060
- }
1061
- {//copy exe ,find guid pos and write diffDataOffset
1062
- const hpatch_uint32_t dataSize=(hpatch_uint32_t)(selfExecute->streamSize);
1063
- hpatch_StreamPos_t readPos=0;
1064
- check(dataSize==selfExecute->streamSize,
1065
- HPATCH_CREATE_SFX_SFXTYPE_ERROR,"createSfx() selfExecute fileSize");
1066
- while (readPos < dataSize) {
1067
- TByte* wbuf=0;
1068
- const TByte* wbuf_end=0;
1069
- TByte* rbuf_end=0;
1070
- size_t readLen=hpatch_kFileIOBufBetterSize;
1071
- if (readLen+readPos > dataSize)
1072
- readLen=(size_t)(dataSize - readPos);
1073
- rbuf_end=buf+readLen;
1074
- check(selfExecute->read(selfExecute,readPos,buf,rbuf_end),
1075
- HPATCH_FILEREAD_ERROR,"createSfx() read selfExecute");
1076
- wbuf=(readPos!=0)?pmem:buf;
1077
- if (!isFoundGuid){ //find in [wbuf..rbuf_end)
1078
- TByte* pos=_search(wbuf,rbuf_end,_sfx_guid_node,_sfx_guid_node+_sfx_guid_node_size);
1079
- if (pos!=rbuf_end){
1080
- size_t i;
1081
- isFoundGuid=hpatch_TRUE;
1082
- for (i=0; i<sizeof(hpatch_uint32_t); ++i){
1083
- size_t di=_sfx_guid_size+i;
1084
- assert(pos[di]==0xff);
1085
- pos[di]=(TByte)(diffDataOffert>>(8*i));
1086
- }
1087
- for (i=0; i<sizeof(hpatch_uint64_t); ++i){
1088
- size_t di=_sfx_guid_size+sizeof(hpatch_uint32_t)+i;
1089
- assert(pos[di]==0xff);
1090
- pos[di]=(TByte)(diffDataSize>>(8*i));
1091
- }
1092
- }
1093
- }
1094
- wbuf_end=(readPos+readLen<dataSize)?(rbuf_end-_sfx_guid_node_size):rbuf_end;
1095
- check(out_sfxData->write(out_sfxData,writePos,wbuf,wbuf_end),
1096
- HPATCH_FILEWRITE_ERROR,"createSfx() write sfxData");
1097
- memcpy(pmem,rbuf_end-_sfx_guid_node_size,_sfx_guid_node_size);
1098
- readPos+=readLen;
1099
- writePos+=(size_t)(wbuf_end-wbuf);
1100
- }
1101
- }
1102
- assert(writePos==diffDataOffert);
1103
- check(isFoundGuid,HPATCH_CREATE_SFX_SFXTYPE_ERROR,"createSfx() selfExecute type");
1104
- {//copy diffData
1105
- const hpatch_StreamPos_t dataSize=diffData->streamSize;
1106
- hpatch_StreamPos_t readPos=0;
1107
- while (readPos < dataSize) {
1108
- size_t readLen=hpatch_kFileIOBufBetterSize;
1109
- if (readLen+readPos > dataSize)
1110
- readLen=(size_t)(dataSize - readPos);
1111
- check(diffData->read(diffData,readPos,buf,buf+readLen),
1112
- HPATCH_FILEREAD_ERROR,"createSfx() read diffData");
1113
- check(out_sfxData->write(out_sfxData,writePos,buf,buf+readLen),
1114
- HPATCH_FILEWRITE_ERROR,"createSfx() write sfxData");
1115
- readPos+=readLen;
1116
- writePos+=readLen;
1117
- }
1118
- }
1119
- clear:
1120
- _isInClear=hpatch_TRUE;
1121
- _free_mem(pmem);
1122
- return result;
1123
- }
1124
-
1125
- int createSfx_notCheckDiffFile(const char* selfExecuteFileName,const char* diffFileName,
1126
- const char* out_sfxFileName){
1127
- int result=HPATCH_SUCCESS;
1128
- int _isInClear=hpatch_FALSE;
1129
- hpatch_TFileStreamInput exeData;
1130
- hpatch_TFileStreamInput diffData;
1131
- hpatch_TFileStreamOutput out_sfxData;
1132
- hpatch_TFileStreamInput_init(&exeData);
1133
- hpatch_TFileStreamInput_init(&diffData);
1134
- hpatch_TFileStreamOutput_init(&out_sfxData);
1135
- printf( "selfExecute: \""); hpatch_printPath_utf8(selfExecuteFileName);
1136
- printf("\"\ndiffFile : \""); hpatch_printPath_utf8(diffFileName);
1137
- printf("\"\nout sfxFile: \""); hpatch_printPath_utf8(out_sfxFileName);
1138
- printf("\"\n\n");
1139
- {//open
1140
- hpatch_StreamPos_t sfxFileLength=0;
1141
- check(hpatch_TFileStreamInput_open(&exeData,selfExecuteFileName),
1142
- HPATCH_OPENREAD_ERROR,"createSfx() open selfExecuteFile read");
1143
- sfxFileLength+=exeData.base.streamSize;
1144
- check(hpatch_TFileStreamInput_open(&diffData,diffFileName),
1145
- HPATCH_OPENREAD_ERROR,"createSfx() open diffFileName read");
1146
- sfxFileLength+=diffData.base.streamSize;
1147
- check(hpatch_TFileStreamOutput_open(&out_sfxData,out_sfxFileName,sfxFileLength),
1148
- HPATCH_OPENWRITE_ERROR,"createSfx() open sfxFile write");
1149
- }
1150
- result=createSfx_notCheckDiffFile_byStream(&exeData.base,&diffData.base,&out_sfxData.base);
1151
- if (result!=HPATCH_SUCCESS) check_on_error(result);
1152
- assert(out_sfxData.base.streamSize==out_sfxData.out_length);
1153
- check(hpatch_TFileStreamOutput_close(&out_sfxData),HPATCH_FILECLOSE_ERROR,"createSfx() out sfxFile close");
1154
- printf("sfxFileSize: %" PRIu64 "\n",out_sfxData.base.streamSize);
1155
- if (hpatch_getIsExecuteFile(selfExecuteFileName)){
1156
- check(hpatch_setIsExecuteFile(out_sfxFileName),
1157
- HPATCH_CREATE_SFX_EXECUTETAG_ERROR,"createSfx() set sfxFile Execute tag");
1158
- }
1159
- printf("out sfxFile ok!\n");
1160
- clear:
1161
- _isInClear=hpatch_TRUE;
1162
- check(hpatch_TFileStreamOutput_close(&out_sfxData),HPATCH_FILECLOSE_ERROR,"createSfx() out sfxFile close");
1163
- check(hpatch_TFileStreamInput_close(&diffData),HPATCH_FILECLOSE_ERROR,"createSfx() diffFile close");
1164
- check(hpatch_TFileStreamInput_close(&exeData),HPATCH_FILECLOSE_ERROR,"createSfx() selfExecuteFile close");
1165
- return result;
1166
- }
1167
-
1168
- static hpatch_BOOL _getIsCompressedDiffFile(const char* diffFileName){
1169
- hpatch_TFileStreamInput diffData;
1170
- hpatch_compressedDiffInfo diffInfo;
1171
- hpatch_BOOL result=hpatch_TRUE;
1172
- hpatch_TFileStreamInput_init(&diffData);
1173
- if (!hpatch_TFileStreamInput_open(&diffData,diffFileName)) return hpatch_FALSE;
1174
- result=getCompressedDiffInfo(&diffInfo,&diffData.base);
1175
- if (!hpatch_TFileStreamInput_close(&diffData)) return hpatch_FALSE;
1176
- return result;
1177
- }
1178
-
1179
- int createSfx(const char* selfExecuteFileName,const char* diffFileName,const char* out_sfxFileName){
1180
- int result=HPATCH_SUCCESS;
1181
- int _isInClear=hpatch_FALSE;
1182
- {//check diffFile type
1183
- hpatch_BOOL isDiffFile=hpatch_FALSE;
1184
- #if (_IS_NEED_DIR_DIFF_PATCH)
1185
- if (!isDiffFile)
1186
- isDiffFile=getIsDirDiffFile(diffFileName);
1187
- #endif
1188
- if (!isDiffFile)
1189
- isDiffFile=_getIsCompressedDiffFile(diffFileName);
1190
- check(isDiffFile,HPATCH_CREATE_SFX_DIFFFILETYPE_ERROR,
1191
- "createSfx() input diffFile is unsupported type");
1192
- }
1193
- result=createSfx_notCheckDiffFile(selfExecuteFileName,diffFileName,out_sfxFileName);
1194
- clear:
1195
- _isInClear=hpatch_TRUE;
1196
- return result;
1197
- }
1198
-
1199
- hpatch_BOOL getDiffDataOffertInSfx(hpatch_StreamPos_t* out_diffDataOffert,hpatch_StreamPos_t* out_diffDataSize){
1200
- hpatch_uint32_t diffOff=0;
1201
- hpatch_uint64_t diffSize=0;
1202
- size_t i;
1203
- for (i=0; i<sizeof(hpatch_uint32_t); ++i){
1204
- size_t si=_sfx_guid_size+i;
1205
- diffOff|=((hpatch_uint32_t)_sfx_guid_node[si])<<(8*i);
1206
- }
1207
- if (diffOff==(~(hpatch_uint32_t)0)) return hpatch_FALSE;
1208
- assert(diffOff>_sfx_guid_node_size);
1209
-
1210
- for (i=0; i<sizeof(hpatch_uint64_t); ++i){
1211
- size_t si=_sfx_guid_size+sizeof(hpatch_uint32_t)+i;
1212
- diffSize|=((hpatch_uint64_t)_sfx_guid_node[si])<<(8*i);
1213
- }
1214
- if (diffSize==(~(hpatch_uint64_t)0)) return hpatch_FALSE;
1215
-
1216
- *out_diffDataOffert=diffOff;
1217
- *out_diffDataSize=diffSize;
1218
- return hpatch_TRUE;
1219
- }
1220
-
1221
- #endif // _IS_NEED_SFX