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,797 +0,0 @@
1
- // dir_diff.cpp
2
- // hdiffz dir diff
3
- //
4
- /*
5
- The MIT License (MIT)
6
- Copyright (c) 2018-2019 HouSisong
7
-
8
- Permission is hereby granted, free of charge, to any person
9
- obtaining a copy of this software and associated documentation
10
- files (the "Software"), to deal in the Software without
11
- restriction, including without limitation the rights to use,
12
- copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the
14
- Software is furnished to do so, subject to the following
15
- conditions:
16
-
17
- The above copyright notice and this permission notice shall be
18
- included in all copies of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27
- OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- #include "dir_diff.h"
30
- #if (_IS_NEED_DIR_DIFF_PATCH)
31
- #include <map>
32
- #include <set>
33
- #include "../../libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h"
34
- #include "../../libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h"
35
- #include "../../libHDiffPatch/HDiff/diff.h"
36
- #include "../dir_patch/dir_patch.h"
37
- #include "../dir_patch/dir_patch_private.h"
38
- #include "dir_diff_tools.h"
39
- using namespace hdiff_private;
40
-
41
- static const char* kDirDiffVersionType= "HDIFF19";
42
-
43
- static std::string cmp_hash_type = "fadler64";
44
- #define cmp_hash_value_t uint64_t
45
- #define cmp_hash_begin(ph) { (*(ph))=ADLER_INITIAL; }
46
- #define cmp_hash_append(ph,pvalues,n) { (*(ph))=fast_adler64_append(*(ph),pvalues,n); }
47
- #define cmp_hash_end(ph) {}
48
- #define cmp_hash_combine(ph,rightHash,rightLen) { (*(ph))=fast_adler64_by_combine(*(ph),rightHash,rightLen); }
49
-
50
- static cmp_hash_value_t getStreamHash(const hpatch_TStreamInput* stream,const std::string& errorTag){
51
- TAutoMem mem(hpatch_kFileIOBufBetterSize);
52
- cmp_hash_value_t result;
53
- cmp_hash_begin(&result);
54
- for (hpatch_StreamPos_t pos=0; pos<stream->streamSize;) {
55
- size_t readLen=hpatch_kFileIOBufBetterSize;
56
- if (pos+readLen>stream->streamSize)
57
- readLen=(size_t)(stream->streamSize-pos);
58
- check(stream->read(stream,pos,mem.data(),mem.data()+readLen),
59
- "read \""+errorTag+"\" error!");
60
- cmp_hash_append(&result,mem.data(),readLen);
61
- pos+=readLen;
62
- }
63
- cmp_hash_end(&result);
64
- return result;
65
- }
66
-
67
- static cmp_hash_value_t getFileHash(const std::string& fileName,hpatch_StreamPos_t* out_fileSize){
68
- CFileStreamInput f(fileName);
69
- *out_fileSize=f.base.streamSize;
70
- return getStreamHash(&f.base,fileName);
71
- }
72
-
73
-
74
- static bool fileData_isSame(const std::string& file_x,const std::string& file_y,
75
- hpatch_ICopyDataListener* copyListener=0){
76
- CFileStreamInput f_x(file_x);
77
- CFileStreamInput f_y(file_y);
78
- if (f_x.base.streamSize!=f_y.base.streamSize)
79
- return false;
80
- TAutoMem mem(hpatch_kFileIOBufBetterSize*2);
81
- for (hpatch_StreamPos_t pos=0; pos<f_x.base.streamSize;) {
82
- size_t readLen=hpatch_kFileIOBufBetterSize;
83
- if (pos+readLen>f_x.base.streamSize)
84
- readLen=(size_t)(f_x.base.streamSize-pos);
85
- check(f_x.base.read(&f_x.base,pos,mem.data(),mem.data()+readLen),
86
- "read file \""+file_x+"\" error!");
87
- check(f_y.base.read(&f_y.base,pos,mem.data()+readLen,mem.data()+readLen*2),
88
- "read file \""+file_y+"\" error!");
89
- if (0!=memcmp(mem.data(),mem.data()+readLen,readLen))
90
- return false;
91
- if (copyListener)
92
- copyListener->copyedData(copyListener,mem.data(),mem.data()+readLen);
93
- pos+=readLen;
94
- }
95
- return true;
96
- }
97
-
98
- static void packSamePairList(std::vector<TByte>& out_data,const std::vector<hpatch_TSameFilePair>& pairs){
99
- size_t backPairNew=~(size_t)0;
100
- size_t backPairOld=~(size_t)0;
101
- for (size_t i=0;i<pairs.size();++i){
102
- size_t curNewValue=pairs[i].newIndex;
103
- assert(curNewValue>=(size_t)(backPairNew+1));
104
- packUInt(out_data,(size_t)(curNewValue-(size_t)(backPairNew+1)));
105
- backPairNew=curNewValue;
106
-
107
- size_t curOldValue=pairs[i].oldIndex;
108
- if (curOldValue>=(size_t)(backPairOld+1))
109
- packUIntWithTag(out_data,(size_t)(curOldValue-(size_t)(backPairOld+1)),0,1);
110
- else
111
- packUIntWithTag(out_data,(size_t)((size_t)(backPairOld+1)-curOldValue),1,1);
112
- backPairOld=curOldValue;
113
- }
114
- }
115
-
116
- struct _TCmp_byHit {
117
- inline _TCmp_byHit(const char* _newPath,const std::vector<std::string>& _oldList,
118
- size_t _oldRootPathSize,const std::vector<size_t>& _oldHitList)
119
- :newPath(_newPath),oldList(_oldList),oldRootPathSize(_oldRootPathSize),oldHitList(_oldHitList){}
120
- inline bool operator()(size_t ix,size_t iy)const{
121
- size_t vx=ToValue(ix);
122
- size_t vy=ToValue(iy);
123
- return vx>vy;
124
- }
125
- size_t ToValue(size_t index)const{
126
- const std::string& oldName=oldList[index];
127
- bool isEqPath=(0==strcmp(newPath,oldName.c_str()+oldRootPathSize));
128
- size_t hitCount=oldHitList[index];
129
-
130
- const size_t kMaxValue=~(size_t)0;
131
- if (hitCount==0){
132
- if (isEqPath) return kMaxValue;
133
- else return kMaxValue-1;
134
- }else{
135
- if (isEqPath) return kMaxValue-2;
136
- else return hitCount;
137
- }
138
- }
139
- const char* newPath;
140
- const std::vector<std::string>& oldList;
141
- const size_t oldRootPathSize;
142
- const std::vector<size_t>& oldHitList;
143
- };
144
-
145
- static void getRefList(const std::string& oldRootPath,const std::string& newRootPath,
146
- const std::vector<std::string>& oldList,const std::vector<std::string>& newList,
147
- std::vector<hpatch_StreamPos_t>& out_oldSizeList,
148
- std::vector<hpatch_StreamPos_t>& out_newSizeList,
149
- std::vector<hpatch_TSameFilePair>& out_dataSamePairList,
150
- std::vector<size_t>& out_oldRefList,std::vector<size_t>& out_newRefList,
151
- bool isNeedOutHashs,
152
- std::vector<cmp_hash_value_t>& out_oldHashList,
153
- std::vector<cmp_hash_value_t>& out_newHashList){
154
- typedef std::multimap<cmp_hash_value_t,size_t> TMap;
155
- TMap hashMap;
156
- std::set<size_t> oldRefSet;
157
- const bool isFileSizeAsHash =(!isNeedOutHashs) && ((oldList.size()*newList.size())<=16);
158
- out_oldSizeList.assign(oldList.size(),0);
159
- out_newSizeList.assign(newList.size(),0);
160
- if (isNeedOutHashs){
161
- out_oldHashList.assign(oldList.size(),0);
162
- out_newHashList.assign(newList.size(),0);
163
- }
164
- for (size_t oldi=0; oldi<oldList.size(); ++oldi) {
165
- const std::string& fileName=oldList[oldi];
166
- if (isDirName(fileName)) continue;
167
- hpatch_StreamPos_t fileSize=0;
168
- cmp_hash_value_t hash;
169
- if (isFileSizeAsHash){
170
- fileSize=getFileSize(fileName);
171
- hash=fileSize;
172
- }else{
173
- if ((fileName.empty())&&(oldList.size()==1)){ // isOldPathInputEmpty
174
- hpatch_TStreamInput emptyStream;
175
- mem_as_hStreamInput(&emptyStream,0,0);
176
- hash=getStreamHash(&emptyStream,"isOldPathInputEmpty, as empty file");
177
- fileSize=0;
178
- }else{
179
- hash=getFileHash(fileName,&fileSize);
180
- }
181
- }
182
- out_oldSizeList[oldi]=fileSize;
183
- if (isNeedOutHashs) out_oldHashList[oldi]=hash;
184
- if (fileSize==0) continue;
185
- hashMap.insert(TMap::value_type(hash,oldi));
186
- oldRefSet.insert(oldi);
187
- }
188
- out_dataSamePairList.clear();
189
- out_newRefList.clear();
190
- std::vector<size_t> oldHitList(oldList.size(),0);
191
- for (size_t newi=0; newi<newList.size(); ++newi){
192
- const std::string& fileName=newList[newi];
193
- if (isDirName(fileName)) continue;
194
- hpatch_StreamPos_t fileSize=0;
195
- cmp_hash_value_t hash;
196
- if (isFileSizeAsHash){
197
- fileSize=getFileSize(fileName);
198
- hash=fileSize;
199
- }else{
200
- hash=getFileHash(fileName,&fileSize);
201
- }
202
- out_newSizeList[newi]=fileSize;
203
- if (isNeedOutHashs) out_newHashList[newi]=hash;
204
- if (fileSize==0) continue;
205
-
206
- bool isFoundSame=false;
207
- size_t oldIndex=~(size_t)0;
208
- std::pair<TMap::const_iterator,TMap::const_iterator> range=hashMap.equal_range(hash);
209
- std::vector<size_t> oldHashIndexs;
210
- for (;range.first!=range.second;++range.first)
211
- oldHashIndexs.push_back(range.first->second);
212
- const char* newPath=fileName.c_str()+newRootPath.size();
213
- if (oldHashIndexs.size()>1)
214
- std::sort(oldHashIndexs.begin(),oldHashIndexs.end(),
215
- _TCmp_byHit(newPath,oldList,oldRootPath.size(),oldHitList));
216
- for (size_t oldi=0;oldi<oldHashIndexs.size();++oldi){
217
- size_t curOldIndex=oldHashIndexs[oldi];
218
- const std::string& oldName=oldList[curOldIndex];
219
- if (fileData_isSame(oldName,fileName)){
220
- isFoundSame=true;
221
- oldIndex=curOldIndex;
222
- break;
223
- }
224
- }
225
-
226
- if (isFoundSame){
227
- ++oldHitList[oldIndex];
228
- oldRefSet.erase(oldIndex);
229
- hpatch_TSameFilePair pair; pair.newIndex=newi; pair.oldIndex=oldIndex;
230
- out_dataSamePairList.push_back(pair);
231
- }else{
232
- out_newRefList.push_back(newi);
233
- }
234
- }
235
- out_oldRefList.assign(oldRefSet.begin(),oldRefSet.end());
236
- std::sort(out_oldRefList.begin(),out_oldRefList.end());
237
- }
238
-
239
- struct CChecksumCombine:public CChecksum{
240
- inline explicit CChecksumCombine(hpatch_TChecksum* checksumPlugin,bool isCanUseCombine)
241
- :CChecksum(checksumPlugin),_isCanUseCombine(isCanUseCombine) {
242
- if (checksumPlugin&&_isCanUseCombine) cmp_hash_begin(&_combineHash); }
243
- inline void appendEnd(){
244
- CChecksum::appendEnd();
245
- if (_isCanUseCombine){
246
- cmp_hash_end(&_combineHash);
247
- assert(sizeof(cmp_hash_value_t)==_checksumPlugin->checksumByteSize());
248
- checksum.resize(sizeof(cmp_hash_value_t));
249
- cmp_hash_value_t hash=_combineHash;
250
- for (size_t i=0;i<sizeof(cmp_hash_value_t);++i){
251
- checksum[i]=(TByte)hash;
252
- hash>>=8;
253
- }
254
- }
255
- }
256
- inline void combine(cmp_hash_value_t rightHash,uint64_t rightLen){
257
- cmp_hash_combine(&_combineHash,rightHash,rightLen);
258
- }
259
- const bool _isCanUseCombine;
260
- cmp_hash_value_t _combineHash;
261
- };
262
-
263
- void dir_diff(IDirDiffListener* listener,const TManifest& oldManifest,
264
- const TManifest& newManifest,const hpatch_TStreamOutput* outDiffStream,
265
- bool isLoadAll,size_t matchValue,const hdiff_TCompress* compressPlugin,
266
- hpatch_TChecksum* checksumPlugin,size_t kMaxOpenFileNumber){
267
- assert(listener!=0);
268
- assert(kMaxOpenFileNumber>=kMaxOpenFileNumber_limit_min);
269
- if ((checksumPlugin)&&(!isLoadAll)){
270
- check((outDiffStream->read_writed!=0),
271
- "for update checksum, outDiffStream->read_writed can't null error!");
272
- }
273
- kMaxOpenFileNumber-=1; // for outDiffStream
274
- const std::vector<std::string>& oldList=oldManifest.pathList;
275
- const std::vector<std::string>& newList=newManifest.pathList;
276
- const bool oldIsDir=isDirName(oldManifest.rootPath);
277
- const bool newIsDir=isDirName(newManifest.rootPath);
278
-
279
- std::vector<hpatch_StreamPos_t> oldSizeList;
280
- std::vector<hpatch_StreamPos_t> newSizeList;
281
- std::vector<hpatch_TSameFilePair> dataSamePairList; //new map to same old
282
- std::vector<size_t> oldRefIList;
283
- std::vector<size_t> newRefIList;
284
- std::vector<size_t> newExecuteList; //for linux etc
285
-
286
- for (size_t newi=0; newi<newList.size(); ++newi) {
287
- if ((!isDirName(newList[newi]))&&(listener->isExecuteFile(newList[newi])))
288
- newExecuteList.push_back(newi);
289
- }
290
-
291
- const bool isCachedHashs=(checksumPlugin!=0)&&(checksumPlugin->checksumType()==cmp_hash_type);
292
- if (isCachedHashs) checkv(sizeof(cmp_hash_value_t)==checksumPlugin->checksumByteSize());
293
- std::vector<cmp_hash_value_t> oldHashList;
294
- std::vector<cmp_hash_value_t> newHashList;
295
- getRefList(oldManifest.rootPath,newManifest.rootPath,oldList,newList,
296
- oldSizeList,newSizeList,dataSamePairList,oldRefIList,newRefIList,
297
- isCachedHashs,oldHashList,newHashList);
298
- std::vector<hpatch_StreamPos_t> newRefSizeList;
299
- CFileResHandleLimit resLimit(kMaxOpenFileNumber,oldRefIList.size()+newRefIList.size());
300
- {
301
- for (size_t i=0; i<oldRefIList.size(); ++i) {
302
- size_t fi=oldRefIList[i];
303
- resLimit.addRes(oldList[fi],oldSizeList[fi]);
304
- }
305
- newRefSizeList.resize(newRefIList.size());
306
- for (size_t i=0; i<newRefIList.size(); ++i) {
307
- size_t fi=newRefIList[i];
308
- newRefSizeList[i]=newSizeList[fi];
309
- resLimit.addRes(newList[fi],newSizeList[fi]);
310
- }
311
- }
312
- resLimit.open();
313
- CRefStream oldRefStream;
314
- CRefStream newRefStream;
315
- oldRefStream.open(resLimit.limit.streamList,oldRefIList.size());
316
- newRefStream.open(resLimit.limit.streamList+oldRefIList.size(),newRefIList.size());
317
-
318
- //checksum
319
- const size_t checksumByteSize=(checksumPlugin==0)?0:checksumPlugin->checksumByteSize();
320
- //oldRefChecksum
321
- CChecksumCombine oldRefChecksum(checksumPlugin,isCachedHashs);
322
- if (isCachedHashs){
323
- for (size_t i=0; i<oldRefIList.size(); ++i) {
324
- size_t fi=oldRefIList[i];
325
- oldRefChecksum.combine(oldHashList[fi],oldSizeList[fi]);
326
- }
327
- }else{
328
- oldRefChecksum.append(oldRefStream.stream);
329
- }
330
- oldRefChecksum.appendEnd();
331
- //newRefChecksum
332
- CChecksumCombine newRefChecksum(checksumPlugin,isCachedHashs);
333
- if (isCachedHashs){
334
- for (size_t i=0; i<newRefIList.size(); ++i) {
335
- size_t fi=newRefIList[i];
336
- newRefChecksum.combine(newHashList[fi],newSizeList[fi]);
337
- }
338
- }else{
339
- newRefChecksum.append(newRefStream.stream);
340
- }
341
- newRefChecksum.appendEnd();
342
- //sameFileChecksum
343
- CChecksumCombine sameFileChecksum(checksumPlugin,isCachedHashs);
344
- hpatch_StreamPos_t sameFileSize=0;
345
- for (size_t i=0; i<dataSamePairList.size(); ++i) {
346
- size_t newi=dataSamePairList[i].newIndex;
347
- if (isCachedHashs){
348
- hpatch_StreamPos_t fileSize=newSizeList[newi];
349
- sameFileChecksum.combine(newHashList[newi],fileSize);
350
- sameFileSize+=fileSize;
351
- }else{
352
- CFileStreamInput file(newList[newi]);
353
- assert(file.base.streamSize==newSizeList[newi]);
354
- sameFileChecksum.append(&file.base);
355
- sameFileSize+=file.base.streamSize;
356
- }
357
- }
358
- sameFileChecksum.appendEnd();
359
-
360
- listener->diffRefInfo(oldList.size(),newList.size(),dataSamePairList.size(),
361
- sameFileSize,oldRefIList.size(),newRefIList.size(),
362
- oldRefStream.stream->streamSize,newRefStream.stream->streamSize);
363
-
364
- //serialize headData
365
- std::vector<TByte> headData;
366
- size_t oldPathSumSize=pushNameList(headData,oldManifest.rootPath,oldList);
367
- size_t newPathSumSize=pushNameList(headData,newManifest.rootPath,newList);
368
- packIncList(headData,oldRefIList);
369
- packIncList(headData,newRefIList);
370
- packList(headData,newRefSizeList);
371
- packSamePairList(headData,dataSamePairList);
372
- packIncList(headData,newExecuteList);
373
- std::vector<TByte> privateReservedData;//now empty
374
- headData.insert(headData.end(),privateReservedData.begin(),privateReservedData.end());
375
- std::vector<TByte> headCode;
376
- if (compressPlugin){
377
- headCode.resize((size_t)compressPlugin->maxCompressedSize(headData.size()));
378
- size_t codeSize=hdiff_compress_mem(compressPlugin,headCode.data(),headCode.data()+headCode.size(),
379
- headData.data(),headData.data()+headData.size());
380
- if ((0<codeSize)&&(codeSize<headData.size()))
381
- headCode.resize(codeSize);//compress ok
382
- else
383
- swapClear(headCode); //compress error or give up
384
- }
385
-
386
- //serialize dir diff data
387
- std::vector<TByte> out_data;
388
- pushTypes(out_data,kDirDiffVersionType,compressPlugin?compressPlugin->compressType():0,checksumPlugin);
389
- //head info
390
- packUInt(out_data,oldIsDir?1:0);
391
- packUInt(out_data,newIsDir?1:0);
392
- packUInt(out_data,oldList.size());
393
- packUInt(out_data,oldPathSumSize);
394
- packUInt(out_data,newList.size());
395
- packUInt(out_data,newPathSumSize);
396
- packUInt(out_data,oldRefIList.size()); swapClear(oldRefIList);
397
- packUInt(out_data,oldRefStream.stream->streamSize); //same as hdiffz::oldDataSize
398
- packUInt(out_data,newRefIList.size()); swapClear(newRefIList);
399
- packUInt(out_data,newRefStream.stream->streamSize); //same as hdiffz::newDataSize
400
- packUInt(out_data,dataSamePairList.size()); swapClear(dataSamePairList);
401
- packUInt(out_data,sameFileSize);
402
- packUInt(out_data,newExecuteList.size()); swapClear(newExecuteList);
403
- packUInt(out_data,privateReservedData.size()); swapClear(privateReservedData);
404
- std::vector<TByte> privateExternData;//now empty
405
- //privateExtern size
406
- packUInt(out_data,privateExternData.size());
407
- //externData size
408
- std::vector<TByte> externData;
409
- listener->externData(externData);
410
- packUInt(out_data,externData.size());
411
- //headData size
412
- packUInt(out_data,headData.size());
413
- packUInt(out_data,headCode.size());
414
- //other checksum info
415
- packUInt(out_data,checksumByteSize);
416
- if (checksumByteSize>0){
417
- pushBack(out_data,oldRefChecksum.checksum);
418
- pushBack(out_data,newRefChecksum.checksum);
419
- pushBack(out_data,sameFileChecksum.checksum);
420
- }
421
- //checksum(dirdiff)
422
- CChecksum diffChecksum(checksumPlugin);
423
- TPlaceholder diffChecksumPlaceholder(out_data.size(),out_data.size()+checksumByteSize);
424
- if (checksumByteSize>0){
425
- diffChecksum.append(out_data);
426
- out_data.insert(out_data.end(),checksumByteSize,0);//placeholder
427
- }
428
-
429
- //begin write
430
- hpatch_StreamPos_t writeToPos=0;
431
- #define _pushv(v) { if ((checksumByteSize>0)&&(writeToPos>=diffChecksumPlaceholder.pos_end))\
432
- diffChecksum.append(v); \
433
- check(outDiffStream->write(outDiffStream,writeToPos,v.data(),v.data()+v.size()), \
434
- "write diff data " #v " error!"); \
435
- writeToPos+=v.size(); swapClear(v); }
436
- _pushv(out_data);
437
- if (headCode.size()>0){
438
- _pushv(headCode);
439
- }else{
440
- _pushv(headData);
441
- }
442
- //privateExtern data
443
- _pushv(privateExternData);
444
- //externData
445
- listener->externDataPosInDiffStream(writeToPos,externData.size());
446
- _pushv(externData);
447
-
448
- //diff data
449
- listener->runHDiffBegin();
450
- hpatch_StreamPos_t diffDataSize=0;
451
- if (isLoadAll){
452
- hpatch_StreamPos_t memSize=newRefStream.stream->streamSize+oldRefStream.stream->streamSize;
453
- check(memSize==(size_t)memSize,"alloc size overflow error!");
454
- TAutoMem mem((size_t)memSize);
455
- TByte* newData=mem.data();
456
- TByte* oldData=mem.data()+newRefStream.stream->streamSize;
457
- check(newRefStream.stream->read(newRefStream.stream,0,newData,
458
- newData+newRefStream.stream->streamSize),"read new file error!");
459
- check(oldRefStream.stream->read(oldRefStream.stream,0,oldData,
460
- oldData+oldRefStream.stream->streamSize),"read old file error!");
461
- resLimit.close(); //close files
462
- std::vector<TByte> out_diff;
463
- create_compressed_diff(newData,newData+newRefStream.stream->streamSize,
464
- oldData,oldData+oldRefStream.stream->streamSize,
465
- out_diff,compressPlugin,(int)matchValue);
466
- diffDataSize=out_diff.size();
467
- _pushv(out_diff);
468
- }else{
469
- TOffsetStreamOutput ofStream(outDiffStream,writeToPos);
470
- create_compressed_diff_stream(newRefStream.stream,oldRefStream.stream,&ofStream,
471
- compressPlugin,matchValue);
472
- diffDataSize=ofStream.outSize;
473
- if (checksumByteSize>0){
474
- assert(outDiffStream->read_writed!=0);
475
- diffChecksum.append((const hpatch_TStreamInput*)outDiffStream,
476
- writeToPos,writeToPos+diffDataSize);
477
- }
478
- }
479
- listener->runHDiffEnd(diffDataSize);
480
- if (checksumByteSize>0){ //update diffChecksum
481
- diffChecksum.appendEnd();
482
- const std::vector<TByte>& v=diffChecksum.checksum;
483
- assert(diffChecksumPlaceholder.size()==v.size());
484
- check(outDiffStream->write(outDiffStream,diffChecksumPlaceholder.pos,v.data(),v.data()+v.size()),
485
- "write diff data checksum error!");
486
- }
487
- #undef _pushv
488
- }
489
-
490
- #define _test(value) { if (!(value)) { fprintf(stderr,"DirPatch check "#value" error!\n"); return hpatch_FALSE; } }
491
-
492
- struct CDirPatchListener:public IDirPatchListener{
493
- explicit CDirPatchListener(const std::string& newRootDir,
494
- const std::vector<std::string>& oldList,
495
- const std::vector<std::string>& newList)
496
- :_oldSet(oldList.begin(),oldList.end()),_newSet(newList.begin(),newList.end()),
497
- _buf(hpatch_kFileIOBufBetterSize){
498
- _dirSet.insert(getParentDir(newRootDir));
499
- this->listenerImport=this;
500
- this->makeNewDir=_makeNewDir;
501
- this->copySameFile=_copySameFile;
502
- this->openNewFile=_openNewFile;
503
- this->closeNewFile=_closeNewFile;
504
- }
505
- bool isNewOk()const{ return _newSet.empty(); }
506
- std::set<std::string> _oldSet;
507
- std::set<std::string> _newSet;
508
- std::set<std::string> _dirSet;
509
- static inline std::string getParentDir(const std::string& _path){
510
- std::string path(_path);
511
- if (path.empty()) return path;
512
- if (path[path.size()-1]==kPatch_dirSeparator)
513
- path.resize(path.size()-1);
514
- while ((!path.empty())&&(path[path.size()-1]!=kPatch_dirSeparator)) {
515
- path.resize(path.size()-1);
516
- }
517
- return path;
518
- }
519
- inline bool isParentDirExists(const std::string& _path)const{
520
- std::string path=getParentDir(_path);
521
- if (path.empty()) return true;
522
- return _dirSet.find(path)!=_dirSet.end();
523
- }
524
-
525
- static hpatch_BOOL _makeNewDir(IDirPatchListener* listener,const char* _newDir){
526
- CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
527
- std::string newDir(_newDir);
528
- _test(self->isParentDirExists(newDir));
529
- self->_dirSet.insert(newDir);
530
- self->_newSet.erase(newDir);
531
- return hpatch_TRUE;
532
- }
533
- static hpatch_BOOL _copySameFile(IDirPatchListener* listener,const char* _oldFileName,
534
- const char* _newFileName,hpatch_ICopyDataListener* copyListener){
535
- CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
536
- std::string oldFileName(_oldFileName);
537
- std::string newFileName(_newFileName);
538
- _test(self->isParentDirExists(newFileName));
539
- _test(self->_oldSet.find(oldFileName)!=self->_oldSet.end());
540
- _test(self->_newSet.find(newFileName)!=self->_newSet.end());
541
- _test(fileData_isSame(oldFileName,newFileName,copyListener));
542
- self->_newSet.erase(newFileName);
543
- return hpatch_TRUE;
544
- }
545
-
546
- struct _TCheckOutNewDataStream:public hpatch_TStreamOutput{
547
- explicit _TCheckOutNewDataStream(const char* _newFileName,
548
- TByte* _buf,size_t _bufSize)
549
- :newData(0),writedLen(0),buf(_buf),bufSize(_bufSize),newFileName(_newFileName){
550
- hpatch_TFileStreamInput_init(&newFile);
551
- if (hpatch_TFileStreamInput_open(&newFile,newFileName.c_str())){
552
- newData=&newFile.base;
553
- streamSize=newData->streamSize;
554
- }else{
555
- streamSize=~(hpatch_StreamPos_t)0;
556
- }
557
- streamImport=this;
558
- read_writed=0;
559
- write=_write_check;
560
- }
561
- ~_TCheckOutNewDataStream(){ hpatch_TFileStreamInput_close(&newFile); }
562
- static hpatch_BOOL _write_check(const hpatch_TStreamOutput* stream,hpatch_StreamPos_t writeToPos,
563
- const unsigned char* data,const unsigned char* data_end){
564
- _TCheckOutNewDataStream* self=(_TCheckOutNewDataStream*)stream->streamImport;
565
- _test(self->isOpenOk());
566
- _test(self->writedLen==writeToPos);
567
- self->writedLen+=(size_t)(data_end-data);
568
- _test(self->writedLen<=self->streamSize);
569
-
570
- hpatch_StreamPos_t readPos=writeToPos;
571
- while (data<data_end) {
572
- size_t readLen=(size_t)(data_end-data);
573
- if (readLen>self->bufSize) readLen=self->bufSize;
574
- _test(self->newData->read(self->newData,readPos,self->buf,self->buf+readLen));
575
- _test(0==memcmp(data,self->buf,readLen));
576
- data+=readLen;
577
- readPos+=readLen;
578
- }
579
- return hpatch_TRUE;
580
- }
581
- bool isOpenOk()const{ return (newData!=0); };
582
- bool isWriteOk()const{ return (!newFile.fileError)&&(writedLen==newData->streamSize); }
583
- const hpatch_TStreamInput* newData;
584
- hpatch_StreamPos_t writedLen;
585
- TByte* buf;
586
- size_t bufSize;
587
- hpatch_TFileStreamInput newFile;
588
- std::string newFileName;
589
- };
590
-
591
- TAutoMem _buf;
592
- static hpatch_BOOL _openNewFile(IDirPatchListener* listener,hpatch_TFileStreamOutput* out_curNewFile,
593
- const char* newFileName,hpatch_StreamPos_t newFileSize){
594
- CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
595
- _TCheckOutNewDataStream* newFile=new _TCheckOutNewDataStream(newFileName,self->_buf.data(),
596
- self->_buf.size());
597
- out_curNewFile->base=*newFile;
598
- _test(newFile->isOpenOk());
599
- _test(self->_newSet.find(newFile->newFileName)!=self->_newSet.end());
600
- return true;
601
- }
602
- static hpatch_BOOL _closeNewFile(IDirPatchListener* listener,hpatch_TFileStreamOutput* curNewFile){
603
- CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
604
- if (curNewFile==0) return true;
605
- _TCheckOutNewDataStream* newFile=(_TCheckOutNewDataStream*)curNewFile->base.streamImport;
606
- if (newFile==0) return true;
607
- _test(newFile->isWriteOk());
608
- _test(self->_newSet.find(newFile->newFileName)!=self->_newSet.end());
609
- self->_newSet.erase(newFile->newFileName);
610
- delete newFile;
611
- return true;
612
- }
613
- };
614
-
615
- struct CDirPatcher:public TDirPatcher{
616
- CDirPatcher(){ TDirPatcher_init(this); }
617
- ~CDirPatcher() { TDirPatcher_close(this); }
618
- };
619
-
620
- bool check_dirdiff(IDirDiffListener* listener,const TManifest& oldManifest,const TManifest& newManifest,
621
- const hpatch_TStreamInput* testDiffData,hpatch_TDecompress* decompressPlugin,
622
- hpatch_TChecksum* checksumPlugin,size_t kMaxOpenFileNumber){
623
- bool result=true;
624
- assert(kMaxOpenFileNumber>=kMaxOpenFileNumber_limit_min);
625
- const std::vector<std::string>& oldList=oldManifest.pathList;
626
- const std::vector<std::string>& newList=newManifest.pathList;
627
-
628
- CDirPatchListener patchListener(newManifest.rootPath,oldList,newList);
629
- CDirPatcher dirPatcher;
630
- const TDirDiffInfo* dirDiffInfo=0;
631
- TDirPatchChecksumSet checksumSet={checksumPlugin,hpatch_TRUE,hpatch_TRUE,hpatch_TRUE,hpatch_TRUE};
632
- TAutoMem p_temp_mem(hpatch_kFileIOBufBetterSize*4);
633
- TByte* temp_cache=p_temp_mem.data();
634
- size_t temp_cache_size=p_temp_mem.size();
635
- const hpatch_TStreamInput* oldStream=0;
636
- const hpatch_TStreamOutput* newStream=0;
637
- {//dir diff info
638
- hpatch_TPathType oldType;
639
- if (oldManifest.rootPath.empty()){ // isOldPathInputEmpty
640
- oldType=kPathType_file; //as empty file
641
- }else{
642
- _test(hpatch_getPathStat(oldManifest.rootPath.c_str(),&oldType,0));
643
- _test(oldType!=kPathType_notExist);
644
- }
645
- _test(TDirPatcher_open(&dirPatcher,testDiffData,&dirDiffInfo));
646
- _test(dirDiffInfo->isDirDiff);
647
- if (dirDiffInfo->oldPathIsDir){
648
- _test(kPathType_dir==oldType);
649
- }else{
650
- _test(kPathType_file==oldType);
651
- }
652
- }
653
- if (checksumPlugin)
654
- _test(TDirPatcher_checksum(&dirPatcher,&checksumSet));
655
- _test(TDirPatcher_loadDirData(&dirPatcher,decompressPlugin,
656
- oldManifest.rootPath.c_str(),newManifest.rootPath.c_str()));
657
- _test(TDirPatcher_openOldRefAsStream(&dirPatcher,kMaxOpenFileNumber,&oldStream));
658
- _test(TDirPatcher_openNewDirAsStream(&dirPatcher,&patchListener,&newStream));
659
- _test(TDirPatcher_patch(&dirPatcher,newStream,oldStream,temp_cache,temp_cache+temp_cache_size));
660
- _test(TDirPatcher_closeNewDirStream(&dirPatcher));
661
- _test(TDirPatcher_closeOldRefStream(&dirPatcher));
662
- _test(patchListener.isNewOk());
663
- return result;
664
- }
665
- #undef _test
666
-
667
-
668
- #define _check(value) { if (!(value)) { fprintf(stderr,"dirOldDataChecksum check "#value" error!\n"); \
669
- result= hpatch_FALSE; goto clear; } }
670
- hpatch_BOOL check_dirOldDataChecksum(const char* oldPath,hpatch_TStreamInput* diffData,
671
- hpatch_TDecompress *decompressPlugin,hpatch_TChecksum *checksumPlugin){
672
- hpatch_BOOL result=hpatch_TRUE;
673
- hpatch_BOOL isAppendContinue=hpatch_FALSE;
674
- hpatch_StreamPos_t readPos=0;
675
- const char* savedCompressType=0;
676
- TDirOldDataChecksum oldCheck;
677
- TDirOldDataChecksum_init(&oldCheck);
678
- while (hpatch_TRUE) {
679
- TByte buf[1024*2];
680
- size_t dataLen=sizeof(buf);
681
- if (readPos+dataLen>diffData->streamSize)
682
- dataLen=(size_t)(diffData->streamSize-readPos);
683
- if (dataLen>0){
684
- _check(diffData->read(diffData,readPos,buf,buf+dataLen));
685
- }
686
- readPos+=dataLen;
687
- _check(TDirOldDataChecksum_append(&oldCheck,buf,buf+dataLen,&isAppendContinue));
688
- if (!isAppendContinue)
689
- break;
690
- else
691
- _check(dataLen>0);
692
- }
693
- _check(0==strcmp((checksumPlugin?checksumPlugin->checksumType():""),
694
- TDirOldDataChecksum_getChecksumType(&oldCheck)));
695
- savedCompressType=TDirOldDataChecksum_getCompressType(&oldCheck);
696
- _check(((decompressPlugin==0)&&(strlen(savedCompressType)==0))||
697
- decompressPlugin->is_can_open(savedCompressType));
698
- _check(TDirOldDataChecksum_checksum(&oldCheck,decompressPlugin,checksumPlugin,oldPath));
699
- clear:
700
- if (!TDirOldDataChecksum_close(&oldCheck)) result=hpatch_FALSE;
701
- return result;
702
- }
703
- #undef _check
704
-
705
- void resave_dirdiff(const hpatch_TStreamInput* in_diff,hpatch_TDecompress* decompressPlugin,
706
- const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
707
- hpatch_TChecksum* checksumPlugin){
708
- _TDirDiffHead head;
709
- TDirDiffInfo diffInfo;
710
- assert(in_diff!=0);
711
- assert(in_diff->read!=0);
712
- assert(out_diff!=0);
713
- assert(out_diff->write!=0);
714
- if (checksumPlugin){
715
- check((out_diff->read_writed!=0),
716
- "for update checksum, out_diff->read_writed can't null error!");
717
- }
718
- {//read head
719
- check(read_dirdiff_head(&diffInfo,&head,in_diff),
720
- "resave_dirdiff() read_dirdiff_head() error!");
721
- assert(0==strcmp(diffInfo.checksumType,(checksumPlugin?checksumPlugin->checksumType():"")));
722
- assert(diffInfo.checksumByteSize==(checksumPlugin?checksumPlugin->checksumByteSize():0));
723
- int compressedCount=diffInfo.hdiffInfo.compressedCount+((head.headDataCompressedSize)?1:0);
724
- check((decompressPlugin!=0)||(compressedCount<=0),
725
- "resave_dirdiff() decompressPlugin null error!");
726
- if ((decompressPlugin)&&(compressedCount>0)){
727
- check(decompressPlugin->is_can_open(diffInfo.hdiffInfo.compressType),
728
- "resave_dirdiff() decompressPlugin cannot open compressed data error!");
729
- }
730
- }
731
- const size_t checksumByteSize=diffInfo.checksumByteSize;
732
- TPlaceholder diffChecksumPlaceholder(0,0);
733
- hpatch_StreamPos_t writeToPos=0;
734
- {//save head
735
- TDiffStream outDiff(out_diff);
736
- {//type
737
- std::vector<TByte> out_type;
738
- pushTypes(out_type,kDirDiffVersionType,compressPlugin?compressPlugin->compressType():0,checksumPlugin);
739
- outDiff.pushBack(out_type.data(),out_type.size());
740
- }
741
- {//copy other
742
- TStreamClip clip(in_diff,head.typesEndPos,head.compressSizeBeginPos);
743
- outDiff.pushStream(&clip);
744
- }
745
- //headDataSize
746
- outDiff.packUInt(head.headDataSize);
747
- TPlaceholder compress_headData_sizePos=
748
- outDiff.packUInt_pos(compressPlugin?head.headDataSize:0);//headDataCompressedSize
749
- {//resave checksum
750
- outDiff.packUInt(checksumByteSize);
751
- if (checksumByteSize>0){
752
- diffChecksumPlaceholder.pos=outDiff.getWritedPos()+checksumByteSize*3;
753
- diffChecksumPlaceholder.pos_end=diffChecksumPlaceholder.pos+checksumByteSize;
754
- TStreamClip clip(in_diff,diffInfo.checksumOffset,
755
- diffInfo.checksumOffset+checksumByteSize*4);
756
- outDiff.pushStream(&clip);
757
- }
758
- }
759
- {//resave headData
760
- bool isCompressed=(head.headDataCompressedSize>0);
761
- hpatch_StreamPos_t bufSize=isCompressed?head.headDataCompressedSize:head.headDataSize;
762
- TStreamClip clip(in_diff,head.headDataOffset,head.headDataOffset+bufSize,
763
- (isCompressed?decompressPlugin:0),head.headDataSize);
764
- outDiff.pushStream(&clip,compressPlugin,compress_headData_sizePos);
765
- }
766
- if (head.privateExternDataSize>0){//resave privateExternData
767
- TStreamClip clip(in_diff,head.privateExternDataOffset,
768
- head.privateExternDataOffset+head.privateExternDataSize);
769
- outDiff.pushStream(&clip);
770
- }
771
- if (diffInfo.externDataSize>0){//resave externData
772
- TStreamClip clip(in_diff,diffInfo.externDataOffset,
773
- diffInfo.externDataOffset+diffInfo.externDataSize);
774
- outDiff.pushStream(&clip);
775
- }
776
- writeToPos=outDiff.getWritedPos();
777
- }
778
- {//resave hdiffData
779
- TOffsetStreamOutput ofStream(out_diff,writeToPos);
780
- TStreamClip clip(in_diff,head.hdiffDataOffset,head.hdiffDataOffset+head.hdiffDataSize);
781
- resave_compressed_diff(&clip,decompressPlugin,&ofStream,compressPlugin);
782
- writeToPos+=ofStream.outSize;
783
- }
784
- if (checksumByteSize>0){// update dirdiff checksum
785
- CChecksum diffChecksum(checksumPlugin);
786
- assert(out_diff->read_writed!=0);
787
- diffChecksum.append((const hpatch_TStreamInput*)out_diff,0,diffChecksumPlaceholder.pos);
788
- diffChecksum.append((const hpatch_TStreamInput*)out_diff,diffChecksumPlaceholder.pos_end,writeToPos);
789
- diffChecksum.appendEnd();
790
- const std::vector<TByte>& v=diffChecksum.checksum;
791
- assert(diffChecksumPlaceholder.size()==v.size());
792
- check(out_diff->write(out_diff,diffChecksumPlaceholder.pos,v.data(),v.data()+v.size()),
793
- "write diff data checksum error!");
794
- }
795
- }
796
-
797
- #endif