react-native-update 10.28.10 → 10.29.0-beta.0

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 (782) hide show
  1. package/android/.project +28 -0
  2. package/android/bin/.project +34 -0
  3. package/android/bin/.settings/org.eclipse.buildship.core.prefs +13 -0
  4. package/harmony/pushy.har +0 -0
  5. package/package.json +3 -2
  6. package/src/client.ts +37 -48
  7. package/src/provider.tsx +1 -1
  8. package/src/utils.ts +19 -12
  9. package/harmony/src/main/cpp/HDiffPatch/CHANGELOG.md +0 -153
  10. package/harmony/src/main/cpp/HDiffPatch/LICENSE +0 -48
  11. package/harmony/src/main/cpp/HDiffPatch/Makefile +0 -157
  12. package/harmony/src/main/cpp/HDiffPatch/README.md +0 -307
  13. package/harmony/src/main/cpp/HDiffPatch/_atosize.h +0 -83
  14. package/harmony/src/main/cpp/HDiffPatch/_clock_for_demo.h +0 -47
  15. package/harmony/src/main/cpp/HDiffPatch/_dir_ignore.h +0 -191
  16. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +0 -37
  17. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +0 -7
  18. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +0 -1
  19. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +0 -1
  20. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +0 -18
  21. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +0 -20
  22. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +0 -28
  23. package/harmony/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +0 -8
  24. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +0 -8
  25. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +0 -219
  26. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +0 -156
  27. package/harmony/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +0 -65
  28. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +0 -105
  29. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +0 -237
  30. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +0 -3
  31. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +0 -318
  32. package/harmony/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +0 -3
  33. package/harmony/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +0 -182
  34. package/harmony/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +0 -3
  35. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -30
  36. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  37. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +0 -408
  38. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +0 -573
  39. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +0 -396
  40. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +0 -268
  41. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +0 -361
  42. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +0 -301
  43. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +0 -411
  44. package/harmony/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +0 -504
  45. package/harmony/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +0 -344
  46. package/harmony/src/main/cpp/HDiffPatch/compress_parallel.cpp +0 -166
  47. package/harmony/src/main/cpp/HDiffPatch/compress_parallel.h +0 -59
  48. package/harmony/src/main/cpp/HDiffPatch/compress_plugin_demo.h +0 -1152
  49. package/harmony/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +0 -995
  50. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +0 -797
  51. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +0 -65
  52. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +0 -200
  53. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +0 -178
  54. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +0 -357
  55. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +0 -87
  56. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +0 -151
  57. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +0 -770
  58. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +0 -236
  59. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +0 -47
  60. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +0 -112
  61. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +0 -53
  62. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +0 -61
  63. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +0 -331
  64. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +0 -144
  65. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +0 -176
  66. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +0 -84
  67. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +0 -146
  68. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +0 -61
  69. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +0 -152
  70. package/harmony/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +0 -76
  71. package/harmony/src/main/cpp/HDiffPatch/file_for_patch.c +0 -524
  72. package/harmony/src/main/cpp/HDiffPatch/file_for_patch.h +0 -259
  73. package/harmony/src/main/cpp/HDiffPatch/hdiffz.cpp +0 -1570
  74. package/harmony/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +0 -290
  75. package/harmony/src/main/cpp/HDiffPatch/hpatchz.c +0 -1221
  76. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +0 -1025
  77. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +0 -116
  78. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -72
  79. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +0 -213
  80. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +0 -63
  81. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +0 -170
  82. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +0 -86
  83. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +0 -89
  84. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c +0 -13
  85. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +0 -398
  86. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +0 -194
  87. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +0 -13
  88. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +0 -204
  89. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +0 -207
  90. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +0 -815
  91. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +0 -586
  92. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +0 -381
  93. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +0 -352
  94. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +0 -137
  95. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +0 -137
  96. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +0 -70
  97. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +0 -628
  98. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +0 -87
  99. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +0 -363
  100. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +0 -139
  101. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +0 -68
  102. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +0 -115
  103. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +0 -342
  104. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +0 -94
  105. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +0 -52
  106. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +0 -2292
  107. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +0 -215
  108. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +0 -165
  109. package/harmony/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +0 -251
  110. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +0 -174
  111. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +0 -73
  112. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +0 -367
  113. package/harmony/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +0 -92
  114. package/harmony/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +0 -301
  115. package/harmony/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +0 -292
  116. package/harmony/src/main/cpp/HDiffPatch/test/testHashClash.cpp +0 -436
  117. package/harmony/src/main/cpp/HDiffPatch/test/unit_test.cpp +0 -417
  118. package/harmony/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +0 -100
  119. package/harmony/src/main/cpp/lzma/Asm/x86/7zAsm.asm +0 -147
  120. package/harmony/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +0 -147
  121. package/harmony/src/main/cpp/lzma/Asm/x86/AesOpt.asm +0 -237
  122. package/harmony/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +0 -1258
  123. package/harmony/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +0 -205
  124. package/harmony/src/main/cpp/lzma/C/7z.h +0 -202
  125. package/harmony/src/main/cpp/lzma/C/7zAlloc.c +0 -80
  126. package/harmony/src/main/cpp/lzma/C/7zAlloc.h +0 -19
  127. package/harmony/src/main/cpp/lzma/C/7zArcIn.c +0 -1771
  128. package/harmony/src/main/cpp/lzma/C/7zBuf.c +0 -36
  129. package/harmony/src/main/cpp/lzma/C/7zBuf.h +0 -35
  130. package/harmony/src/main/cpp/lzma/C/7zBuf2.c +0 -52
  131. package/harmony/src/main/cpp/lzma/C/7zCrc.c +0 -128
  132. package/harmony/src/main/cpp/lzma/C/7zCrc.h +0 -25
  133. package/harmony/src/main/cpp/lzma/C/7zCrcOpt.c +0 -115
  134. package/harmony/src/main/cpp/lzma/C/7zDec.c +0 -591
  135. package/harmony/src/main/cpp/lzma/C/7zFile.c +0 -286
  136. package/harmony/src/main/cpp/lzma/C/7zFile.h +0 -83
  137. package/harmony/src/main/cpp/lzma/C/7zStream.c +0 -176
  138. package/harmony/src/main/cpp/lzma/C/7zTypes.h +0 -375
  139. package/harmony/src/main/cpp/lzma/C/7zVersion.h +0 -27
  140. package/harmony/src/main/cpp/lzma/C/7zVersion.rc +0 -55
  141. package/harmony/src/main/cpp/lzma/C/Aes.c +0 -306
  142. package/harmony/src/main/cpp/lzma/C/Aes.h +0 -38
  143. package/harmony/src/main/cpp/lzma/C/AesOpt.c +0 -184
  144. package/harmony/src/main/cpp/lzma/C/Alloc.c +0 -455
  145. package/harmony/src/main/cpp/lzma/C/Alloc.h +0 -51
  146. package/harmony/src/main/cpp/lzma/C/Bcj2.c +0 -257
  147. package/harmony/src/main/cpp/lzma/C/Bcj2.h +0 -146
  148. package/harmony/src/main/cpp/lzma/C/Bcj2Enc.c +0 -311
  149. package/harmony/src/main/cpp/lzma/C/Bra.c +0 -230
  150. package/harmony/src/main/cpp/lzma/C/Bra.h +0 -64
  151. package/harmony/src/main/cpp/lzma/C/Bra86.c +0 -82
  152. package/harmony/src/main/cpp/lzma/C/BraIA64.c +0 -53
  153. package/harmony/src/main/cpp/lzma/C/Compiler.h +0 -33
  154. package/harmony/src/main/cpp/lzma/C/CpuArch.c +0 -218
  155. package/harmony/src/main/cpp/lzma/C/CpuArch.h +0 -336
  156. package/harmony/src/main/cpp/lzma/C/Delta.c +0 -64
  157. package/harmony/src/main/cpp/lzma/C/Delta.h +0 -19
  158. package/harmony/src/main/cpp/lzma/C/DllSecur.c +0 -108
  159. package/harmony/src/main/cpp/lzma/C/DllSecur.h +0 -20
  160. package/harmony/src/main/cpp/lzma/C/LzFind.c +0 -1127
  161. package/harmony/src/main/cpp/lzma/C/LzFind.h +0 -121
  162. package/harmony/src/main/cpp/lzma/C/LzFindMt.c +0 -853
  163. package/harmony/src/main/cpp/lzma/C/LzFindMt.h +0 -101
  164. package/harmony/src/main/cpp/lzma/C/LzHash.h +0 -57
  165. package/harmony/src/main/cpp/lzma/C/Lzma2Dec.c +0 -488
  166. package/harmony/src/main/cpp/lzma/C/Lzma2Dec.h +0 -120
  167. package/harmony/src/main/cpp/lzma/C/Lzma2DecMt.c +0 -1082
  168. package/harmony/src/main/cpp/lzma/C/Lzma2DecMt.h +0 -79
  169. package/harmony/src/main/cpp/lzma/C/Lzma2Enc.c +0 -803
  170. package/harmony/src/main/cpp/lzma/C/Lzma2Enc.h +0 -55
  171. package/harmony/src/main/cpp/lzma/C/Lzma86.h +0 -111
  172. package/harmony/src/main/cpp/lzma/C/Lzma86Dec.c +0 -54
  173. package/harmony/src/main/cpp/lzma/C/Lzma86Enc.c +0 -106
  174. package/harmony/src/main/cpp/lzma/C/LzmaDec.c +0 -1185
  175. package/harmony/src/main/cpp/lzma/C/LzmaDec.h +0 -234
  176. package/harmony/src/main/cpp/lzma/C/LzmaEnc.c +0 -2976
  177. package/harmony/src/main/cpp/lzma/C/LzmaEnc.h +0 -76
  178. package/harmony/src/main/cpp/lzma/C/LzmaLib.c +0 -40
  179. package/harmony/src/main/cpp/lzma/C/LzmaLib.h +0 -131
  180. package/harmony/src/main/cpp/lzma/C/MtCoder.c +0 -601
  181. package/harmony/src/main/cpp/lzma/C/MtCoder.h +0 -141
  182. package/harmony/src/main/cpp/lzma/C/MtDec.c +0 -1138
  183. package/harmony/src/main/cpp/lzma/C/MtDec.h +0 -201
  184. package/harmony/src/main/cpp/lzma/C/Ppmd.h +0 -85
  185. package/harmony/src/main/cpp/lzma/C/Ppmd7.c +0 -712
  186. package/harmony/src/main/cpp/lzma/C/Ppmd7.h +0 -142
  187. package/harmony/src/main/cpp/lzma/C/Ppmd7Dec.c +0 -191
  188. package/harmony/src/main/cpp/lzma/C/Ppmd7Enc.c +0 -187
  189. package/harmony/src/main/cpp/lzma/C/Precomp.h +0 -10
  190. package/harmony/src/main/cpp/lzma/C/RotateDefs.h +0 -30
  191. package/harmony/src/main/cpp/lzma/C/Sha256.c +0 -248
  192. package/harmony/src/main/cpp/lzma/C/Sha256.h +0 -26
  193. package/harmony/src/main/cpp/lzma/C/Sort.c +0 -141
  194. package/harmony/src/main/cpp/lzma/C/Sort.h +0 -18
  195. package/harmony/src/main/cpp/lzma/C/Threads.c +0 -95
  196. package/harmony/src/main/cpp/lzma/C/Threads.h +0 -70
  197. package/harmony/src/main/cpp/lzma/C/ThreadsP.c +0 -396
  198. package/harmony/src/main/cpp/lzma/C/ThreadsP.h +0 -31
  199. package/harmony/src/main/cpp/lzma/C/Util/7z/7z.dsp +0 -241
  200. package/harmony/src/main/cpp/lzma/C/Util/7z/7z.dsw +0 -29
  201. package/harmony/src/main/cpp/lzma/C/Util/7z/7zMain.c +0 -686
  202. package/harmony/src/main/cpp/lzma/C/Util/7z/Precomp.c +0 -4
  203. package/harmony/src/main/cpp/lzma/C/Util/7z/Precomp.h +0 -10
  204. package/harmony/src/main/cpp/lzma/C/Util/7z/makefile +0 -40
  205. package/harmony/src/main/cpp/lzma/C/Util/7z/makefile.gcc +0 -75
  206. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +0 -258
  207. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -168
  208. package/harmony/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +0 -29
  209. package/harmony/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -28
  210. package/harmony/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +0 -44
  211. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +0 -4
  212. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +0 -178
  213. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +0 -29
  214. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +0 -14
  215. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/makefile +0 -34
  216. package/harmony/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +0 -3
  217. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +0 -4
  218. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +0 -10
  219. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +0 -640
  220. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +0 -231
  221. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +0 -29
  222. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/makefile +0 -37
  223. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +0 -38
  224. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +0 -5
  225. package/harmony/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
  226. package/harmony/src/main/cpp/lzma/C/Xz.c +0 -90
  227. package/harmony/src/main/cpp/lzma/C/Xz.h +0 -460
  228. package/harmony/src/main/cpp/lzma/C/XzCrc64.c +0 -86
  229. package/harmony/src/main/cpp/lzma/C/XzCrc64.h +0 -26
  230. package/harmony/src/main/cpp/lzma/C/XzCrc64Opt.c +0 -69
  231. package/harmony/src/main/cpp/lzma/C/XzDec.c +0 -2766
  232. package/harmony/src/main/cpp/lzma/C/XzEnc.c +0 -1329
  233. package/harmony/src/main/cpp/lzma/C/XzEnc.h +0 -60
  234. package/harmony/src/main/cpp/lzma/C/XzIn.c +0 -319
  235. package/harmony/src/main/cpp/lzma/CPP/7zip/7zip.mak +0 -240
  236. package/harmony/src/main/cpp/lzma/CPP/7zip/Aes.mak +0 -7
  237. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +0 -3
  238. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +0 -76
  239. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +0 -569
  240. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +0 -70
  241. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +0 -678
  242. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +0 -92
  243. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +0 -423
  244. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +0 -139
  245. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +0 -61
  246. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +0 -763
  247. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +0 -181
  248. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +0 -942
  249. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +0 -19
  250. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +0 -148
  251. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +0 -1666
  252. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +0 -445
  253. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +0 -202
  254. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +0 -901
  255. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +0 -335
  256. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +0 -174
  257. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +0 -22
  258. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +0 -21
  259. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +0 -22
  260. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +0 -35
  261. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +0 -2500
  262. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +0 -139
  263. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +0 -3
  264. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +0 -8
  265. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -12
  266. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -19
  267. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +0 -151
  268. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +0 -1125
  269. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +0 -447
  270. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +0 -17
  271. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +0 -25
  272. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +0 -232
  273. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +0 -110
  274. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +0 -46
  275. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +0 -67
  276. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +0 -88
  277. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +0 -28
  278. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +0 -191
  279. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +0 -89
  280. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +0 -18
  281. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +0 -37
  282. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +0 -3
  283. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +0 -6
  284. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +0 -8
  285. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +0 -122
  286. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +0 -608
  287. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
  288. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +0 -629
  289. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +0 -359
  290. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +0 -8
  291. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +0 -1308
  292. package/harmony/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +0 -11
  293. package/harmony/src/main/cpp/lzma/CPP/7zip/Asm.mak +0 -9
  294. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +0 -1910
  295. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +0 -29
  296. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +0 -3
  297. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +0 -8
  298. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +0 -154
  299. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +0 -7
  300. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +0 -3
  301. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +0 -8
  302. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +0 -96
  303. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +0 -5
  304. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +0 -3
  305. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +0 -8
  306. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +0 -116
  307. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +0 -5
  308. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +0 -799
  309. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +0 -477
  310. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +0 -29
  311. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +0 -3
  312. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +0 -8
  313. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +0 -59
  314. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +0 -195
  315. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +0 -3
  316. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +0 -715
  317. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
  318. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +0 -912
  319. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +0 -29
  320. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +0 -482
  321. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +0 -3
  322. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +0 -8
  323. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +0 -134
  324. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +0 -5
  325. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +0 -246
  326. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +0 -86
  327. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +0 -137
  328. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +0 -11
  329. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +0 -803
  330. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +0 -29
  331. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +0 -364
  332. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +0 -3
  333. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +0 -13
  334. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +0 -117
  335. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +0 -6
  336. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +0 -16
  337. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
  338. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
  339. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +0 -988
  340. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +0 -29
  341. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +0 -241
  342. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +0 -3
  343. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +0 -14
  344. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +0 -153
  345. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +0 -1
  346. package/harmony/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -50
  347. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +0 -250
  348. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +0 -120
  349. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +0 -536
  350. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +0 -192
  351. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +0 -46
  352. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +0 -10
  353. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +0 -475
  354. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +0 -166
  355. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +0 -435
  356. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +0 -205
  357. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +0 -163
  358. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +0 -92
  359. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +0 -127
  360. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +0 -48
  361. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +0 -367
  362. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +0 -252
  363. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +0 -3
  364. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +0 -6
  365. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +0 -3
  366. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +0 -10
  367. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +0 -509
  368. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +0 -264
  369. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +0 -39
  370. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +0 -26
  371. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +0 -111
  372. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +0 -66
  373. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +0 -51
  374. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +0 -35
  375. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +0 -108
  376. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +0 -78
  377. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +0 -106
  378. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +0 -8
  379. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +0 -156
  380. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +0 -60
  381. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +0 -285
  382. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +0 -157
  383. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +0 -56
  384. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +0 -13
  385. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +0 -57
  386. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +0 -26
  387. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +0 -48
  388. package/harmony/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +0 -24
  389. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +0 -666
  390. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +0 -120
  391. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +0 -24
  392. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +0 -24
  393. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +0 -31
  394. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +0 -17
  395. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +0 -23
  396. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +0 -35
  397. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +0 -41
  398. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +0 -92
  399. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +0 -344
  400. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +0 -120
  401. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +0 -49
  402. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +0 -15
  403. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +0 -128
  404. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +0 -265
  405. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +0 -96
  406. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +0 -122
  407. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +0 -42
  408. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +0 -22
  409. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +0 -343
  410. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +0 -113
  411. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +0 -182
  412. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +0 -46
  413. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +0 -22
  414. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +0 -170
  415. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +0 -86
  416. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +0 -152
  417. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +0 -58
  418. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +0 -22
  419. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +0 -8
  420. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +0 -150
  421. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +0 -92
  422. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +0 -245
  423. package/harmony/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +0 -46
  424. package/harmony/src/main/cpp/lzma/CPP/7zip/Crc.mak +0 -8
  425. package/harmony/src/main/cpp/lzma/CPP/7zip/Crc64.mak +0 -8
  426. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +0 -280
  427. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +0 -118
  428. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +0 -17
  429. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +0 -112
  430. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +0 -57
  431. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +0 -16
  432. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +0 -233
  433. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +0 -40
  434. package/harmony/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +0 -8
  435. package/harmony/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +0 -84
  436. package/harmony/src/main/cpp/lzma/CPP/7zip/Guid.txt +0 -220
  437. package/harmony/src/main/cpp/lzma/CPP/7zip/ICoder.h +0 -399
  438. package/harmony/src/main/cpp/lzma/CPP/7zip/IDecl.h +0 -28
  439. package/harmony/src/main/cpp/lzma/CPP/7zip/IPassword.h +0 -23
  440. package/harmony/src/main/cpp/lzma/CPP/7zip/IProgress.h +0 -19
  441. package/harmony/src/main/cpp/lzma/CPP/7zip/IStream.h +0 -127
  442. package/harmony/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +0 -5
  443. package/harmony/src/main/cpp/lzma/CPP/7zip/MyVersion.h +0 -2
  444. package/harmony/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +0 -2
  445. package/harmony/src/main/cpp/lzma/CPP/7zip/PropID.h +0 -127
  446. package/harmony/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +0 -3
  447. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +0 -993
  448. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +0 -235
  449. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +0 -29
  450. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +0 -3
  451. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +0 -8
  452. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +0 -28
  453. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +0 -3
  454. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +0 -1295
  455. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +0 -136
  456. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +0 -1715
  457. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +0 -403
  458. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +0 -155
  459. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +0 -10
  460. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +0 -161
  461. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +0 -112
  462. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +0 -3618
  463. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +0 -77
  464. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +0 -37
  465. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +0 -11
  466. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +0 -190
  467. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +0 -1096
  468. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +0 -42
  469. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +0 -27
  470. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +0 -482
  471. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +0 -94
  472. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +0 -34
  473. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +0 -280
  474. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +0 -31
  475. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +0 -347
  476. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +0 -110
  477. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +0 -114
  478. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +0 -1074
  479. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +0 -424
  480. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +0 -3553
  481. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +0 -436
  482. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +0 -668
  483. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +0 -18
  484. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +0 -14
  485. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +0 -80
  486. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +0 -10
  487. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +0 -25
  488. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +0 -10
  489. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +0 -8
  490. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +0 -19
  491. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +0 -16
  492. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +0 -1704
  493. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +0 -200
  494. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +0 -64
  495. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +0 -66
  496. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +0 -771
  497. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +0 -162
  498. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +0 -233
  499. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +0 -27
  500. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +0 -70
  501. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +0 -55
  502. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +0 -94
  503. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +0 -26
  504. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +0 -130
  505. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +0 -41
  506. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +0 -14
  507. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +0 -43
  508. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -13
  509. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +0 -69
  510. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +0 -33
  511. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +0 -825
  512. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +0 -164
  513. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +0 -367
  514. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +0 -48
  515. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +0 -1359
  516. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +0 -27
  517. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +0 -1154
  518. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +0 -175
  519. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +0 -115
  520. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +0 -66
  521. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +0 -183
  522. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +0 -62
  523. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +0 -3
  524. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +0 -8
  525. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +0 -702
  526. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +0 -124
  527. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +0 -110
  528. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +0 -27
  529. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +0 -64
  530. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +0 -7
  531. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +0 -37
  532. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +0 -16
  533. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +0 -1025
  534. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +0 -21
  535. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +0 -9
  536. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +0 -64
  537. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +0 -28
  538. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +0 -4
  539. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +0 -16
  540. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +0 -1037
  541. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +0 -328
  542. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +0 -28
  543. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +0 -14
  544. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +0 -40
  545. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +0 -76
  546. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +0 -122
  547. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +0 -69
  548. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +0 -91
  549. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +0 -17
  550. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +0 -58
  551. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +0 -28
  552. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -14
  553. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +0 -5
  554. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +0 -196
  555. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +0 -170
  556. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +0 -12
  557. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +0 -1337
  558. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +0 -351
  559. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +0 -40
  560. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +0 -48
  561. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +0 -80
  562. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +0 -3
  563. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +0 -23
  564. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +0 -10
  565. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -95
  566. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +0 -255
  567. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +0 -62
  568. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +0 -177
  569. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -15
  570. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +0 -59
  571. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +0 -418
  572. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +0 -113
  573. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +0 -98
  574. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +0 -24
  575. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +0 -280
  576. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +0 -38
  577. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +0 -51
  578. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +0 -27
  579. package/harmony/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +0 -2
  580. package/harmony/src/main/cpp/lzma/CPP/Build.mak +0 -156
  581. package/harmony/src/main/cpp/lzma/CPP/Common/AutoPtr.h +0 -35
  582. package/harmony/src/main/cpp/lzma/CPP/Common/CRC.cpp +0 -7
  583. package/harmony/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +0 -92
  584. package/harmony/src/main/cpp/lzma/CPP/Common/C_FileIO.h +0 -53
  585. package/harmony/src/main/cpp/lzma/CPP/Common/ComTry.h +0 -21
  586. package/harmony/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +0 -197
  587. package/harmony/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +0 -63
  588. package/harmony/src/main/cpp/lzma/CPP/Common/Common.h +0 -43
  589. package/harmony/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +0 -98
  590. package/harmony/src/main/cpp/lzma/CPP/Common/Defs.h +0 -15
  591. package/harmony/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +0 -64
  592. package/harmony/src/main/cpp/lzma/CPP/Common/IntToString.cpp +0 -193
  593. package/harmony/src/main/cpp/lzma/CPP/Common/IntToString.h +0 -28
  594. package/harmony/src/main/cpp/lzma/CPP/Common/Lang.h +0 -23
  595. package/harmony/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +0 -132
  596. package/harmony/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +0 -18
  597. package/harmony/src/main/cpp/lzma/CPP/Common/MyBuffer.h +0 -259
  598. package/harmony/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +0 -100
  599. package/harmony/src/main/cpp/lzma/CPP/Common/MyCom.h +0 -277
  600. package/harmony/src/main/cpp/lzma/CPP/Common/MyException.h +0 -14
  601. package/harmony/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +0 -54
  602. package/harmony/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +0 -45
  603. package/harmony/src/main/cpp/lzma/CPP/Common/MyLinux.h +0 -42
  604. package/harmony/src/main/cpp/lzma/CPP/Common/MyString.cpp +0 -1659
  605. package/harmony/src/main/cpp/lzma/CPP/Common/MyString.h +0 -868
  606. package/harmony/src/main/cpp/lzma/CPP/Common/MyTypes.h +0 -35
  607. package/harmony/src/main/cpp/lzma/CPP/Common/MyUnknown.h +0 -17
  608. package/harmony/src/main/cpp/lzma/CPP/Common/MyVector.cpp +0 -3
  609. package/harmony/src/main/cpp/lzma/CPP/Common/MyVector.h +0 -634
  610. package/harmony/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +0 -145
  611. package/harmony/src/main/cpp/lzma/CPP/Common/MyWindows.h +0 -231
  612. package/harmony/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +0 -163
  613. package/harmony/src/main/cpp/lzma/CPP/Common/NewHandler.h +0 -88
  614. package/harmony/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +0 -40
  615. package/harmony/src/main/cpp/lzma/CPP/Common/StdAfx.h +0 -8
  616. package/harmony/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +0 -89
  617. package/harmony/src/main/cpp/lzma/CPP/Common/StdInStream.h +0 -38
  618. package/harmony/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +0 -163
  619. package/harmony/src/main/cpp/lzma/CPP/Common/StdOutStream.h +0 -71
  620. package/harmony/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +0 -319
  621. package/harmony/src/main/cpp/lzma/CPP/Common/StringConvert.h +0 -88
  622. package/harmony/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +0 -144
  623. package/harmony/src/main/cpp/lzma/CPP/Common/StringToInt.h +0 -21
  624. package/harmony/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +0 -124
  625. package/harmony/src/main/cpp/lzma/CPP/Common/TextConfig.h +0 -19
  626. package/harmony/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +0 -288
  627. package/harmony/src/main/cpp/lzma/CPP/Common/UTFConvert.h +0 -12
  628. package/harmony/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +0 -676
  629. package/harmony/src/main/cpp/lzma/CPP/Common/Wildcard.h +0 -149
  630. package/harmony/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +0 -7
  631. package/harmony/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +0 -42
  632. package/harmony/src/main/cpp/lzma/CPP/Windows/COM.h +0 -70
  633. package/harmony/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +0 -185
  634. package/harmony/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +0 -23
  635. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +0 -66
  636. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +0 -65
  637. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +0 -52
  638. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +0 -251
  639. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +0 -170
  640. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +0 -19
  641. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +0 -10
  642. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +0 -87
  643. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +0 -155
  644. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +0 -146
  645. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +0 -35
  646. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +0 -143
  647. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +0 -50
  648. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +0 -34
  649. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Static.h +0 -28
  650. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +0 -42
  651. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +0 -8
  652. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +0 -43
  653. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +0 -27
  654. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +0 -200
  655. package/harmony/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +0 -51
  656. package/harmony/src/main/cpp/lzma/CPP/Windows/DLL.cpp +0 -109
  657. package/harmony/src/main/cpp/lzma/CPP/Windows/DLL.h +0 -58
  658. package/harmony/src/main/cpp/lzma/CPP/Windows/Defs.h +0 -17
  659. package/harmony/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +0 -66
  660. package/harmony/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +0 -15
  661. package/harmony/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +0 -714
  662. package/harmony/src/main/cpp/lzma/CPP/Windows/FileDir.h +0 -117
  663. package/harmony/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +0 -749
  664. package/harmony/src/main/cpp/lzma/CPP/Windows/FileFind.h +0 -161
  665. package/harmony/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +0 -432
  666. package/harmony/src/main/cpp/lzma/CPP/Windows/FileIO.h +0 -212
  667. package/harmony/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +0 -440
  668. package/harmony/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +0 -12
  669. package/harmony/src/main/cpp/lzma/CPP/Windows/FileMapping.h +0 -66
  670. package/harmony/src/main/cpp/lzma/CPP/Windows/FileName.cpp +0 -839
  671. package/harmony/src/main/cpp/lzma/CPP/Windows/FileName.h +0 -115
  672. package/harmony/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +0 -131
  673. package/harmony/src/main/cpp/lzma/CPP/Windows/FileSystem.h +0 -27
  674. package/harmony/src/main/cpp/lzma/CPP/Windows/Handle.h +0 -37
  675. package/harmony/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +0 -112
  676. package/harmony/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +0 -40
  677. package/harmony/src/main/cpp/lzma/CPP/Windows/NtCheck.h +0 -46
  678. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +0 -347
  679. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariant.h +0 -114
  680. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +0 -138
  681. package/harmony/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +0 -37
  682. package/harmony/src/main/cpp/lzma/CPP/Windows/Registry.cpp +0 -390
  683. package/harmony/src/main/cpp/lzma/CPP/Windows/Registry.h +0 -84
  684. package/harmony/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +0 -103
  685. package/harmony/src/main/cpp/lzma/CPP/Windows/ResourceString.h +0 -16
  686. package/harmony/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +0 -181
  687. package/harmony/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +0 -167
  688. package/harmony/src/main/cpp/lzma/CPP/Windows/Shell.cpp +0 -358
  689. package/harmony/src/main/cpp/lzma/CPP/Windows/Shell.h +0 -94
  690. package/harmony/src/main/cpp/lzma/CPP/Windows/StdAfx.h +0 -8
  691. package/harmony/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -10
  692. package/harmony/src/main/cpp/lzma/CPP/Windows/Synchronization.h +0 -164
  693. package/harmony/src/main/cpp/lzma/CPP/Windows/System.cpp +0 -142
  694. package/harmony/src/main/cpp/lzma/CPP/Windows/System.h +0 -40
  695. package/harmony/src/main/cpp/lzma/CPP/Windows/Thread.h +0 -38
  696. package/harmony/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +0 -213
  697. package/harmony/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +0 -32
  698. package/harmony/src/main/cpp/lzma/CPP/Windows/Window.cpp +0 -179
  699. package/harmony/src/main/cpp/lzma/CPP/Windows/Window.h +0 -284
  700. package/harmony/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +0 -55
  701. package/harmony/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +0 -274
  702. package/harmony/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +0 -72
  703. package/harmony/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +0 -47
  704. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +0 -24
  705. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +0 -367
  706. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +0 -132
  707. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +0 -110
  708. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +0 -76
  709. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +0 -398
  710. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +0 -1480
  711. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +0 -364
  712. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +0 -90
  713. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +0 -20
  714. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +0 -340
  715. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +0 -29
  716. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +0 -70
  717. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +0 -42
  718. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +0 -234
  719. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +0 -117
  720. package/harmony/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +0 -157
  721. package/harmony/src/main/cpp/lzma/CS/7zip/ICoder.cs +0 -157
  722. package/harmony/src/main/cpp/lzma/DOC/7zC.txt +0 -187
  723. package/harmony/src/main/cpp/lzma/DOC/7zFormat.txt +0 -469
  724. package/harmony/src/main/cpp/lzma/DOC/Methods.txt +0 -173
  725. package/harmony/src/main/cpp/lzma/DOC/installer.txt +0 -166
  726. package/harmony/src/main/cpp/lzma/DOC/lzma-history.txt +0 -446
  727. package/harmony/src/main/cpp/lzma/DOC/lzma-sdk.txt +0 -357
  728. package/harmony/src/main/cpp/lzma/DOC/lzma-specification.txt +0 -1176
  729. package/harmony/src/main/cpp/lzma/DOC/lzma.txt +0 -328
  730. package/harmony/src/main/cpp/lzma/Java/SevenZip/CRC.java +0 -52
  731. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +0 -382
  732. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +0 -131
  733. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +0 -85
  734. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +0 -88
  735. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +0 -329
  736. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +0 -1416
  737. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +0 -55
  738. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +0 -99
  739. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +0 -88
  740. package/harmony/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +0 -151
  741. package/harmony/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +0 -6
  742. package/harmony/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +0 -253
  743. package/harmony/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +0 -392
  744. package/harmony/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
  745. package/harmony/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
  746. package/harmony/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
  747. package/harmony/src/main/cpp/lzma/bin/7zdec.exe +0 -0
  748. package/harmony/src/main/cpp/lzma/bin/7zr.exe +0 -0
  749. package/harmony/src/main/cpp/lzma/bin/installer/config.txt +0 -5
  750. package/harmony/src/main/cpp/lzma/bin/installer/cr.bat +0 -5
  751. package/harmony/src/main/cpp/lzma/bin/lzma.exe +0 -0
  752. package/harmony/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
  753. /package/harmony/{BuildProfile.ets → pushy/BuildProfile.ets} +0 -0
  754. /package/harmony/{OAT.xml → pushy/OAT.xml} +0 -0
  755. /package/harmony/{README.md → pushy/README.md} +0 -0
  756. /package/harmony/{build-profile.json5 → pushy/build-profile.json5} +0 -0
  757. /package/harmony/{hvigorfile.ts → pushy/hvigorfile.ts} +0 -0
  758. /package/harmony/{index.ets → pushy/index.ets} +0 -0
  759. /package/harmony/{oh-package-lock.json5 → pushy/oh-package-lock.json5} +0 -0
  760. /package/harmony/{oh-package.json5 → pushy/oh-package.json5} +0 -0
  761. /package/harmony/{src → pushy/src}/main/cpp/CMakeLists.txt +0 -0
  762. /package/harmony/{src → pushy/src}/main/cpp/PushyPackage.h +0 -0
  763. /package/harmony/{src → pushy/src}/main/cpp/PushyTurboModule.cpp +0 -0
  764. /package/harmony/{src → pushy/src}/main/cpp/PushyTurboModule.h +0 -0
  765. /package/harmony/{src → pushy/src}/main/cpp/hpatch.c +0 -0
  766. /package/harmony/{src → pushy/src}/main/cpp/hpatch.h +0 -0
  767. /package/harmony/{src → pushy/src}/main/cpp/pushy.c +0 -0
  768. /package/harmony/{src → pushy/src}/main/cpp/pushy.h +0 -0
  769. /package/harmony/{src → pushy/src}/main/ets/DownloadTask.ts +0 -0
  770. /package/harmony/{src → pushy/src}/main/ets/DownloadTaskParams.ts +0 -0
  771. /package/harmony/{src → pushy/src}/main/ets/EventHub.ts +0 -0
  772. /package/harmony/{src → pushy/src}/main/ets/Logger.ts +0 -0
  773. /package/harmony/{src → pushy/src}/main/ets/PushyFileJSBundleProvider.ets +0 -0
  774. /package/harmony/{src → pushy/src}/main/ets/PushyPackage.ts +0 -0
  775. /package/harmony/{src → pushy/src}/main/ets/PushyTurboModule.ts +0 -0
  776. /package/harmony/{src → pushy/src}/main/ets/UpdateContext.ts +0 -0
  777. /package/harmony/{src → pushy/src}/main/ets/UpdateModuleImpl.ts +0 -0
  778. /package/harmony/{src → pushy/src}/main/module.json5 +0 -0
  779. /package/harmony/{src → pushy/src}/main/resources/base/element/string.json +0 -0
  780. /package/harmony/{src → pushy/src}/main/resources/en_US/element/string.json +0 -0
  781. /package/harmony/{src → pushy/src}/main/resources/zh_CN/element/string.json +0 -0
  782. /package/harmony/{ts.ts → pushy/ts.ts} +0 -0
@@ -1,1152 +0,0 @@
1
- //compress_plugin_demo.h
2
- // compress plugin demo for HDiffz
3
- /*
4
- The MIT License (MIT)
5
- Copyright (c) 2012-2017 HouSisong
6
-
7
- Permission is hereby granted, free of charge, to any person
8
- obtaining a copy of this software and associated documentation
9
- files (the "Software"), to deal in the Software without
10
- restriction, including without limitation the rights to use,
11
- copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the
13
- Software is furnished to do so, subject to the following
14
- conditions:
15
-
16
- The above copyright notice and this permission notice shall be
17
- included in all copies of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
21
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26
- OTHER DEALINGS IN THE SOFTWARE.
27
- */
28
- #ifndef HDiff_compress_plugin_demo_h
29
- #define HDiff_compress_plugin_demo_h
30
- //compress plugin demo:
31
- // zlibCompressPlugin
32
- // pzlibCompressPlugin
33
- // bz2CompressPlugin
34
- // pbz2CompressPlugin
35
- // lzmaCompressPlugin
36
- // lzma2CompressPlugin
37
- // lz4CompressPlugin
38
- // lz4hcCompressPlugin
39
- // zstdCompressPlugin
40
- // brotliCompressPlugin
41
- // lzhamCompressPlugin
42
-
43
- #include "libHDiffPatch/HDiff/diff_types.h"
44
- #include "compress_parallel.h"
45
- #include <stdio.h>
46
- #ifdef __cplusplus
47
- extern "C" {
48
- #endif
49
-
50
- #ifndef kDefaultCompressThreadNumber
51
- #if (_IS_USED_MULTITHREAD)
52
- # define kDefaultCompressThreadNumber 4
53
- #else
54
- # define kDefaultCompressThreadNumber 1
55
- #endif
56
- #endif
57
-
58
- #ifndef kCompressBufSize
59
- # define kCompressBufSize (1024*32)
60
- #endif
61
- #ifndef _IsNeedIncludeDefaultCompressHead
62
- # define _IsNeedIncludeDefaultCompressHead 1
63
- #endif
64
- #define kCompressFailResult 0
65
- #define _compress_error_return(_errAt) do{ \
66
- result=kCompressFailResult; \
67
- if (strlen(errAt)==0) errAt=_errAt; \
68
- goto clear; } while(0)
69
-
70
- #ifndef IS_NOTICE_compress_canceled
71
- # define IS_NOTICE_compress_canceled 1
72
- #endif
73
- #ifndef IS_REUSE_compress_handle
74
- # define IS_REUSE_compress_handle 0
75
- #endif
76
-
77
-
78
- #define _check_compress_result(result,outStream_isCanceled,_at,_errAt) \
79
- if ((result)==kCompressFailResult){ \
80
- if (outStream_isCanceled){ \
81
- if (IS_NOTICE_compress_canceled) \
82
- printf(" (NOTICE: " _at " is canceled, warning.)\n"); \
83
- }else{ \
84
- printf(" (NOTICE: " _at " is canceled, %s ERROR!)\n",_errAt); \
85
- } \
86
- }
87
-
88
- #define _stream_out_code_write(out_code,isCanceled,writePos,buf,len) { \
89
- if (!out_code->write(out_code,writePos,buf,buf+len)){ \
90
- isCanceled=1; \
91
- _compress_error_return("out_code->write()");\
92
- } \
93
- writePos+=len; }
94
-
95
- #define _def_fun_compressType(_fun_name,cstr) \
96
- static const char* _fun_name(void){ \
97
- static const char* kCompressType=cstr; \
98
- return kCompressType; \
99
- }
100
-
101
- hpatch_inline static
102
- hpatch_StreamPos_t _default_maxCompressedSize(hpatch_StreamPos_t dataSize){
103
- hpatch_StreamPos_t result=dataSize+(dataSize>>3)+1024*2;
104
- assert(result>dataSize);
105
- return result;
106
- }
107
- hpatch_inline static
108
- int _default_setParallelThreadNumber(hdiff_TCompress* compressPlugin,int threadNum){
109
- return 1;
110
- }
111
-
112
- #ifdef _CompressPlugin_zlib
113
- #if (_IsNeedIncludeDefaultCompressHead)
114
- # include "zlib.h" // http://zlib.net/ https://github.com/madler/zlib
115
- #endif
116
- typedef struct{
117
- hdiff_TCompress base;
118
- int compress_level; //0..9
119
- int mem_level;
120
- signed char windowBits;
121
- hpatch_BOOL isNeedSaveWindowBits;
122
- int strategy;
123
- } TCompressPlugin_zlib;
124
- typedef struct _zlib_TCompress{
125
- const hpatch_TStreamOutput* out_code;
126
- unsigned char* c_buf;
127
- size_t c_buf_size;
128
- z_stream c_stream;
129
- } _zlib_TCompress;
130
-
131
- static _zlib_TCompress* _zlib_compress_open_by(const hdiff_TCompress* compressPlugin,
132
- int compressLevel,int compressMemLevel,
133
- const hpatch_TStreamOutput* out_code,
134
- unsigned char* _mem_buf,size_t _mem_buf_size){
135
- const TCompressPlugin_zlib* plugin=(const TCompressPlugin_zlib*)compressPlugin;
136
- _zlib_TCompress* self=0;
137
-
138
- self=(_zlib_TCompress*)_hpatch_align_upper(_mem_buf,sizeof(hpatch_StreamPos_t));
139
- assert((_mem_buf+_mem_buf_size)>((unsigned char*)self+sizeof(_zlib_TCompress)));
140
- _mem_buf_size=(_mem_buf+_mem_buf_size)-((unsigned char*)self+sizeof(_zlib_TCompress));
141
- _mem_buf=(unsigned char*)self+sizeof(_zlib_TCompress);
142
-
143
- memset(self,0,sizeof(_zlib_TCompress));
144
- self->c_buf=_mem_buf;
145
- self->c_buf_size=_mem_buf_size;
146
- self->out_code=out_code;
147
-
148
- self->c_stream.next_out = (Bytef*)_mem_buf;
149
- self->c_stream.avail_out = (uInt)_mem_buf_size;
150
- if (Z_OK!=deflateInit2(&self->c_stream,compressLevel,Z_DEFLATED,
151
- plugin->windowBits,compressMemLevel,plugin->strategy))
152
- return 0;
153
- return self;
154
- }
155
- static int _zlib_compress_close_by(const hdiff_TCompress* compressPlugin,_zlib_TCompress* self){
156
- int result=1;//true;
157
- if (!self) return result;
158
- if (self->c_stream.state!=0){
159
- int ret=deflateEnd(&self->c_stream);
160
- result=(Z_OK==ret);
161
- }
162
- memset(self,0,sizeof(_zlib_TCompress));
163
- return result;
164
- }
165
- static int _zlib_compress_part(_zlib_TCompress* self,
166
- const unsigned char* part_data,const unsigned char* part_data_end,
167
- int is_data_end,hpatch_StreamPos_t* curWritedPos,int* outStream_isCanceled){
168
- int result=1; //true
169
- const char* errAt="";
170
- int is_stream_end=0;
171
- int is_eof=0;
172
- assert(part_data<=part_data_end);
173
- self->c_stream.next_in=(Bytef*)part_data;
174
- self->c_stream.avail_in=(uInt)(part_data_end-part_data);
175
- while (1) {
176
- if ((self->c_stream.avail_out<self->c_buf_size)|is_stream_end){
177
- size_t writeLen=self->c_buf_size-self->c_stream.avail_out;
178
- if (writeLen>0){
179
- _stream_out_code_write(self->out_code,*outStream_isCanceled,
180
- (*curWritedPos),self->c_buf,writeLen);
181
- }
182
- self->c_stream.next_out=(Bytef*)self->c_buf;
183
- self->c_stream.avail_out=(uInt)self->c_buf_size;
184
- if (is_stream_end)
185
- break;//end loop
186
- }else{
187
- if (self->c_stream.avail_in>0){
188
- if (Z_OK!=deflate(&self->c_stream,Z_NO_FLUSH)) _compress_error_return("deflate()");
189
- }else if (is_eof){
190
- int ret=deflate(&self->c_stream,Z_FINISH);
191
- is_stream_end= (ret==Z_STREAM_END);
192
- if ((ret!=Z_STREAM_END)&&(ret!=Z_OK))
193
- _compress_error_return("deflate() Z_FINISH");
194
- }else{
195
- if (!is_data_end)
196
- break;//part ok
197
- else
198
- is_eof=1;
199
- }
200
- }
201
- }
202
- clear:
203
- _check_compress_result(result,*outStream_isCanceled,"_zlib_compress_part()",errAt);
204
- return result;
205
- }
206
-
207
- static hpatch_StreamPos_t _zlib_compress(const hdiff_TCompress* compressPlugin,
208
- const hpatch_TStreamOutput* out_code,
209
- const hpatch_TStreamInput* in_data){
210
- const TCompressPlugin_zlib* plugin=(const TCompressPlugin_zlib*)compressPlugin;
211
- hpatch_StreamPos_t result=0; //writedPos
212
- hpatch_StreamPos_t readFromPos=0;
213
- const char* errAt="";
214
- int outStream_isCanceled=0;
215
- unsigned char* _temp_buf=0;
216
- unsigned char* data_buf=0;
217
- _zlib_TCompress* self=0;
218
- _temp_buf=(unsigned char*)malloc(sizeof(_zlib_TCompress)+kCompressBufSize*2);
219
- if (!_temp_buf) _compress_error_return("memory alloc");
220
- self=_zlib_compress_open_by(compressPlugin,plugin->compress_level,plugin->mem_level,
221
- out_code,_temp_buf,sizeof(_zlib_TCompress)+kCompressBufSize);
222
- data_buf=_temp_buf+sizeof(_zlib_TCompress)+kCompressBufSize;
223
- if (!self) _compress_error_return("deflateInit2()");
224
- if (plugin->isNeedSaveWindowBits){
225
- unsigned char* pchar=(unsigned char*)&plugin->windowBits;
226
- if (!out_code->write(out_code,0,pchar,pchar+1)) _compress_error_return("out_code->write()");
227
- ++result;
228
- }
229
- do {
230
- size_t readLen=kCompressBufSize;
231
- if (readLen>(hpatch_StreamPos_t)(in_data->streamSize-readFromPos))
232
- readLen=(size_t)(in_data->streamSize-readFromPos);
233
- if (!in_data->read(in_data,readFromPos,data_buf,data_buf+readLen))
234
- _compress_error_return("in_data->read()");
235
- readFromPos+=readLen;
236
- if (!_zlib_compress_part(self,data_buf,data_buf+readLen,
237
- (readFromPos==in_data->streamSize),&result,&outStream_isCanceled))
238
- _compress_error_return("_zlib_compress_part()");
239
- } while (readFromPos<in_data->streamSize);
240
- clear:
241
- if (!_zlib_compress_close_by(compressPlugin,self))
242
- { result=kCompressFailResult; if (strlen(errAt)==0) errAt="deflateEnd()"; }
243
- _check_compress_result(result,outStream_isCanceled,"_zlib_compress()",errAt);
244
- if (_temp_buf) free(_temp_buf);
245
- return result;
246
- }
247
- _def_fun_compressType(_zlib_compressType,"zlib");
248
- static const TCompressPlugin_zlib zlibCompressPlugin={
249
- {_zlib_compressType,_default_maxCompressedSize,_default_setParallelThreadNumber,_zlib_compress},
250
- 9,8,-MAX_WBITS,hpatch_TRUE,Z_DEFAULT_STRATEGY};
251
-
252
- # if (_IS_USED_MULTITHREAD)
253
- //pzlib
254
- typedef struct {
255
- TCompressPlugin_zlib base;
256
- int thread_num; // 1..
257
- hdiff_TParallelCompress pc;
258
- } TCompressPlugin_pzlib;
259
- static int _pzlib_setThreadNum(hdiff_TCompress* compressPlugin,int threadNum){
260
- TCompressPlugin_pzlib* plugin=(TCompressPlugin_pzlib*)compressPlugin;
261
- plugin->thread_num=threadNum;
262
- return threadNum;
263
- }
264
- static hdiff_compressBlockHandle _pzlib_openBlockCompressor(hdiff_TParallelCompress* pc){
265
- return pc;
266
- }
267
- static void _pzlib_closeBlockCompressor(hdiff_TParallelCompress* pc,
268
- hdiff_compressBlockHandle blockCompressor){
269
- assert(blockCompressor==pc);
270
- }
271
- static int _pzlib_compress2(Bytef* dest,uLongf* destLen,const Bytef* source,uLong sourceLen,
272
- int level,int mem_level,int windowBits){
273
- z_stream stream;
274
- int err;
275
- stream.next_in = (Bytef *)source;
276
- stream.avail_in = (uInt)sourceLen;
277
- stream.next_out = dest;
278
- stream.avail_out = (uInt)*destLen;
279
- stream.zalloc = 0;
280
- stream.zfree = 0;
281
- stream.opaque = 0;
282
- err = deflateInit2(&stream,level,Z_DEFLATED,windowBits,mem_level,Z_DEFAULT_STRATEGY);
283
- if (err != Z_OK) return err;
284
- err = deflate(&stream, Z_FINISH);
285
- if (err != Z_STREAM_END){
286
- deflateEnd(&stream);
287
- return err == Z_OK ? Z_BUF_ERROR : err;
288
- }
289
- *destLen = stream.total_out;
290
- err = deflateEnd(&stream);
291
- return err;
292
- }
293
- static
294
- size_t _pzlib_compressBlock(hdiff_TParallelCompress* pc,hdiff_compressBlockHandle blockCompressor,
295
- hpatch_StreamPos_t blockIndex,unsigned char* out_code,unsigned char* out_codeEnd,
296
- const unsigned char* block_data,const unsigned char* block_dataEnd){
297
- const TCompressPlugin_pzlib* plugin=(const TCompressPlugin_pzlib*)pc->import;
298
- hpatch_BOOL isAdding=(blockIndex==0)&&(plugin->base.isNeedSaveWindowBits);
299
- if (isAdding){
300
- if (out_code>=out_codeEnd) return 0;//error;
301
- out_code[0]=plugin->base.windowBits;
302
- ++out_code;
303
- }
304
- uLongf codeLen=(uLongf)(out_codeEnd-out_code);
305
- if (Z_OK!=_pzlib_compress2(out_code,&codeLen,block_data,(uLong)(block_dataEnd-block_data),
306
- plugin->base.compress_level,plugin->base.mem_level,plugin->base.windowBits))
307
- return 0; //error
308
- return codeLen+(isAdding?1:0);
309
- }
310
- static hpatch_StreamPos_t _pzlib_compress(const hdiff_TCompress* compressPlugin,
311
- const hpatch_TStreamOutput* out_code,
312
- const hpatch_TStreamInput* in_data){
313
- TCompressPlugin_pzlib* plugin=(TCompressPlugin_pzlib*)compressPlugin;
314
- const size_t blockSize=(plugin->base.compress_level>1)?
315
- 1024*128*(plugin->base.compress_level-1):1024*128;
316
- if ((plugin->thread_num<=1)||(plugin->base.compress_level==0)
317
- ||(in_data->streamSize<blockSize*2)){ //same as "zlib"
318
- return _zlib_compress(compressPlugin,out_code,in_data);
319
- }else{
320
- plugin->pc.import=plugin;
321
- return parallel_compress_blocks(&plugin->pc,plugin->thread_num,blockSize,out_code,in_data);
322
- }
323
- }
324
-
325
- _def_fun_compressType(_pzlib_compressType,"pzlib");
326
- static const TCompressPlugin_pzlib pzlibCompressPlugin={
327
- { {_pzlib_compressType,_default_maxCompressedSize,_pzlib_setThreadNum,_pzlib_compress},
328
- 6,8,-MAX_WBITS,hpatch_TRUE,Z_DEFAULT_STRATEGY},
329
- kDefaultCompressThreadNumber ,{0,_default_maxCompressedSize,_pzlib_openBlockCompressor,
330
- _pzlib_closeBlockCompressor,_pzlib_compressBlock} };
331
- # endif // _IS_USED_MULTITHREAD
332
- #endif//_CompressPlugin_zlib
333
-
334
- #ifdef _CompressPlugin_bz2
335
- #if (_IsNeedIncludeDefaultCompressHead)
336
- # include "bzlib.h" // http://www.bzip.org/ https://github.com/sisong/bzip2
337
- #endif
338
- typedef struct{
339
- hdiff_TCompress base;
340
- int compress_level; //0..9
341
- } TCompressPlugin_bz2;
342
- static hpatch_StreamPos_t _bz2_compress(const hdiff_TCompress* compressPlugin,
343
- const hpatch_TStreamOutput* out_code,
344
- const hpatch_TStreamInput* in_data){
345
- const TCompressPlugin_bz2* plugin=(const TCompressPlugin_bz2*)compressPlugin;
346
- hpatch_StreamPos_t result=0;
347
- const char* errAt="";
348
- unsigned char* _temp_buf=0;
349
- bz_stream s;
350
- unsigned char* code_buf,* data_buf;
351
- int is_eof=0;
352
- int is_stream_end=0;
353
- hpatch_StreamPos_t readFromPos=0;
354
- int outStream_isCanceled=0;
355
- memset(&s,0,sizeof(s));
356
-
357
- _temp_buf=(unsigned char*)malloc(kCompressBufSize*2);
358
- if (!_temp_buf) _compress_error_return("memory alloc");
359
- code_buf=_temp_buf;
360
- data_buf=_temp_buf+kCompressBufSize;
361
- s.next_out = (char*)code_buf;
362
- s.avail_out = kCompressBufSize;
363
- if (BZ_OK!=BZ2_bzCompressInit(&s,plugin->compress_level, 0, 0))
364
- _compress_error_return("BZ2_bzCompressInit()");
365
- while (1) {
366
- if ((s.avail_out<kCompressBufSize)|is_stream_end){
367
- size_t writeLen=kCompressBufSize-s.avail_out;
368
- if (writeLen>0){
369
- _stream_out_code_write(out_code,outStream_isCanceled,result,code_buf,writeLen);
370
- }
371
- s.next_out=(char*)code_buf;
372
- s.avail_out=kCompressBufSize;
373
- if (is_stream_end)
374
- break;//end loop
375
- }else{
376
- if (s.avail_in>0){
377
- if (BZ_RUN_OK!=BZ2_bzCompress(&s,BZ_RUN)) _compress_error_return("BZ2_bzCompress()");
378
- }else if (is_eof){
379
- int ret=BZ2_bzCompress(&s,BZ_FINISH);
380
- is_stream_end= (ret==BZ_STREAM_END);
381
- if ((ret!=BZ_STREAM_END)&&(ret!=BZ_FINISH_OK))
382
- _compress_error_return("BZ2_bzCompress() BZ_FINISH");
383
- }else{
384
- size_t readLen=kCompressBufSize;
385
- if (readFromPos+readLen>in_data->streamSize)
386
- readLen=(size_t)(in_data->streamSize-readFromPos);
387
- if (readLen==0){
388
- is_eof=1;
389
- }else{
390
- if (!in_data->read(in_data,readFromPos,data_buf,data_buf+readLen))
391
- _compress_error_return("in_data->read()");
392
- readFromPos+=readLen;
393
- s.next_in=(char*)data_buf;
394
- s.avail_in=(unsigned int)readLen;
395
- }
396
- }
397
- }
398
- }
399
- clear:
400
- if (BZ_OK!=BZ2_bzCompressEnd(&s))
401
- { result=kCompressFailResult; if (strlen(errAt)==0) errAt="BZ2_bzCompressEnd()"; }
402
- _check_compress_result(result,outStream_isCanceled,"_bz2_compress()",errAt);
403
- if (_temp_buf) free(_temp_buf);
404
- return result;
405
- }
406
- _def_fun_compressType(_bz2_compressType,"bz2");
407
- static const TCompressPlugin_bz2 bz2CompressPlugin={
408
- {_bz2_compressType,_default_maxCompressedSize,_default_setParallelThreadNumber,_bz2_compress}, 9};
409
-
410
- # if (_IS_USED_MULTITHREAD)
411
- //pbz2
412
- typedef struct{
413
- TCompressPlugin_bz2 base;
414
- int thread_num; // 1..
415
- hdiff_TParallelCompress pc;
416
- } TCompressPlugin_pbz2;
417
- static int _pbz2_setThreadNum(hdiff_TCompress* compressPlugin,int threadNum){
418
- TCompressPlugin_pbz2* plugin=(TCompressPlugin_pbz2*)compressPlugin;
419
- plugin->thread_num=threadNum;
420
- return threadNum;
421
- }
422
- static hdiff_compressBlockHandle _pbz2_openBlockCompressor(hdiff_TParallelCompress* pc){
423
- return pc;
424
- }
425
- static void _pbz2_closeBlockCompressor(hdiff_TParallelCompress* pc,
426
- hdiff_compressBlockHandle blockCompressor){
427
- assert(blockCompressor==pc);
428
- }
429
- static
430
- size_t _pbz2_compressBlock(hdiff_TParallelCompress* pc,hdiff_compressBlockHandle blockCompressor,
431
- hpatch_StreamPos_t blockIndex,unsigned char* out_code,unsigned char* out_codeEnd,
432
- const unsigned char* block_data,const unsigned char* block_dataEnd){
433
- const TCompressPlugin_pbz2* plugin=(const TCompressPlugin_pbz2*)pc->import;
434
- unsigned int codeLen=(unsigned int)(out_codeEnd-out_code);
435
- if (BZ_OK!=BZ2_bzBuffToBuffCompress((char*)out_code,&codeLen,(char*)block_data,
436
- (unsigned int)(block_dataEnd-block_data),
437
- plugin->base.compress_level,0,0)) return 0; //error
438
- return codeLen;
439
- }
440
- static hpatch_StreamPos_t _pbz2_compress(const hdiff_TCompress* compressPlugin,
441
- const hpatch_TStreamOutput* out_code,
442
- const hpatch_TStreamInput* in_data){
443
- TCompressPlugin_pbz2* plugin=(TCompressPlugin_pbz2*)compressPlugin;
444
- const size_t blockSize=plugin->base.compress_level*100000;
445
- if ((plugin->thread_num<=1)||(plugin->base.compress_level==0)
446
- ||(in_data->streamSize<blockSize*2)){ //same as "bz2"
447
- return _bz2_compress(compressPlugin,out_code,in_data);
448
- }else{
449
- plugin->pc.import=plugin;
450
- return parallel_compress_blocks(&plugin->pc,plugin->thread_num,blockSize,out_code,in_data);
451
- }
452
- }
453
-
454
- _def_fun_compressType(_pbz2_compressType,"pbz2");
455
- static const TCompressPlugin_pbz2 pbz2CompressPlugin={
456
- { {_pbz2_compressType,_default_maxCompressedSize,_pbz2_setThreadNum,_pbz2_compress}, 8},
457
- kDefaultCompressThreadNumber ,{0,_default_maxCompressedSize,_pbz2_openBlockCompressor,
458
- _pbz2_closeBlockCompressor,_pbz2_compressBlock} };
459
- # endif // _IS_USED_MULTITHREAD
460
- #endif//_CompressPlugin_bz2
461
-
462
-
463
- #if (defined _CompressPlugin_lzma)||(defined _CompressPlugin_lzma2)
464
- #if (_IsNeedIncludeDefaultCompressHead)
465
- # include "LzmaEnc.h" // "lzma/C/LzmaEnc.h" https://github.com/sisong/lzma
466
- # ifdef _CompressPlugin_lzma2
467
- # include "Lzma2Enc.h"
468
- # endif
469
- #endif
470
- static void * __lzma_enc_Alloc(ISzAllocPtr p, size_t size){
471
- return malloc(size);
472
- }
473
- static void __lzma_enc_Free(ISzAllocPtr p, void *address){
474
- free(address);
475
- }
476
- static ISzAlloc __lzma_enc_alloc={__lzma_enc_Alloc,__lzma_enc_Free};
477
-
478
- struct __lzma_SeqOutStream_t{
479
- ISeqOutStream base;
480
- const hpatch_TStreamOutput* out_code;
481
- hpatch_StreamPos_t writeToPos;
482
- int isCanceled;
483
- };
484
- static size_t __lzma_SeqOutStream_Write(const ISeqOutStream *p, const void *buf, size_t size){
485
- __lzma_SeqOutStream_t* self=(__lzma_SeqOutStream_t*)p;
486
- const unsigned char* pdata=(const unsigned char*)buf;
487
- if (size>0){
488
- if (!self->out_code->write(self->out_code,self->writeToPos,pdata,pdata+size)){
489
- self->isCanceled=1;
490
- return 0;
491
- }
492
- }
493
- self->writeToPos+=size;
494
- return size;
495
- }
496
- struct __lzma_SeqInStream_t{
497
- ISeqInStream base;
498
- const hpatch_TStreamInput* in_data;
499
- hpatch_StreamPos_t readFromPos;
500
- };
501
- static SRes __lzma_SeqInStream_Read(const ISeqInStream *p, void *buf, size_t *size){
502
- __lzma_SeqInStream_t* self=(__lzma_SeqInStream_t*)p;
503
- size_t readLen=*size;
504
- if (readLen+self->readFromPos>self->in_data->streamSize)
505
- readLen=(size_t)(self->in_data->streamSize-self->readFromPos);
506
- if (readLen>0){
507
- unsigned char* pdata=(unsigned char*)buf;
508
- if (!self->in_data->read(self->in_data,self->readFromPos,pdata,pdata+readLen)){
509
- *size=0;
510
- return SZ_ERROR_READ;
511
- }
512
- }
513
- self->readFromPos+=readLen;
514
- *size=readLen;
515
- return SZ_OK;
516
- }
517
- #endif
518
-
519
- #ifdef _CompressPlugin_lzma
520
- typedef struct{
521
- hdiff_TCompress base;
522
- int compress_level; //0..9
523
- UInt32 dict_size; //patch decompress need 4*lzma_dictSize memroy
524
- int thread_num; //1..2
525
- } TCompressPlugin_lzma;
526
- static int _lzma_setThreadNumber(hdiff_TCompress* compressPlugin,int threadNum){
527
- TCompressPlugin_lzma* plugin=(TCompressPlugin_lzma*)compressPlugin;
528
- if (threadNum>2) threadNum=2;
529
- plugin->thread_num=threadNum;
530
- return threadNum;
531
- }
532
- static hpatch_StreamPos_t _lzma_compress(const hdiff_TCompress* compressPlugin,
533
- const hpatch_TStreamOutput* out_code,
534
- const hpatch_TStreamInput* in_data){
535
- const TCompressPlugin_lzma* plugin=(const TCompressPlugin_lzma*)compressPlugin;
536
- struct __lzma_SeqOutStream_t outStream={{__lzma_SeqOutStream_Write},out_code,0,0};
537
- struct __lzma_SeqInStream_t inStream={{__lzma_SeqInStream_Read},in_data,0};
538
- hpatch_StreamPos_t result=0;
539
- const char* errAt="";
540
- #if (IS_REUSE_compress_handle)
541
- static CLzmaEncHandle s=0;
542
- #else
543
- CLzmaEncHandle s=0;
544
- #endif
545
- CLzmaEncProps props;
546
- unsigned char properties_buf[LZMA_PROPS_SIZE+1];
547
- SizeT properties_size=LZMA_PROPS_SIZE;
548
- SRes ret;
549
- hpatch_uint32_t dictSize=plugin->dict_size;
550
- if (!s) s=LzmaEnc_Create(&__lzma_enc_alloc);
551
- if (!s) _compress_error_return("LzmaEnc_Create()");
552
- LzmaEncProps_Init(&props);
553
- props.level=plugin->compress_level;
554
- props.dictSize=dictSize;
555
- props.reduceSize=in_data->streamSize;
556
- props.numThreads=plugin->thread_num;
557
- LzmaEncProps_Normalize(&props);
558
- if (SZ_OK!=LzmaEnc_SetProps(s,&props)) _compress_error_return("LzmaEnc_SetProps()");
559
- # if (IS_NOTICE_compress_canceled)
560
- printf(" (used one lzma dictSize: %" PRIu64 " (input data: %" PRIu64 "))\n",
561
- (hpatch_StreamPos_t)props.dictSize,in_data->streamSize);
562
- # endif
563
-
564
- //save properties_size+properties
565
- assert(LZMA_PROPS_SIZE<256);
566
- if (SZ_OK!=LzmaEnc_WriteProperties(s,properties_buf+1,&properties_size))
567
- _compress_error_return("LzmaEnc_WriteProperties()");
568
- properties_buf[0]=(unsigned char)properties_size;
569
-
570
- if (1+properties_size!=__lzma_SeqOutStream_Write(&outStream.base,properties_buf,1+properties_size))
571
- _compress_error_return("out_code->write()");
572
-
573
- ret=LzmaEnc_Encode(s,&outStream.base,&inStream.base,0,&__lzma_enc_alloc,&__lzma_enc_alloc);
574
- if (SZ_OK==ret){
575
- result=outStream.writeToPos;
576
- }else{//fail
577
- if (ret==SZ_ERROR_READ)
578
- _compress_error_return("in_data->read()");
579
- else if (ret==SZ_ERROR_WRITE)
580
- _compress_error_return("out_code->write()");
581
- else
582
- _compress_error_return("LzmaEnc_Encode()");
583
- }
584
- clear:
585
- #if (!IS_REUSE_compress_handle)
586
- if (s) LzmaEnc_Destroy(s,&__lzma_enc_alloc,&__lzma_enc_alloc);
587
- #endif
588
- _check_compress_result(result,outStream.isCanceled,"_lzma_compress()",errAt);
589
- return result;
590
- }
591
- _def_fun_compressType(_lzma_compressType,"lzma");
592
- static const TCompressPlugin_lzma lzmaCompressPlugin={
593
- {_lzma_compressType,_default_maxCompressedSize,_lzma_setThreadNumber,_lzma_compress},
594
- 7,(1<<23),(kDefaultCompressThreadNumber>=2)?2:kDefaultCompressThreadNumber};
595
- #endif//_CompressPlugin_lzma
596
-
597
- #ifdef _CompressPlugin_lzma2
598
- #if (_IsNeedIncludeDefaultCompressHead)
599
- # include "MtCoder.h" // // "lzma/C/MtCoder.h" for MTCODER__THREADS_MAX
600
- #endif
601
- struct TCompressPlugin_lzma2{
602
- hdiff_TCompress base;
603
- int compress_level; //0..9
604
- UInt32 dict_size; //patch decompress need 4*lzma_dictSize memroy
605
- int thread_num; //1..(64?)
606
- };
607
- static int _lzma2_setThreadNumber(hdiff_TCompress* compressPlugin,int threadNum){
608
- TCompressPlugin_lzma2* plugin=(TCompressPlugin_lzma2*)compressPlugin;
609
- if (threadNum>MTCODER__THREADS_MAX) threadNum=MTCODER__THREADS_MAX;
610
- plugin->thread_num=threadNum;
611
- return threadNum;
612
- }
613
- static hpatch_StreamPos_t _lzma2_compress(const hdiff_TCompress* compressPlugin,
614
- const hpatch_TStreamOutput* out_code,
615
- const hpatch_TStreamInput* in_data){
616
- const TCompressPlugin_lzma2* plugin=(const TCompressPlugin_lzma2*)compressPlugin;
617
- struct __lzma_SeqOutStream_t outStream={{__lzma_SeqOutStream_Write},out_code,0,0};
618
- struct __lzma_SeqInStream_t inStream={{__lzma_SeqInStream_Read},in_data,0};
619
- hpatch_StreamPos_t result=0;
620
- const char* errAt="";
621
- #if (IS_REUSE_compress_handle)
622
- static CLzma2EncHandle s=0;
623
- #else
624
- CLzma2EncHandle s=0;
625
- #endif
626
- CLzma2EncProps props;
627
- Byte properties_size=0;
628
- SRes ret;
629
- hpatch_uint32_t dictSize=plugin->dict_size;
630
- if (!s) s=Lzma2Enc_Create(&__lzma_enc_alloc,&__lzma_enc_alloc);
631
- if (!s) _compress_error_return("LzmaEnc_Create()");
632
- Lzma2EncProps_Init(&props);
633
- props.lzmaProps.level=plugin->compress_level;
634
- props.lzmaProps.dictSize=dictSize;
635
- props.lzmaProps.reduceSize=in_data->streamSize;
636
- props.blockSize=LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO;
637
- props.numTotalThreads=plugin->thread_num;
638
- Lzma2EncProps_Normalize(&props);
639
- if (SZ_OK!=Lzma2Enc_SetProps(s,&props)) _compress_error_return("Lzma2Enc_SetProps()");
640
- # if (IS_NOTICE_compress_canceled)
641
- printf(" (used one lzma2 dictSize: %" PRIu64 " (input data: %" PRIu64 "))\n",
642
- (hpatch_StreamPos_t)props.lzmaProps.dictSize,in_data->streamSize);
643
- # endif
644
-
645
- //save properties_size+properties
646
- assert(LZMA_PROPS_SIZE<256);
647
- properties_size=Lzma2Enc_WriteProperties(s);
648
-
649
- if (1!=__lzma_SeqOutStream_Write(&outStream.base,&properties_size,1))
650
- _compress_error_return("out_code->write()");
651
-
652
- ret=Lzma2Enc_Encode2(s,&outStream.base,0,0,&inStream.base,0,0,0);
653
- if (SZ_OK==ret){
654
- result=outStream.writeToPos;
655
- }else{//fail
656
- if (ret==SZ_ERROR_READ)
657
- _compress_error_return("in_data->read()");
658
- else if (ret==SZ_ERROR_WRITE)
659
- _compress_error_return("out_code->write()");
660
- else
661
- _compress_error_return("Lzma2Enc_Encode2()");
662
- }
663
- clear:
664
- #if (!IS_REUSE_compress_handle)
665
- if (s) Lzma2Enc_Destroy(s);
666
- #endif
667
- _check_compress_result(result,outStream.isCanceled,"_lzma2_compress()",errAt);
668
- return result;
669
- }
670
- _def_fun_compressType(_lzma2_compressType,"lzma2");
671
- static const TCompressPlugin_lzma2 lzma2CompressPlugin={
672
- {_lzma2_compressType,_default_maxCompressedSize,_lzma2_setThreadNumber,_lzma2_compress},
673
- 7,(1<<23),kDefaultCompressThreadNumber};
674
- #endif//_CompressPlugin_lzma2
675
-
676
-
677
- #if (defined(_CompressPlugin_lz4) || defined(_CompressPlugin_lz4hc))
678
- #if (_IsNeedIncludeDefaultCompressHead)
679
- # include "lz4.h" // "lz4/lib/lz4.h" https://github.com/lz4/lz4
680
- # include "lz4hc.h"
681
- #endif
682
- struct TCompressPlugin_lz4{
683
- hdiff_TCompress base;
684
- int compress_level; //1..50 default 50
685
- };
686
- struct TCompressPlugin_lz4hc{
687
- hdiff_TCompress base;
688
- int compress_level; //3..12
689
- };
690
-
691
- #define _lz4_write_len4(out_code,isCanceled,writePos,len) { \
692
- unsigned char _temp_buf4[4]; \
693
- _temp_buf4[0]=(unsigned char)(len); \
694
- _temp_buf4[1]=(unsigned char)((len)>>8); \
695
- _temp_buf4[2]=(unsigned char)((len)>>16);\
696
- _temp_buf4[3]=(unsigned char)((len)>>24);\
697
- _stream_out_code_write(out_code,isCanceled,writePos,_temp_buf4,4); \
698
- }
699
- static hpatch_StreamPos_t _lz4_compress(const hdiff_TCompress* compressPlugin,
700
- const hpatch_TStreamOutput* out_code,
701
- const hpatch_TStreamInput* in_data){
702
- const TCompressPlugin_lz4* plugin=(const TCompressPlugin_lz4*)compressPlugin;
703
- const int kLZ4DefaultAcceleration=50-(plugin->compress_level-1);
704
- hpatch_StreamPos_t result=0;
705
- const char* errAt="";
706
- unsigned char* _temp_buf=0;
707
- unsigned char* code_buf,* data_buf,* data_buf_back;
708
- LZ4_stream_t* s=0;
709
- hpatch_StreamPos_t readFromPos=0;
710
- int outStream_isCanceled=0;
711
- int kLz4CompressBufSize =1024*510; //patch decompress need 4*2*0.5MB memroy
712
- int code_buf_size;
713
- if ((size_t)kLz4CompressBufSize>in_data->streamSize)
714
- kLz4CompressBufSize=(int)in_data->streamSize;
715
- code_buf_size=LZ4_compressBound(kLz4CompressBufSize);
716
-
717
- _temp_buf=(unsigned char*)malloc(kLz4CompressBufSize*2+code_buf_size);
718
- if (!_temp_buf) _compress_error_return("memory alloc");
719
- data_buf_back=_temp_buf;
720
- data_buf=_temp_buf+kLz4CompressBufSize;
721
- code_buf=_temp_buf+kLz4CompressBufSize*2;
722
-
723
- s=LZ4_createStream();
724
- if (!s) _compress_error_return("LZ4_createStream()");
725
- //out kLz4CompressBufSize
726
- _lz4_write_len4(out_code,outStream_isCanceled,result,kLz4CompressBufSize);
727
-
728
- while (1) {
729
- int codeLen;
730
- unsigned char* _swap=data_buf;
731
- data_buf=data_buf_back;
732
- data_buf_back=_swap;
733
- int dataLen=kLz4CompressBufSize;
734
- if ((size_t)dataLen>(in_data->streamSize-readFromPos))
735
- dataLen=(int)(in_data->streamSize-readFromPos);
736
- if (dataLen==0)
737
- break;//finish
738
- if (!in_data->read(in_data,readFromPos,data_buf,data_buf+dataLen))
739
- _compress_error_return("in_data->read()");
740
- readFromPos+=dataLen;
741
-
742
- codeLen=LZ4_compress_fast_continue(s,(const char*)data_buf,(char*)code_buf,
743
- dataLen,code_buf_size,kLZ4DefaultAcceleration);
744
- if (codeLen<=0) _compress_error_return("LZ4_compress_fast_continue()");
745
- //out step codeLen
746
- _lz4_write_len4(out_code,outStream_isCanceled,result,codeLen);
747
- //out code
748
- _stream_out_code_write(out_code,outStream_isCanceled,result,code_buf,codeLen);
749
- }
750
- clear:
751
- if (0!=LZ4_freeStream(s))
752
- { result=kCompressFailResult; if (strlen(errAt)==0) errAt="LZ4_freeStream()"; }
753
- _check_compress_result(result,outStream_isCanceled,"_lz4_compress()",errAt);
754
- if (_temp_buf) free(_temp_buf);
755
- return result;
756
- }
757
-
758
- static hpatch_StreamPos_t _lz4hc_compress(const hdiff_TCompress* compressPlugin,
759
- const hpatch_TStreamOutput* out_code,
760
- const hpatch_TStreamInput* in_data){
761
- const TCompressPlugin_lz4hc* plugin=(const TCompressPlugin_lz4hc*)compressPlugin;
762
- hpatch_StreamPos_t result=0;
763
- const char* errAt="";
764
- unsigned char* _temp_buf=0;
765
- unsigned char* code_buf,* data_buf,* data_buf_back;
766
- LZ4_streamHC_t* s=0;
767
- hpatch_StreamPos_t readFromPos=0;
768
- int outStream_isCanceled=0;
769
- int kLz4CompressBufSize =1024*510; //patch decompress need 4*2*0.5MB memroy
770
- int code_buf_size;
771
- if ((size_t)kLz4CompressBufSize>in_data->streamSize)
772
- kLz4CompressBufSize=(int)in_data->streamSize;
773
- code_buf_size=LZ4_compressBound(kLz4CompressBufSize);
774
-
775
- _temp_buf=(unsigned char*)malloc(kLz4CompressBufSize*2+code_buf_size);
776
- if (!_temp_buf) _compress_error_return("memory alloc");
777
- data_buf_back=_temp_buf;
778
- data_buf=_temp_buf+kLz4CompressBufSize;
779
- code_buf=_temp_buf+kLz4CompressBufSize*2;
780
-
781
- s=LZ4_createStreamHC();
782
- if (!s) _compress_error_return("LZ4_createStreamHC()");
783
- LZ4_resetStreamHC(s,plugin->compress_level);
784
- //out kLz4CompressBufSize
785
- _lz4_write_len4(out_code,outStream_isCanceled,result,kLz4CompressBufSize);
786
-
787
- while (1) {
788
- int codeLen;
789
- unsigned char* _swap=data_buf;
790
- data_buf=data_buf_back;
791
- data_buf_back=_swap;
792
- int dataLen=kLz4CompressBufSize;
793
- if ((size_t)dataLen>(in_data->streamSize-readFromPos))
794
- dataLen=(int)(in_data->streamSize-readFromPos);
795
- if (dataLen==0)
796
- break;//finish
797
- if (!in_data->read(in_data,readFromPos,data_buf,data_buf+dataLen))
798
- _compress_error_return("in_data->read()");
799
- readFromPos+=dataLen;
800
-
801
- codeLen=LZ4_compress_HC_continue(s,(const char*)data_buf,(char*)code_buf,
802
- dataLen,code_buf_size);
803
- if (codeLen<=0) _compress_error_return("LZ4_compress_HC_continue()");
804
- //out step codeLen
805
- _lz4_write_len4(out_code,outStream_isCanceled,result,codeLen);
806
- //out code
807
- _stream_out_code_write(out_code,outStream_isCanceled,result,code_buf,codeLen);
808
- }
809
- clear:
810
- if (0!=LZ4_freeStreamHC(s))
811
- { result=kCompressFailResult; if (strlen(errAt)==0) errAt="LZ4_freeStreamHC()"; }
812
- _check_compress_result(result,outStream_isCanceled,"_lz4hc_compress()",errAt);
813
- if (_temp_buf) free(_temp_buf);
814
- return result;
815
- }
816
-
817
- _def_fun_compressType(_lz4_compressType,"lz4");
818
- static TCompressPlugin_lz4 lz4CompressPlugin={
819
- {_lz4_compressType,_default_maxCompressedSize,_default_setParallelThreadNumber,_lz4_compress}, 50};
820
- static TCompressPlugin_lz4hc lz4hcCompressPlugin ={
821
- {_lz4_compressType,_default_maxCompressedSize,_default_setParallelThreadNumber,_lz4hc_compress}, 11};
822
- #endif//_CompressPlugin_lz4 or _CompressPlugin_lz4hc
823
-
824
-
825
- #ifdef _CompressPlugin_zstd
826
- #if (_IsNeedIncludeDefaultCompressHead)
827
- # include "zstd.h" // "zstd/lib/zstd.h" https://github.com/facebook/zstd
828
- #endif
829
- struct TCompressPlugin_zstd{
830
- hdiff_TCompress base;
831
- int compress_level; //0..22
832
- int dict_bits; // 10..(30 or 31)
833
- int thread_num; //1..(200?)
834
- };
835
- static int _zstd_setThreadNumber(hdiff_TCompress* compressPlugin,int threadNum){
836
- TCompressPlugin_zstd* plugin=(TCompressPlugin_zstd*)compressPlugin;
837
- #define ZSTDMT_NBWORKERS_MAX 200
838
- if (threadNum>ZSTDMT_NBWORKERS_MAX) threadNum=ZSTDMT_NBWORKERS_MAX;
839
- plugin->thread_num=threadNum;
840
- return threadNum;
841
- }
842
- static hpatch_StreamPos_t _zstd_compress(const hdiff_TCompress* compressPlugin,
843
- const hpatch_TStreamOutput* out_code,
844
- const hpatch_TStreamInput* in_data){
845
- const TCompressPlugin_zstd* plugin=(const TCompressPlugin_zstd*)compressPlugin;
846
- hpatch_StreamPos_t result=0;
847
- const char* errAt="";
848
- unsigned char* _temp_buf=0;
849
- ZSTD_inBuffer s_input;
850
- ZSTD_outBuffer s_output;
851
- #if (IS_REUSE_compress_handle)
852
- static ZSTD_CStream* s=0;
853
- #else
854
- ZSTD_CStream* s=0;
855
- #endif
856
- hpatch_StreamPos_t readFromPos=0;
857
- int outStream_isCanceled=0;
858
- int dict_bits;
859
- size_t ret;
860
-
861
- s_input.size=ZSTD_CStreamInSize();
862
- s_output.size=ZSTD_CStreamOutSize();
863
- _temp_buf=(unsigned char*)malloc(s_input.size+s_output.size);
864
- if (!_temp_buf) _compress_error_return("memory alloc");
865
- s_input.src=_temp_buf;
866
- s_output.dst=_temp_buf+s_input.size;
867
-
868
- if (!s) s=ZSTD_createCStream();
869
- if (!s) _compress_error_return("ZSTD_createCStream()");
870
- ret=ZSTD_initCStream(s,plugin->compress_level);
871
- if (ZSTD_isError(ret)) _compress_error_return("ZSTD_initCStream()");
872
-
873
- #define _ZSTD_WINDOWLOG_MIN 10
874
- dict_bits=plugin->dict_bits;
875
- while (((((hpatch_StreamPos_t)1)<<(dict_bits-1)) >= in_data->streamSize)
876
- &&((dict_bits-1)>=_ZSTD_WINDOWLOG_MIN)) {
877
- --dict_bits;
878
- }
879
- ret=ZSTD_CCtx_setParameter(s, ZSTD_c_windowLog,plugin->dict_bits);
880
- if (ZSTD_isError(ret)) _compress_error_return("ZSTD_CCtx_setParameter(,ZSTD_c_windowLog)");
881
- if (plugin->thread_num>1){
882
- ret=ZSTD_CCtx_setParameter(s, ZSTD_c_nbWorkers,plugin->thread_num);
883
- //if (ZSTD_isError(ret)) printf(" (NOTICE: zstd unsupport multi-threading, warning.)\n");
884
- }
885
-
886
- while (readFromPos<in_data->streamSize) {
887
- s_input.pos=0;
888
- if (s_input.size>(in_data->streamSize-readFromPos))
889
- s_input.size=(size_t)(in_data->streamSize-readFromPos);
890
- if (!in_data->read(in_data,readFromPos,(unsigned char*)s_input.src,
891
- (unsigned char*)s_input.src+s_input.size))
892
- _compress_error_return("in_data->read()");
893
- readFromPos+=s_input.size;
894
- while (s_input.pos<s_input.size) {
895
- s_output.pos=0;
896
- ret=ZSTD_compressStream(s,&s_output,&s_input);
897
- if (ZSTD_isError(ret)) _compress_error_return("ZSTD_compressStream()");
898
- if (s_output.pos>0){
899
- _stream_out_code_write(out_code,outStream_isCanceled,result,
900
- (const unsigned char*)s_output.dst,s_output.pos);
901
- }
902
- }
903
- }
904
- while (1) {
905
- s_output.pos=0;
906
- ret=ZSTD_endStream(s,&s_output);
907
- if (s_output.pos>0){
908
- _stream_out_code_write(out_code,outStream_isCanceled,result,
909
- (const unsigned char*)s_output.dst,s_output.pos);
910
- }
911
- if (ret==0) break;
912
- }
913
- clear:
914
- #if (!IS_REUSE_compress_handle)
915
- if (0!=ZSTD_freeCStream(s))
916
- { result=kCompressFailResult; if (strlen(errAt)==0) errAt="ZSTD_freeCStream()"; }
917
- #endif
918
- _check_compress_result(result,outStream_isCanceled,"_zstd_compress()",errAt);
919
- if (_temp_buf) free(_temp_buf);
920
- return result;
921
- }
922
- _def_fun_compressType(_zstd_compressType,"zstd");
923
- static TCompressPlugin_zstd zstdCompressPlugin={
924
- {_zstd_compressType,_default_maxCompressedSize,_zstd_setThreadNumber,_zstd_compress},
925
- 20,24,kDefaultCompressThreadNumber};
926
- #endif//_CompressPlugin_zstd
927
-
928
-
929
- #ifdef _CompressPlugin_brotli
930
- #if (_IsNeedIncludeDefaultCompressHead)
931
- # include "brotli/encode.h" // "brotli/c/include/brotli/encode.h" https://github.com/google/brotli
932
- #endif
933
- struct TCompressPlugin_brotli{
934
- hdiff_TCompress base;
935
- int compress_level; //0..11
936
- int dict_bits; // 10..30
937
- };
938
- static hpatch_StreamPos_t _brotli_compress(const hdiff_TCompress* compressPlugin,
939
- const hpatch_TStreamOutput* out_code,
940
- const hpatch_TStreamInput* in_data){
941
- const TCompressPlugin_brotli* plugin=(const TCompressPlugin_brotli*)compressPlugin;
942
- hpatch_StreamPos_t result=0;
943
- const char* errAt="";
944
- BrotliEncoderState* s=0;
945
- hpatch_StreamPos_t readFromPos=0;
946
- int outStream_isCanceled=0;
947
- uint8_t* _temp_buf=0;
948
- const size_t kBufSize=kCompressBufSize;
949
- uint8_t* input;
950
- uint8_t* output;
951
- size_t available_in;
952
- size_t available_out;
953
- const uint8_t* next_in;
954
- uint8_t* next_out;
955
-
956
- _temp_buf=(uint8_t*)malloc(kBufSize*2);
957
- if (!_temp_buf) _compress_error_return("memory alloc");
958
- input=_temp_buf;
959
- output=_temp_buf+kBufSize;
960
- available_in=0;
961
- available_out=kBufSize;
962
- next_out=output;
963
- next_in=input;
964
-
965
- if (!s) s=BrotliEncoderCreateInstance(0,0,0);
966
- if (!s) _compress_error_return("BrotliEncoderCreateInstance()");
967
- if (!BrotliEncoderSetParameter(s,BROTLI_PARAM_QUALITY,plugin->compress_level))
968
- _compress_error_return("BrotliEncoderSetParameter()");
969
- {
970
- uint32_t lgwin = plugin->dict_bits;
971
- #define BROTLI_WINDOW_GAP 16
972
- #define BROTLI_MAX_BACKWARD_LIMIT(W) (((hpatch_StreamPos_t)1 << (W)) - BROTLI_WINDOW_GAP)
973
- while ((BROTLI_MAX_BACKWARD_LIMIT(lgwin-1) >= in_data->streamSize)
974
- &&((lgwin-1)>= BROTLI_MIN_WINDOW_BITS)) {
975
- --lgwin;
976
- }
977
- if (lgwin > BROTLI_MAX_WINDOW_BITS)
978
- BrotliEncoderSetParameter(s, BROTLI_PARAM_LARGE_WINDOW, 1u);
979
- BrotliEncoderSetParameter(s, BROTLI_PARAM_LGWIN, lgwin);
980
- }
981
- if (in_data->streamSize > 0) {
982
- uint32_t size_hint = in_data->streamSize < (1 << 30) ?
983
- (uint32_t)in_data->streamSize : (1u << 30);
984
- BrotliEncoderSetParameter(s, BROTLI_PARAM_SIZE_HINT, size_hint);
985
- }
986
-
987
- while (1) {
988
- int s_isFinished;
989
- if ((available_in==0)&&(readFromPos<in_data->streamSize)){
990
- available_in=kBufSize;
991
- if (available_in>(in_data->streamSize-readFromPos))
992
- available_in=(size_t)(in_data->streamSize-readFromPos);
993
- if (!in_data->read(in_data,readFromPos,input,input+available_in))
994
- _compress_error_return("in_data->read()");
995
- readFromPos+=available_in;
996
- next_in=input;
997
- }
998
-
999
- if (!BrotliEncoderCompressStream(s,
1000
- (readFromPos==in_data->streamSize) ? BROTLI_OPERATION_FINISH : BROTLI_OPERATION_PROCESS,
1001
- &available_in, &next_in, &available_out, &next_out, 0))
1002
- _compress_error_return("BrotliEncoderCompressStream()");
1003
-
1004
- s_isFinished=BrotliEncoderIsFinished(s);
1005
- if ((available_out == 0)||s_isFinished) {
1006
- _stream_out_code_write(out_code,outStream_isCanceled,result,
1007
- output,kBufSize-available_out);
1008
- next_out=output;
1009
- available_out=kBufSize;
1010
- }
1011
-
1012
- if (s_isFinished)
1013
- break;
1014
- }
1015
- clear:
1016
- BrotliEncoderDestroyInstance(s);
1017
- _check_compress_result(result,outStream_isCanceled,"_brotli_compress()",errAt);
1018
- if (_temp_buf) free(_temp_buf);
1019
- return result;
1020
- }
1021
- _def_fun_compressType(_brotli_compressType,"brotli");
1022
- static TCompressPlugin_brotli brotliCompressPlugin={
1023
- {_brotli_compressType,_default_maxCompressedSize,_default_setParallelThreadNumber,_brotli_compress}, 9,24};
1024
- #endif//_CompressPlugin_brotli
1025
-
1026
-
1027
- #ifdef _CompressPlugin_lzham
1028
- #if (_IsNeedIncludeDefaultCompressHead)
1029
- # include "lzham.h" // "lzham_codec/include/lzham.h" https://github.com/richgel999/lzham_codec
1030
- #endif
1031
- struct TCompressPlugin_lzham{
1032
- hdiff_TCompress base;
1033
- int compress_level; //0..5
1034
- int dict_bits; // 15..(26 or 29)
1035
- int thread_num; //1..(64?)
1036
- };
1037
-
1038
- static int _lzham_setParallelThreadNumber(hdiff_TCompress* compressPlugin,int threadNum){
1039
- TCompressPlugin_lzham* plugin=(TCompressPlugin_lzham*)compressPlugin;
1040
- if (threadNum>LZHAM_MAX_HELPER_THREADS) threadNum=LZHAM_MAX_HELPER_THREADS;
1041
- plugin->thread_num=threadNum;
1042
- return threadNum;
1043
- }
1044
-
1045
- static hpatch_StreamPos_t _lzham_compress(const hdiff_TCompress* compressPlugin,
1046
- const hpatch_TStreamOutput* out_code,
1047
- const hpatch_TStreamInput* in_data){
1048
- const TCompressPlugin_lzham* plugin=(const TCompressPlugin_lzham*)compressPlugin;
1049
- hpatch_StreamPos_t result=0;
1050
- const char* errAt="";
1051
- lzham_compress_params params;
1052
- unsigned char dict_bits;
1053
- lzham_compress_state_ptr s=0;
1054
- hpatch_StreamPos_t readFromPos=0;
1055
- int outStream_isCanceled=0;
1056
- unsigned char* _temp_buf=0;
1057
- const size_t kBufSize=kCompressBufSize;
1058
- unsigned char* input;
1059
- unsigned char* output;
1060
- size_t available_in;
1061
- size_t available_out;
1062
- const unsigned char* next_in;
1063
- unsigned char* next_out;
1064
-
1065
- _temp_buf=(unsigned char*)malloc(kBufSize*2);
1066
- if (!_temp_buf) _compress_error_return("memory alloc");
1067
- input=_temp_buf;
1068
- output=_temp_buf+kBufSize;
1069
- available_in=0;
1070
- available_out=kBufSize;
1071
- next_out=output;
1072
- next_in=input;
1073
-
1074
- memset(&params, 0, sizeof(params));
1075
- params.m_struct_size=sizeof(params);
1076
- dict_bits= (unsigned char)plugin->dict_bits;
1077
- while (((((hpatch_StreamPos_t)1)<<(dict_bits-1)) >= in_data->streamSize)
1078
- &&((dict_bits-1)>=LZHAM_MIN_DICT_SIZE_LOG2)) {
1079
- --dict_bits;
1080
- }
1081
- params.m_dict_size_log2 = dict_bits;
1082
- if (plugin->compress_level<=LZHAM_COMP_LEVEL_UBER){
1083
- params.m_level=(lzham_compress_level)plugin->compress_level;
1084
- }else{
1085
- params.m_level = LZHAM_COMP_LEVEL_UBER;
1086
- params.m_compress_flags |= LZHAM_COMP_FLAG_EXTREME_PARSING;
1087
- }
1088
- if (plugin->thread_num>1)
1089
- params.m_max_helper_threads = plugin->thread_num;
1090
-
1091
- if (!s) s=lzham_compress_init(&params);
1092
- if (!s) _compress_error_return("lzham_compress_init()");
1093
-
1094
- {//save head
1095
- if (!out_code->write(out_code,0,(&dict_bits),(&dict_bits)+1))
1096
- _compress_error_return("out_code->write()");
1097
- ++result;
1098
- }
1099
-
1100
- while (1) {
1101
- lzham_compress_status_t ret;
1102
- int s_isFinished;
1103
- if ((available_in==0)&&(readFromPos<in_data->streamSize)){
1104
- available_in=kBufSize;
1105
- if (available_in>(in_data->streamSize-readFromPos))
1106
- available_in=(size_t)(in_data->streamSize-readFromPos);
1107
- if (!in_data->read(in_data,readFromPos,input,input+available_in))
1108
- _compress_error_return("in_data->read()");
1109
- readFromPos+=available_in;
1110
- next_in=input;
1111
- }
1112
-
1113
- {
1114
- size_t available_in_back=available_in;
1115
- size_t available_out_back=available_out;
1116
- ret=lzham_compress2(s,next_in,&available_in,next_out,&available_out,
1117
- (readFromPos==in_data->streamSize) ? LZHAM_FINISH : LZHAM_NO_FLUSH);
1118
- next_out+=available_out;
1119
- next_in+=available_in;
1120
- available_in=available_in_back-available_in;
1121
- available_out=available_out_back-available_out;
1122
- }
1123
- if (ret>=LZHAM_COMP_STATUS_FIRST_FAILURE_CODE)
1124
- _compress_error_return("lzham_compress2()");
1125
-
1126
- s_isFinished=(ret==LZHAM_COMP_STATUS_SUCCESS);
1127
- if ((ret==LZHAM_COMP_STATUS_HAS_MORE_OUTPUT)||(available_out == 0)||s_isFinished) {
1128
- _stream_out_code_write(out_code,outStream_isCanceled,result,
1129
- output,kBufSize-available_out);
1130
- next_out=output;
1131
- available_out=kBufSize;
1132
- }
1133
-
1134
- if (s_isFinished)
1135
- break;
1136
- }
1137
- clear:
1138
- lzham_compress_deinit(s);
1139
- _check_compress_result(result,outStream_isCanceled,"_lzham_compress()",errAt);
1140
- if (_temp_buf) free(_temp_buf);
1141
- return result;
1142
- }
1143
- _def_fun_compressType(_lzham_compressType,"lzham");
1144
- static TCompressPlugin_lzham lzhamCompressPlugin={
1145
- {_lzham_compressType,_default_maxCompressedSize,_lzham_setParallelThreadNumber,_lzham_compress},
1146
- LZHAM_COMP_LEVEL_BETTER,24,kDefaultCompressThreadNumber};
1147
- #endif//_CompressPlugin_lzham
1148
-
1149
- #ifdef __cplusplus
1150
- }
1151
- #endif
1152
- #endif