react-native-update 10.34.1 → 10.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +6 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +473 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +552 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +547 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +127 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +191 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +389 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +266 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +58 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +26 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +155 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +364 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +348 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +215 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +256 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +7 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +271 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +296 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +242 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +287 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +447 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +703 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +463 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +286 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +268 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +585 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +591 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +308 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +524 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +774 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +799 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +1526 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +1637 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +846 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +87 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +43 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +836 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +246 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +47 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +346 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +149 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +176 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +84 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +146 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +61 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +152 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +735 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +240 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +1971 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +307 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +1786 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +1746 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +187 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +478 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +222 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +383 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +184 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +89 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +325 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.cpp +10 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +14 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +108 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +186 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +780 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +579 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +415 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +144 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +164 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +148 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +769 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +954 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +299 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +168 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +72 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +130 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +428 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +133 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +52 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +243 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +51 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +153 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +54 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +158 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +294 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +217 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +349 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +110 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +2643 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +253 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +245 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +361 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +366 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +91 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +170 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +250 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +497 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +254 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +37 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +62 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +440 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +332 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +198 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +697 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +262 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +252 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +680 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +137 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +83 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +56 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +147 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +354 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +521 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +122 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +36 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +81 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +247 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +71 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +351 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +124 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +203 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +630 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +889 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +628 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +95 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +78 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +950 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +72 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +100 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +181 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +1487 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +341 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +258 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +742 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +540 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +1339 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +275 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +860 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +523 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +204 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +89 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +1786 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.c +36 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf2.c +52 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +464 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +673 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +443 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +597 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +360 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +429 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +1002 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +605 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +290 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +332 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +506 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +709 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +105 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +187 -0
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +14 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +246 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +970 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +686 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +99 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +1746 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +1422 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +114 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +578 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +493 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +1095 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +81 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +807 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +111 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +53 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +103 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +1363 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +237 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +3150 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +85 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +42 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +138 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +604 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +144 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +1124 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +202 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +1131 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +181 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +312 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +337 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +492 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +451 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +268 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +835 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +812 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +260 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +249 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +889 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +32 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +313 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +192 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +30 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +21 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +206 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +59 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +657 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +40 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +542 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +140 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +261 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +2876 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +1384 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +385 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +240 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +1370 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +599 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +721 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +95 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +444 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +264 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +795 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +1162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +1764 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +454 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +207 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +1026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +346 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +3088 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +167 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +158 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +1144 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +447 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +140 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +175 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +754 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +608 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +353 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +1452 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +2090 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +168 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +279 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +817 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +540 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +131 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +715 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +1017 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +521 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +137 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +246 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +83 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +135 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +872 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +371 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +1074 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +268 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +159 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +1 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +358 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +548 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +200 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +923 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +205 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +577 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +237 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +765 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +349 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +855 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +111 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +80 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +78 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +290 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +867 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +91 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +378 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +153 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +15 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +126 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +267 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +134 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +350 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +374 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +219 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +277 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +241 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +480 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +210 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersion.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +1145 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +331 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +1799 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +170 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +3077 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +641 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +176 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +5026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +407 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +1637 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +575 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +107 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +44 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +296 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +2273 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +322 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +112 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +1337 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +482 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +3702 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +469 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +745 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +1931 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +1069 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +197 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +302 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +74 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +84 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +212 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +946 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +211 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +426 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +1417 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +1635 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +235 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +115 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +998 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +148 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +118 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +1132 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +32 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +4 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +1272 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +218 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +288 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +89 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +171 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +1483 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +355 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +85 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +104 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +351 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +65 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +199 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +252 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +330 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +185 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +693 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +75 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +1842 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +1079 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +724 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +292 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +325 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +248 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +762 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +154 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +123 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +863 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +384 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +789 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +269 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +52 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +446 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +213 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +165 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +202 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +53 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +1362 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +172 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +1449 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +954 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +697 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +911 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +142 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +36 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +173 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +474 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +96 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +839 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +129 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +386 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +189 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +1251 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +179 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +363 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +367 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +132 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +1480 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +364 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +234 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/ICoder.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zC.txt +187 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zFormat.txt +469 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +177 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +166 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +651 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +437 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +1176 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +345 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/CRC.java +52 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +382 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +131 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +85 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +329 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +1416 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +55 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +99 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +151 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +6 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +253 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +392 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/config.txt +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/cr.bat +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
// dir_diff.cpp
|
|
2
|
+
// hdiffz dir diff
|
|
3
|
+
//
|
|
4
|
+
/*
|
|
5
|
+
The MIT License (MIT)
|
|
6
|
+
Copyright (c) 2018-2019 HouSisong
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person
|
|
9
|
+
obtaining a copy of this software and associated documentation
|
|
10
|
+
files (the "Software"), to deal in the Software without
|
|
11
|
+
restriction, including without limitation the rights to use,
|
|
12
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the
|
|
14
|
+
Software is furnished to do so, subject to the following
|
|
15
|
+
conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be
|
|
18
|
+
included in all copies of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
22
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
23
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
24
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
25
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
26
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
27
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
#include "dir_diff.h"
|
|
30
|
+
#if (_IS_NEED_DIR_DIFF_PATCH)
|
|
31
|
+
#include <map>
|
|
32
|
+
#include <set>
|
|
33
|
+
#include "../../libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h"
|
|
34
|
+
#include "../../libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h"
|
|
35
|
+
#include "../../libHDiffPatch/HDiff/diff.h"
|
|
36
|
+
#include "../../libHDiffPatch/HDiff/match_block.h"
|
|
37
|
+
#include "../../libHDiffPatch/HPatch/patch.h"
|
|
38
|
+
#include "../dir_patch/dir_patch.h"
|
|
39
|
+
#include "../dir_patch/dir_patch_private.h"
|
|
40
|
+
#include "dir_diff_tools.h"
|
|
41
|
+
using namespace hdiff_private;
|
|
42
|
+
|
|
43
|
+
static const char* kDirDiffVersionType= "HDIFF19";
|
|
44
|
+
|
|
45
|
+
static std::string cmp_hash_type = "fadler64";
|
|
46
|
+
#define cmp_hash_value_t uint64_t
|
|
47
|
+
#define cmp_hash_begin(ph) { (*(ph))=ADLER_INITIAL; }
|
|
48
|
+
#define cmp_hash_append(ph,pvalues,n) { (*(ph))=fast_adler64_append(*(ph),pvalues,n); }
|
|
49
|
+
#define cmp_hash_end(ph) {}
|
|
50
|
+
#define cmp_hash_combine(ph,rightHash,rightLen) { (*(ph))=fast_adler64_by_combine(*(ph),rightHash,rightLen); }
|
|
51
|
+
|
|
52
|
+
static cmp_hash_value_t getStreamHash(const hpatch_TStreamInput* stream,const std::string& errorTag){
|
|
53
|
+
TAutoMem mem(hdiff_kFileIOBufBestSize);
|
|
54
|
+
cmp_hash_value_t result;
|
|
55
|
+
cmp_hash_begin(&result);
|
|
56
|
+
for (hpatch_StreamPos_t pos=0; pos<stream->streamSize;) {
|
|
57
|
+
size_t readLen=hdiff_kFileIOBufBestSize;
|
|
58
|
+
if (pos+readLen>stream->streamSize)
|
|
59
|
+
readLen=(size_t)(stream->streamSize-pos);
|
|
60
|
+
check(stream->read(stream,pos,mem.data(),mem.data()+readLen),
|
|
61
|
+
"read \""+errorTag+"\" error!");
|
|
62
|
+
cmp_hash_append(&result,mem.data(),readLen);
|
|
63
|
+
pos+=readLen;
|
|
64
|
+
}
|
|
65
|
+
cmp_hash_end(&result);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static cmp_hash_value_t getFileHash(const std::string& fileName,hpatch_StreamPos_t* out_fileSize){
|
|
70
|
+
CFileStreamInput f(fileName);
|
|
71
|
+
*out_fileSize=f.base.streamSize;
|
|
72
|
+
return getStreamHash(&f.base,fileName);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
static bool fileData_isSame(const std::string& file_x,const std::string& file_y,
|
|
77
|
+
hpatch_ICopyDataListener* copyListener=0){
|
|
78
|
+
CFileStreamInput f_x(file_x);
|
|
79
|
+
CFileStreamInput f_y(file_y);
|
|
80
|
+
if (f_x.base.streamSize!=f_y.base.streamSize)
|
|
81
|
+
return false;
|
|
82
|
+
TAutoMem mem(hdiff_kFileIOBufBestSize*2);
|
|
83
|
+
for (hpatch_StreamPos_t pos=0; pos<f_x.base.streamSize;) {
|
|
84
|
+
size_t readLen=hdiff_kFileIOBufBestSize;
|
|
85
|
+
if (pos+readLen>f_x.base.streamSize)
|
|
86
|
+
readLen=(size_t)(f_x.base.streamSize-pos);
|
|
87
|
+
check(f_x.base.read(&f_x.base,pos,mem.data(),mem.data()+readLen),
|
|
88
|
+
"read file \""+file_x+"\" error!");
|
|
89
|
+
check(f_y.base.read(&f_y.base,pos,mem.data()+readLen,mem.data()+readLen*2),
|
|
90
|
+
"read file \""+file_y+"\" error!");
|
|
91
|
+
if (0!=memcmp(mem.data(),mem.data()+readLen,readLen))
|
|
92
|
+
return false;
|
|
93
|
+
if (copyListener)
|
|
94
|
+
copyListener->copyedData(copyListener,mem.data(),mem.data()+readLen);
|
|
95
|
+
pos+=readLen;
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static bool fileName_isSame(const std::string& file_x,const std::string& rootPath_x,
|
|
101
|
+
const std::string& file_y,const std::string& rootPath_y){
|
|
102
|
+
size_t nameSize=file_x.size()-rootPath_x.size();
|
|
103
|
+
if (nameSize != (file_y.size()-rootPath_y.size()))
|
|
104
|
+
return false;
|
|
105
|
+
return 0==memcmp(file_x.c_str()+rootPath_x.size(),file_y.c_str()+rootPath_y.size(),nameSize);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static void packSamePairList(std::vector<TByte>& out_data,const std::vector<hpatch_TSameFilePair>& pairs){
|
|
109
|
+
size_t backPairNew=~(size_t)0;
|
|
110
|
+
size_t backPairOld=~(size_t)0;
|
|
111
|
+
for (size_t i=0;i<pairs.size();++i){
|
|
112
|
+
size_t curNewValue=pairs[i].newIndex;
|
|
113
|
+
assert(curNewValue>=(size_t)(backPairNew+1));
|
|
114
|
+
packUInt(out_data,(size_t)(curNewValue-(size_t)(backPairNew+1)));
|
|
115
|
+
backPairNew=curNewValue;
|
|
116
|
+
|
|
117
|
+
size_t curOldValue=pairs[i].oldIndex;
|
|
118
|
+
if (curOldValue>=(size_t)(backPairOld+1))
|
|
119
|
+
packUIntWithTag(out_data,(size_t)(curOldValue-(size_t)(backPairOld+1)),0,1);
|
|
120
|
+
else
|
|
121
|
+
packUIntWithTag(out_data,(size_t)((size_t)(backPairOld+1)-curOldValue),1,1);
|
|
122
|
+
backPairOld=curOldValue;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
struct _TCmp_byHit {
|
|
127
|
+
inline _TCmp_byHit(const char* _newPath,const std::vector<std::string>& _oldList,
|
|
128
|
+
size_t _oldRootPathSize,const std::vector<size_t>& _oldHitList)
|
|
129
|
+
:newPath(_newPath),oldList(_oldList),oldRootPathSize(_oldRootPathSize),oldHitList(_oldHitList){}
|
|
130
|
+
inline bool operator()(size_t ix,size_t iy)const{
|
|
131
|
+
size_t vx=ToValue(ix);
|
|
132
|
+
size_t vy=ToValue(iy);
|
|
133
|
+
return vx>vy;
|
|
134
|
+
}
|
|
135
|
+
size_t ToValue(size_t index)const{
|
|
136
|
+
const std::string& oldName=oldList[index];
|
|
137
|
+
bool isEqPath=(0==strcmp(newPath,oldName.c_str()+oldRootPathSize));
|
|
138
|
+
size_t hitCount=oldHitList[index];
|
|
139
|
+
|
|
140
|
+
const size_t kMaxValue=~(size_t)0;
|
|
141
|
+
if (hitCount==0){
|
|
142
|
+
if (isEqPath) return kMaxValue;
|
|
143
|
+
else return kMaxValue-1;
|
|
144
|
+
}else{
|
|
145
|
+
if (isEqPath) return kMaxValue-2;
|
|
146
|
+
else return hitCount;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const char* newPath;
|
|
150
|
+
const std::vector<std::string>& oldList;
|
|
151
|
+
const size_t oldRootPathSize;
|
|
152
|
+
const std::vector<size_t>& oldHitList;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
static void getRefList(const std::string& oldRootPath,const std::string& newRootPath,
|
|
156
|
+
const std::vector<std::string>& oldList,const std::vector<std::string>& newList,
|
|
157
|
+
std::vector<hpatch_StreamPos_t>& out_oldSizeList,
|
|
158
|
+
std::vector<hpatch_StreamPos_t>& out_newSizeList,
|
|
159
|
+
std::vector<hpatch_TSameFilePair>& out_dataSamePairList,
|
|
160
|
+
std::vector<size_t>& out_oldRefList,std::vector<size_t>& out_newRefList,
|
|
161
|
+
bool isNeedOutHashs,
|
|
162
|
+
std::vector<cmp_hash_value_t>& out_oldHashList,
|
|
163
|
+
std::vector<cmp_hash_value_t>& out_newHashList){
|
|
164
|
+
typedef std::multimap<cmp_hash_value_t,size_t> TMap;
|
|
165
|
+
TMap hashMap;
|
|
166
|
+
std::set<size_t> oldRefSet;
|
|
167
|
+
const bool isFileSizeAsHash =(!isNeedOutHashs) && ((oldList.size()*newList.size())<=16);
|
|
168
|
+
out_oldSizeList.assign(oldList.size(),0);
|
|
169
|
+
out_newSizeList.assign(newList.size(),0);
|
|
170
|
+
if (isNeedOutHashs){
|
|
171
|
+
out_oldHashList.assign(oldList.size(),0);
|
|
172
|
+
out_newHashList.assign(newList.size(),0);
|
|
173
|
+
}
|
|
174
|
+
for (size_t oldi=0; oldi<oldList.size(); ++oldi) {
|
|
175
|
+
const std::string& fileName=oldList[oldi];
|
|
176
|
+
if (isDirName(fileName)) continue;
|
|
177
|
+
hpatch_StreamPos_t fileSize=0;
|
|
178
|
+
cmp_hash_value_t hash;
|
|
179
|
+
if (isFileSizeAsHash){
|
|
180
|
+
fileSize=getFileSize(fileName);
|
|
181
|
+
hash=fileSize;
|
|
182
|
+
}else{
|
|
183
|
+
if ((fileName.empty())&&(oldList.size()==1)){ // isOldPathInputEmpty
|
|
184
|
+
hpatch_TStreamInput emptyStream;
|
|
185
|
+
mem_as_hStreamInput(&emptyStream,0,0);
|
|
186
|
+
hash=getStreamHash(&emptyStream,"isOldPathInputEmpty, as empty file");
|
|
187
|
+
fileSize=0;
|
|
188
|
+
}else{
|
|
189
|
+
hash=getFileHash(fileName,&fileSize);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
out_oldSizeList[oldi]=fileSize;
|
|
193
|
+
if (isNeedOutHashs) out_oldHashList[oldi]=hash;
|
|
194
|
+
if (fileSize==0) continue;
|
|
195
|
+
hashMap.insert(TMap::value_type(hash,oldi));
|
|
196
|
+
oldRefSet.insert(oldi);
|
|
197
|
+
}
|
|
198
|
+
out_dataSamePairList.clear();
|
|
199
|
+
out_newRefList.clear();
|
|
200
|
+
std::vector<size_t> oldHitList(oldList.size(),0);
|
|
201
|
+
for (size_t newi=0; newi<newList.size(); ++newi){
|
|
202
|
+
const std::string& fileName=newList[newi];
|
|
203
|
+
if (isDirName(fileName)) continue;
|
|
204
|
+
hpatch_StreamPos_t fileSize=0;
|
|
205
|
+
cmp_hash_value_t hash;
|
|
206
|
+
if (isFileSizeAsHash){
|
|
207
|
+
fileSize=getFileSize(fileName);
|
|
208
|
+
hash=fileSize;
|
|
209
|
+
}else{
|
|
210
|
+
hash=getFileHash(fileName,&fileSize);
|
|
211
|
+
}
|
|
212
|
+
out_newSizeList[newi]=fileSize;
|
|
213
|
+
if (isNeedOutHashs) out_newHashList[newi]=hash;
|
|
214
|
+
if (fileSize==0) continue;
|
|
215
|
+
|
|
216
|
+
bool isFoundSame=false;
|
|
217
|
+
size_t oldIndex=~(size_t)0;
|
|
218
|
+
std::pair<TMap::const_iterator,TMap::const_iterator> range=hashMap.equal_range(hash);
|
|
219
|
+
std::vector<size_t> oldHashIndexs;
|
|
220
|
+
for (;range.first!=range.second;++range.first)
|
|
221
|
+
oldHashIndexs.push_back(range.first->second);
|
|
222
|
+
const char* newPath=fileName.c_str()+newRootPath.size();
|
|
223
|
+
if (oldHashIndexs.size()>1)
|
|
224
|
+
std::sort(oldHashIndexs.begin(),oldHashIndexs.end(),
|
|
225
|
+
_TCmp_byHit(newPath,oldList,oldRootPath.size(),oldHitList));
|
|
226
|
+
for (size_t oldi=0;oldi<oldHashIndexs.size();++oldi){
|
|
227
|
+
size_t curOldIndex=oldHashIndexs[oldi];
|
|
228
|
+
const std::string& oldName=oldList[curOldIndex];
|
|
229
|
+
if (fileData_isSame(oldName,fileName)){
|
|
230
|
+
isFoundSame=true;
|
|
231
|
+
oldIndex=curOldIndex;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (isFoundSame){
|
|
237
|
+
++oldHitList[oldIndex];
|
|
238
|
+
oldRefSet.erase(oldIndex);
|
|
239
|
+
hpatch_TSameFilePair pair; pair.newIndex=newi; pair.oldIndex=oldIndex;
|
|
240
|
+
out_dataSamePairList.push_back(pair);
|
|
241
|
+
}else{
|
|
242
|
+
out_newRefList.push_back(newi);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
out_oldRefList.assign(oldRefSet.begin(),oldRefSet.end());
|
|
246
|
+
std::sort(out_oldRefList.begin(),out_oldRefList.end());
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
struct CChecksumCombine:public CChecksum{
|
|
250
|
+
inline explicit CChecksumCombine(hpatch_TChecksum* checksumPlugin,bool isCanUseCombine)
|
|
251
|
+
:CChecksum(checksumPlugin),_isCanUseCombine(isCanUseCombine) {
|
|
252
|
+
if (checksumPlugin&&_isCanUseCombine) cmp_hash_begin(&_combineHash); }
|
|
253
|
+
inline void appendEnd(){
|
|
254
|
+
CChecksum::appendEnd();
|
|
255
|
+
if (_isCanUseCombine){
|
|
256
|
+
cmp_hash_end(&_combineHash);
|
|
257
|
+
assert(sizeof(cmp_hash_value_t)==_checksumPlugin->checksumByteSize());
|
|
258
|
+
checksum.resize(sizeof(cmp_hash_value_t));
|
|
259
|
+
cmp_hash_value_t hash=_combineHash;
|
|
260
|
+
for (size_t i=0;i<sizeof(cmp_hash_value_t);++i){
|
|
261
|
+
checksum[i]=(TByte)hash;
|
|
262
|
+
hash>>=8;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
inline void combine(cmp_hash_value_t rightHash,uint64_t rightLen){
|
|
267
|
+
cmp_hash_combine(&_combineHash,rightHash,rightLen);
|
|
268
|
+
}
|
|
269
|
+
const bool _isCanUseCombine;
|
|
270
|
+
cmp_hash_value_t _combineHash;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
static void _getExecuteList(std::vector<size_t>& outExecuteList,
|
|
274
|
+
IDirDiffListener* listener,const std::vector<std::string>& pathList){
|
|
275
|
+
for (size_t i=0; i<pathList.size(); ++i) {
|
|
276
|
+
if ((!isDirName(pathList[i]))&&(listener->isExecuteFile(pathList[i])))
|
|
277
|
+
outExecuteList.push_back(i);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
void dir_diff(IDirDiffListener* listener,const TManifest& oldManifest,
|
|
282
|
+
const TManifest& newManifest,const hpatch_TStreamOutput* outDiffStream,
|
|
283
|
+
const hdiff_TCompress* compressPlugin,hpatch_TChecksum* checksumPlugin,
|
|
284
|
+
const THDiffSets& hdiffSets,size_t kMaxOpenFileNumber){
|
|
285
|
+
assert(listener!=0);
|
|
286
|
+
assert(kMaxOpenFileNumber>=kMaxOpenFileNumber_limit_min);
|
|
287
|
+
if ((checksumPlugin)&&(!hdiffSets.isDiffInMem)){
|
|
288
|
+
check((outDiffStream->read_writed!=0),
|
|
289
|
+
"for update checksum, outDiffStream->read_writed can't null error!");
|
|
290
|
+
}
|
|
291
|
+
kMaxOpenFileNumber-=1; // for outDiffStream
|
|
292
|
+
const size_t kMaxOpenFileNumber_old=kMaxOpenFileNumber*5/8;
|
|
293
|
+
const size_t kMaxOpenFileNumber_new=kMaxOpenFileNumber-kMaxOpenFileNumber_old;
|
|
294
|
+
const std::vector<std::string>& oldList=oldManifest.pathList;
|
|
295
|
+
const std::vector<std::string>& newList=newManifest.pathList;
|
|
296
|
+
const bool oldIsDir=isDirName(oldManifest.rootPath);
|
|
297
|
+
const bool newIsDir=isDirName(newManifest.rootPath);
|
|
298
|
+
|
|
299
|
+
std::vector<hpatch_StreamPos_t> oldSizeList;
|
|
300
|
+
std::vector<hpatch_StreamPos_t> newSizeList;
|
|
301
|
+
std::vector<hpatch_TSameFilePair> dataSamePairList; //new map to same old
|
|
302
|
+
std::vector<size_t> oldRefIList;
|
|
303
|
+
std::vector<size_t> newRefIList;
|
|
304
|
+
std::vector<size_t> newExecuteList; //for linux etc
|
|
305
|
+
|
|
306
|
+
_getExecuteList(newExecuteList,listener,newList);
|
|
307
|
+
|
|
308
|
+
_out_diff_info(" get old & new's file list infos ...\n");
|
|
309
|
+
const bool isCachedHashs=(checksumPlugin!=0)&&(checksumPlugin->checksumType()==cmp_hash_type);
|
|
310
|
+
if (isCachedHashs) checkv(sizeof(cmp_hash_value_t)==checksumPlugin->checksumByteSize());
|
|
311
|
+
std::vector<cmp_hash_value_t> oldHashList;
|
|
312
|
+
std::vector<cmp_hash_value_t> newHashList;
|
|
313
|
+
getRefList(oldManifest.rootPath,newManifest.rootPath,oldList,newList,
|
|
314
|
+
oldSizeList,newSizeList,dataSamePairList,oldRefIList,newRefIList,
|
|
315
|
+
isCachedHashs,oldHashList,newHashList);
|
|
316
|
+
if (hdiffSets.isCheckNotEqual){
|
|
317
|
+
bool isEq=(oldIsDir==newIsDir)
|
|
318
|
+
&&(oldList.size()==newList.size()) //same file count
|
|
319
|
+
&&(oldSizeList==newSizeList)
|
|
320
|
+
&&oldRefIList.empty()&&newRefIList.empty(); //same file datas;
|
|
321
|
+
//same names
|
|
322
|
+
for (size_t i=0;isEq&&(i<oldList.size());++i){
|
|
323
|
+
isEq=fileName_isSame(oldList[i],oldManifest.rootPath,newList[i],newManifest.rootPath);
|
|
324
|
+
}
|
|
325
|
+
//same execute tags
|
|
326
|
+
for (size_t i=0;isEq&&(i<newExecuteList.size());++i){
|
|
327
|
+
const std::string& oldfile=oldList[newExecuteList[i]];
|
|
328
|
+
isEq=(!isDirName(oldfile))&&(listener->isExecuteFile(oldfile));
|
|
329
|
+
}
|
|
330
|
+
check(!isEq,"old & new's all datas can't be equal");
|
|
331
|
+
}
|
|
332
|
+
std::vector<hpatch_StreamPos_t> newRefSizeList;
|
|
333
|
+
CFileResHandleLimit resLimit_old(kMaxOpenFileNumber_old,oldRefIList.size());
|
|
334
|
+
CFileResHandleLimit resLimit_new(kMaxOpenFileNumber_new,newRefIList.size());
|
|
335
|
+
{
|
|
336
|
+
for (size_t i=0; i<oldRefIList.size(); ++i) {
|
|
337
|
+
size_t fi=oldRefIList[i];
|
|
338
|
+
resLimit_old.addRes(oldList[fi],oldSizeList[fi]);
|
|
339
|
+
}
|
|
340
|
+
newRefSizeList.resize(newRefIList.size());
|
|
341
|
+
for (size_t i=0; i<newRefIList.size(); ++i) {
|
|
342
|
+
size_t fi=newRefIList[i];
|
|
343
|
+
newRefSizeList[i]=newSizeList[fi];
|
|
344
|
+
resLimit_new.addRes(newList[fi],newSizeList[fi]);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
resLimit_old.open();
|
|
348
|
+
resLimit_new.open();
|
|
349
|
+
CRefStream oldRefStream;
|
|
350
|
+
CRefStream newRefStream;
|
|
351
|
+
oldRefStream.open(resLimit_old.limit.streamList,oldRefIList.size());
|
|
352
|
+
newRefStream.open(resLimit_new.limit.streamList,newRefIList.size());
|
|
353
|
+
|
|
354
|
+
//checksum
|
|
355
|
+
const size_t checksumByteSize=(checksumPlugin==0)?0:checksumPlugin->checksumByteSize();
|
|
356
|
+
//oldRefChecksum
|
|
357
|
+
CChecksumCombine oldRefChecksum(checksumPlugin,isCachedHashs);
|
|
358
|
+
if (isCachedHashs){
|
|
359
|
+
for (size_t i=0; i<oldRefIList.size(); ++i) {
|
|
360
|
+
size_t fi=oldRefIList[i];
|
|
361
|
+
oldRefChecksum.combine(oldHashList[fi],oldSizeList[fi]);
|
|
362
|
+
}
|
|
363
|
+
}else{
|
|
364
|
+
oldRefChecksum.append(oldRefStream.stream);
|
|
365
|
+
}
|
|
366
|
+
oldRefChecksum.appendEnd();
|
|
367
|
+
//newRefChecksum
|
|
368
|
+
CChecksumCombine newRefChecksum(checksumPlugin,isCachedHashs);
|
|
369
|
+
if (isCachedHashs){
|
|
370
|
+
for (size_t i=0; i<newRefIList.size(); ++i) {
|
|
371
|
+
size_t fi=newRefIList[i];
|
|
372
|
+
newRefChecksum.combine(newHashList[fi],newSizeList[fi]);
|
|
373
|
+
}
|
|
374
|
+
}else{
|
|
375
|
+
newRefChecksum.append(newRefStream.stream);
|
|
376
|
+
}
|
|
377
|
+
newRefChecksum.appendEnd();
|
|
378
|
+
//sameFileChecksum
|
|
379
|
+
CChecksumCombine sameFileChecksum(checksumPlugin,isCachedHashs);
|
|
380
|
+
hpatch_StreamPos_t sameFileSize=0;
|
|
381
|
+
for (size_t i=0; i<dataSamePairList.size(); ++i) {
|
|
382
|
+
size_t newi=dataSamePairList[i].newIndex;
|
|
383
|
+
if (isCachedHashs){
|
|
384
|
+
hpatch_StreamPos_t fileSize=newSizeList[newi];
|
|
385
|
+
sameFileChecksum.combine(newHashList[newi],fileSize);
|
|
386
|
+
sameFileSize+=fileSize;
|
|
387
|
+
}else{
|
|
388
|
+
CFileStreamInput file(newList[newi]);
|
|
389
|
+
assert(file.base.streamSize==newSizeList[newi]);
|
|
390
|
+
sameFileChecksum.append(&file.base);
|
|
391
|
+
sameFileSize+=file.base.streamSize;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
sameFileChecksum.appendEnd();
|
|
395
|
+
|
|
396
|
+
listener->diffRefInfo(oldList.size(),newList.size(),dataSamePairList.size(),
|
|
397
|
+
sameFileSize,oldRefIList.size(),newRefIList.size(),
|
|
398
|
+
oldRefStream.stream->streamSize,newRefStream.stream->streamSize);
|
|
399
|
+
|
|
400
|
+
//serialize headData
|
|
401
|
+
std::vector<TByte> headData;
|
|
402
|
+
size_t oldPathSumSize=pushNameList(headData,oldManifest.rootPath,oldList);
|
|
403
|
+
size_t newPathSumSize=pushNameList(headData,newManifest.rootPath,newList);
|
|
404
|
+
packIncList(headData,oldRefIList);
|
|
405
|
+
packIncList(headData,newRefIList);
|
|
406
|
+
packList(headData,newRefSizeList);
|
|
407
|
+
packSamePairList(headData,dataSamePairList);
|
|
408
|
+
packIncList(headData,newExecuteList);
|
|
409
|
+
std::vector<TByte> privateReservedData;//now empty
|
|
410
|
+
headData.insert(headData.end(),privateReservedData.begin(),privateReservedData.end());
|
|
411
|
+
std::vector<TByte> headCode;
|
|
412
|
+
if (compressPlugin){
|
|
413
|
+
headCode.resize((size_t)compressPlugin->maxCompressedSize(headData.size()));
|
|
414
|
+
size_t codeSize=hdiff_compress_mem(compressPlugin,headCode.data(),headCode.data()+headCode.size(),
|
|
415
|
+
headData.data(),headData.data()+headData.size());
|
|
416
|
+
if ((0<codeSize)&&(codeSize<headData.size()))
|
|
417
|
+
headCode.resize(codeSize);//compress ok
|
|
418
|
+
else
|
|
419
|
+
swapClear(headCode); //compress error or give up
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
//serialize dir diff data
|
|
423
|
+
std::vector<TByte> out_data;
|
|
424
|
+
pushTypes(out_data,kDirDiffVersionType,compressPlugin?compressPlugin->compressType():0,checksumPlugin);
|
|
425
|
+
//head info
|
|
426
|
+
packUInt(out_data,oldIsDir?1:0);
|
|
427
|
+
packUInt(out_data,newIsDir?1:0);
|
|
428
|
+
packUInt(out_data,oldList.size());
|
|
429
|
+
packUInt(out_data,oldPathSumSize);
|
|
430
|
+
packUInt(out_data,newList.size());
|
|
431
|
+
packUInt(out_data,newPathSumSize);
|
|
432
|
+
packUInt(out_data,oldRefIList.size()); swapClear(oldRefIList);
|
|
433
|
+
packUInt(out_data,oldRefStream.stream->streamSize); //same as hdiffz::oldDataSize
|
|
434
|
+
packUInt(out_data,newRefIList.size()); swapClear(newRefIList);
|
|
435
|
+
packUInt(out_data,newRefStream.stream->streamSize); //same as hdiffz::newDataSize
|
|
436
|
+
packUInt(out_data,dataSamePairList.size()); swapClear(dataSamePairList);
|
|
437
|
+
packUInt(out_data,sameFileSize);
|
|
438
|
+
packUInt(out_data,newExecuteList.size()); swapClear(newExecuteList);
|
|
439
|
+
packUInt(out_data,privateReservedData.size()); swapClear(privateReservedData);
|
|
440
|
+
std::vector<TByte> privateExternData;//now empty
|
|
441
|
+
//privateExtern size
|
|
442
|
+
packUInt(out_data,privateExternData.size());
|
|
443
|
+
//externData size
|
|
444
|
+
std::vector<TByte> externData;
|
|
445
|
+
listener->externData(externData);
|
|
446
|
+
packUInt(out_data,externData.size());
|
|
447
|
+
//headData size
|
|
448
|
+
packUInt(out_data,headData.size());
|
|
449
|
+
packUInt(out_data,headCode.size());
|
|
450
|
+
//other checksum info
|
|
451
|
+
packUInt(out_data,checksumByteSize);
|
|
452
|
+
if (checksumByteSize>0){
|
|
453
|
+
pushBack(out_data,oldRefChecksum.checksum);
|
|
454
|
+
pushBack(out_data,newRefChecksum.checksum);
|
|
455
|
+
pushBack(out_data,sameFileChecksum.checksum);
|
|
456
|
+
}
|
|
457
|
+
//checksum(dirdiff)
|
|
458
|
+
CChecksum diffChecksum(checksumPlugin);
|
|
459
|
+
TPlaceholder diffChecksumPlaceholder(out_data.size(),out_data.size()+checksumByteSize);
|
|
460
|
+
if (checksumByteSize>0){
|
|
461
|
+
diffChecksum.append(out_data);
|
|
462
|
+
out_data.insert(out_data.end(),checksumByteSize,0);//placeholder
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
//begin write
|
|
466
|
+
hpatch_StreamPos_t writeToPos=0;
|
|
467
|
+
#define _pushv(v) { if ((checksumByteSize>0)&&(writeToPos>=diffChecksumPlaceholder.pos_end))\
|
|
468
|
+
diffChecksum.append(v); \
|
|
469
|
+
check(outDiffStream->write(outDiffStream,writeToPos,v.data(),v.data()+v.size()), \
|
|
470
|
+
"write diff data " #v " error!"); \
|
|
471
|
+
writeToPos+=v.size(); swapClear(v); }
|
|
472
|
+
_pushv(out_data);
|
|
473
|
+
if (headCode.size()>0){
|
|
474
|
+
_pushv(headCode);
|
|
475
|
+
}else{
|
|
476
|
+
_pushv(headData);
|
|
477
|
+
}
|
|
478
|
+
//privateExtern data
|
|
479
|
+
_pushv(privateExternData);
|
|
480
|
+
//externData
|
|
481
|
+
listener->externDataPosInDiffStream(writeToPos,externData.size());
|
|
482
|
+
_pushv(externData);
|
|
483
|
+
|
|
484
|
+
//diff data
|
|
485
|
+
listener->runHDiffBegin();
|
|
486
|
+
hpatch_StreamPos_t diffDataSize=0;
|
|
487
|
+
{
|
|
488
|
+
const hdiff_TMTSets_s mtsets={hdiffSets.threadNum,hdiffSets.threadNumSearch_s,false,false};
|
|
489
|
+
TOffsetStreamOutput ofStream(outDiffStream,writeToPos);
|
|
490
|
+
if (hdiffSets.isSingleCompressedDiff){
|
|
491
|
+
if (hdiffSets.isDiffInMem)
|
|
492
|
+
create_single_compressed_diff_block(newRefStream.stream,oldRefStream.stream,&ofStream,compressPlugin,
|
|
493
|
+
(int)hdiffSets.matchScore,hdiffSets.patchStepMemSize,hdiffSets.isUseBigCacheMatch,
|
|
494
|
+
hdiffSets.matchBlockSize,hdiffSets.threadNum,hdiffSets.threadNumSearch_s);
|
|
495
|
+
else
|
|
496
|
+
create_single_compressed_diff_stream(newRefStream.stream,oldRefStream.stream,&ofStream,
|
|
497
|
+
compressPlugin,hdiffSets.matchBlockSize,
|
|
498
|
+
hdiffSets.patchStepMemSize,&mtsets);
|
|
499
|
+
}else{
|
|
500
|
+
if (hdiffSets.isDiffInMem)
|
|
501
|
+
create_compressed_diff_block(newRefStream.stream,oldRefStream.stream,&ofStream,compressPlugin,
|
|
502
|
+
(int)hdiffSets.matchScore,hdiffSets.isUseBigCacheMatch,
|
|
503
|
+
hdiffSets.matchBlockSize,hdiffSets.threadNum,hdiffSets.threadNumSearch_s);
|
|
504
|
+
else
|
|
505
|
+
create_compressed_diff_stream(newRefStream.stream,oldRefStream.stream,&ofStream,
|
|
506
|
+
compressPlugin,hdiffSets.matchBlockSize,&mtsets);
|
|
507
|
+
}
|
|
508
|
+
diffDataSize=ofStream.outSize;
|
|
509
|
+
if (checksumByteSize>0){
|
|
510
|
+
assert(outDiffStream->read_writed!=0);
|
|
511
|
+
diffChecksum.append((const hpatch_TStreamInput*)outDiffStream,
|
|
512
|
+
writeToPos,writeToPos+diffDataSize);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
listener->runHDiffEnd(diffDataSize);
|
|
516
|
+
if (checksumByteSize>0){ //update diffChecksum
|
|
517
|
+
diffChecksum.appendEnd();
|
|
518
|
+
const std::vector<TByte>& v=diffChecksum.checksum;
|
|
519
|
+
assert(diffChecksumPlaceholder.size()==v.size());
|
|
520
|
+
check(outDiffStream->write(outDiffStream,diffChecksumPlaceholder.pos,v.data(),v.data()+v.size()),
|
|
521
|
+
"write diff data checksum error!");
|
|
522
|
+
}
|
|
523
|
+
#undef _pushv
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
#define _test(value) { if (!(value)) { LOG_ERR("DirPatch check "#value" error!\n"); return hpatch_FALSE; } }
|
|
527
|
+
|
|
528
|
+
struct CDirPatchListener:public IDirPatchListener{
|
|
529
|
+
explicit CDirPatchListener(const std::string& newRootDir,
|
|
530
|
+
const std::vector<std::string>& oldList,
|
|
531
|
+
const std::vector<std::string>& newList)
|
|
532
|
+
:_oldSet(oldList.begin(),oldList.end()),_newSet(newList.begin(),newList.end()),
|
|
533
|
+
_buf(hdiff_kFileIOBufBestSize){
|
|
534
|
+
_dirSet.insert(getParentDir(newRootDir));
|
|
535
|
+
this->listenerImport=this;
|
|
536
|
+
this->makeNewDir=_makeNewDir;
|
|
537
|
+
this->copySameFile=_copySameFile;
|
|
538
|
+
this->openNewFile=_openNewFile;
|
|
539
|
+
this->closeNewFile=_closeNewFile;
|
|
540
|
+
}
|
|
541
|
+
bool isNewOk()const{ return _newSet.empty(); }
|
|
542
|
+
std::set<std::string> _oldSet;
|
|
543
|
+
std::set<std::string> _newSet;
|
|
544
|
+
std::set<std::string> _dirSet;
|
|
545
|
+
static inline std::string getParentDir(const std::string& _path){
|
|
546
|
+
std::string path(_path);
|
|
547
|
+
if (path.empty()) return path;
|
|
548
|
+
if (path[path.size()-1]==kPatch_dirSeparator)
|
|
549
|
+
path.resize(path.size()-1);
|
|
550
|
+
while ((!path.empty())&&(path[path.size()-1]!=kPatch_dirSeparator)) {
|
|
551
|
+
path.resize(path.size()-1);
|
|
552
|
+
}
|
|
553
|
+
return path;
|
|
554
|
+
}
|
|
555
|
+
inline bool isParentDirExists(const std::string& _path)const{
|
|
556
|
+
std::string path=getParentDir(_path);
|
|
557
|
+
if (path.empty()) return true;
|
|
558
|
+
return _dirSet.find(path)!=_dirSet.end();
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
static hpatch_BOOL _makeNewDir(IDirPatchListener* listener,const char* _newDir){
|
|
562
|
+
CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
|
|
563
|
+
std::string newDir(_newDir);
|
|
564
|
+
_test(self->isParentDirExists(newDir));
|
|
565
|
+
self->_dirSet.insert(newDir);
|
|
566
|
+
self->_newSet.erase(newDir);
|
|
567
|
+
return hpatch_TRUE;
|
|
568
|
+
}
|
|
569
|
+
static hpatch_BOOL _copySameFile(IDirPatchListener* listener,const char* _oldFileName,
|
|
570
|
+
const char* _newFileName,hpatch_ICopyDataListener* copyListener){
|
|
571
|
+
CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
|
|
572
|
+
std::string oldFileName(_oldFileName);
|
|
573
|
+
std::string newFileName(_newFileName);
|
|
574
|
+
_test(self->isParentDirExists(newFileName));
|
|
575
|
+
_test(self->_oldSet.find(oldFileName)!=self->_oldSet.end());
|
|
576
|
+
_test(self->_newSet.find(newFileName)!=self->_newSet.end());
|
|
577
|
+
_test(fileData_isSame(oldFileName,newFileName,copyListener));
|
|
578
|
+
self->_newSet.erase(newFileName);
|
|
579
|
+
return hpatch_TRUE;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
struct _TCheckOutNewDataStream:public hpatch_TStreamOutput{
|
|
583
|
+
explicit _TCheckOutNewDataStream(const char* _newFileName,
|
|
584
|
+
TByte* _buf,size_t _bufSize)
|
|
585
|
+
:newData(0),writedLen(0),buf(_buf),bufSize(_bufSize),newFileName(_newFileName){
|
|
586
|
+
hpatch_TFileStreamInput_init(&newFile);
|
|
587
|
+
if (hpatch_TFileStreamInput_open(&newFile,newFileName.c_str())){
|
|
588
|
+
newData=&newFile.base;
|
|
589
|
+
streamSize=newData->streamSize;
|
|
590
|
+
}else{
|
|
591
|
+
streamSize=hpatch_kNullStreamPos;
|
|
592
|
+
}
|
|
593
|
+
streamImport=this;
|
|
594
|
+
read_writed=0;
|
|
595
|
+
write=_write_check;
|
|
596
|
+
}
|
|
597
|
+
~_TCheckOutNewDataStream(){ hpatch_TFileStreamInput_close(&newFile); }
|
|
598
|
+
static hpatch_BOOL _write_check(const hpatch_TStreamOutput* stream,hpatch_StreamPos_t writeToPos,
|
|
599
|
+
const unsigned char* data,const unsigned char* data_end){
|
|
600
|
+
_TCheckOutNewDataStream* self=(_TCheckOutNewDataStream*)stream->streamImport;
|
|
601
|
+
_test(self->isOpenOk());
|
|
602
|
+
_test(self->writedLen==writeToPos);
|
|
603
|
+
self->writedLen+=(size_t)(data_end-data);
|
|
604
|
+
_test(self->writedLen<=self->streamSize);
|
|
605
|
+
|
|
606
|
+
hpatch_StreamPos_t readPos=writeToPos;
|
|
607
|
+
while (data<data_end) {
|
|
608
|
+
size_t readLen=(size_t)(data_end-data);
|
|
609
|
+
if (readLen>self->bufSize) readLen=self->bufSize;
|
|
610
|
+
_test(self->newData->read(self->newData,readPos,self->buf,self->buf+readLen));
|
|
611
|
+
_test(0==memcmp(data,self->buf,readLen));
|
|
612
|
+
data+=readLen;
|
|
613
|
+
readPos+=readLen;
|
|
614
|
+
}
|
|
615
|
+
return hpatch_TRUE;
|
|
616
|
+
}
|
|
617
|
+
bool isOpenOk()const{ return (newData!=0); };
|
|
618
|
+
bool isWriteOk()const{ return (!newFile.fileError)&&(writedLen==newData->streamSize); }
|
|
619
|
+
const hpatch_TStreamInput* newData;
|
|
620
|
+
hpatch_StreamPos_t writedLen;
|
|
621
|
+
TByte* buf;
|
|
622
|
+
size_t bufSize;
|
|
623
|
+
hpatch_TFileStreamInput newFile;
|
|
624
|
+
std::string newFileName;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
TAutoMem _buf;
|
|
628
|
+
static hpatch_BOOL _openNewFile(IDirPatchListener* listener,hpatch_TFileStreamOutput* out_curNewFile,
|
|
629
|
+
const char* newFileName,hpatch_StreamPos_t newFileSize){
|
|
630
|
+
CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
|
|
631
|
+
_TCheckOutNewDataStream* newFile=new _TCheckOutNewDataStream(newFileName,self->_buf.data(),
|
|
632
|
+
self->_buf.size());
|
|
633
|
+
out_curNewFile->base=*newFile;
|
|
634
|
+
_test(newFile->isOpenOk());
|
|
635
|
+
_test(self->_newSet.find(newFile->newFileName)!=self->_newSet.end());
|
|
636
|
+
return true;
|
|
637
|
+
}
|
|
638
|
+
static hpatch_BOOL _closeNewFile(IDirPatchListener* listener,hpatch_TFileStreamOutput* curNewFile){
|
|
639
|
+
CDirPatchListener* self=(CDirPatchListener*)listener->listenerImport;
|
|
640
|
+
if (curNewFile==0) return true;
|
|
641
|
+
_TCheckOutNewDataStream* newFile=(_TCheckOutNewDataStream*)curNewFile->base.streamImport;
|
|
642
|
+
if (newFile==0) return true;
|
|
643
|
+
_test(newFile->isWriteOk());
|
|
644
|
+
_test(self->_newSet.find(newFile->newFileName)!=self->_newSet.end());
|
|
645
|
+
self->_newSet.erase(newFile->newFileName);
|
|
646
|
+
delete newFile;
|
|
647
|
+
return true;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
struct CDirPatcher:public TDirPatcher{
|
|
652
|
+
CDirPatcher(){ TDirPatcher_init(this); }
|
|
653
|
+
~CDirPatcher() { TDirPatcher_close(this); }
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
bool check_dirdiff(IDirDiffListener* listener,const TManifest& oldManifest,const TManifest& newManifest,
|
|
657
|
+
const hpatch_TStreamInput* testDiffData,hpatch_TDecompress* decompressPlugin,
|
|
658
|
+
hpatch_TChecksum* checksumPlugin,size_t kMaxOpenFileNumber,size_t threadNum){
|
|
659
|
+
bool result=true;
|
|
660
|
+
assert(kMaxOpenFileNumber>=kMaxOpenFileNumber_limit_min);
|
|
661
|
+
const std::vector<std::string>& oldList=oldManifest.pathList;
|
|
662
|
+
const std::vector<std::string>& newList=newManifest.pathList;
|
|
663
|
+
|
|
664
|
+
CDirPatchListener patchListener(newManifest.rootPath,oldList,newList);
|
|
665
|
+
CDirPatcher dirPatcher;
|
|
666
|
+
const TDirDiffInfo* dirDiffInfo=0;
|
|
667
|
+
TDirPatchChecksumSet checksumSet={checksumPlugin,hpatch_TRUE,hpatch_TRUE,hpatch_TRUE,hpatch_TRUE};
|
|
668
|
+
|
|
669
|
+
const hpatch_TStreamInput* oldStream=0;
|
|
670
|
+
const hpatch_TStreamOutput* newStream=0;
|
|
671
|
+
{//dir diff info
|
|
672
|
+
hpatch_TPathType oldType;
|
|
673
|
+
if (oldManifest.rootPath.empty()){ // isOldPathInputEmpty
|
|
674
|
+
oldType=kPathType_file; //as empty file
|
|
675
|
+
}else{
|
|
676
|
+
_test(hpatch_getPathStat(oldManifest.rootPath.c_str(),&oldType,0));
|
|
677
|
+
_test(oldType!=kPathType_notExist);
|
|
678
|
+
}
|
|
679
|
+
_test(TDirPatcher_open(&dirPatcher,testDiffData,&dirDiffInfo));
|
|
680
|
+
_test(dirDiffInfo->isDirDiff);
|
|
681
|
+
if (dirDiffInfo->oldPathIsDir){
|
|
682
|
+
_test(kPathType_dir==oldType);
|
|
683
|
+
}else{
|
|
684
|
+
_test(kPathType_file==oldType);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
//mem
|
|
689
|
+
size_t temp_cache_size=hdiff_kFileIOBufBestSize*(1+16);
|
|
690
|
+
if (dirDiffInfo->isSingleCompressedDiff)
|
|
691
|
+
temp_cache_size+=(size_t)dirDiffInfo->sdiffInfo.stepMemSize;
|
|
692
|
+
TAutoMem p_temp_mem(temp_cache_size);
|
|
693
|
+
TByte* temp_cache=p_temp_mem.data();
|
|
694
|
+
|
|
695
|
+
if (checksumPlugin)
|
|
696
|
+
_test(TDirPatcher_checksum(&dirPatcher,&checksumSet,temp_cache,temp_cache+temp_cache_size));
|
|
697
|
+
_test(TDirPatcher_loadDirData(&dirPatcher,decompressPlugin,
|
|
698
|
+
oldManifest.rootPath.c_str(),newManifest.rootPath.c_str()));
|
|
699
|
+
_test(TDirPatcher_openOldRefAsStream(&dirPatcher,kMaxOpenFileNumber,&oldStream));
|
|
700
|
+
_test(TDirPatcher_openNewDirAsStream(&dirPatcher,&patchListener,&newStream));
|
|
701
|
+
_test(TDirPatcher_patch(&dirPatcher,newStream,oldStream,temp_cache,temp_cache+temp_cache_size,threadNum));
|
|
702
|
+
_test(TDirPatcher_closeNewDirStream(&dirPatcher));
|
|
703
|
+
_test(TDirPatcher_closeOldRefStream(&dirPatcher));
|
|
704
|
+
_test(patchListener.isNewOk());
|
|
705
|
+
return result;
|
|
706
|
+
}
|
|
707
|
+
#undef _test
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
#define _check(value) { if (!(value)) { LOG_ERR("dirOldDataChecksum check "#value" error!\n"); \
|
|
711
|
+
result= hpatch_FALSE; goto clear; } }
|
|
712
|
+
hpatch_BOOL check_dirOldDataChecksum(const char* oldPath,hpatch_TStreamInput* diffData,
|
|
713
|
+
hpatch_TDecompress* decompressPlugin,hpatch_TChecksum* checksumPlugin){
|
|
714
|
+
hpatch_BOOL result=hpatch_TRUE;
|
|
715
|
+
hpatch_BOOL isAppendContinue=hpatch_FALSE;
|
|
716
|
+
hpatch_StreamPos_t readPos=0;
|
|
717
|
+
const char* savedCompressType=0;
|
|
718
|
+
TDirOldDataChecksum oldCheck;
|
|
719
|
+
TDirOldDataChecksum_init(&oldCheck);
|
|
720
|
+
while (hpatch_TRUE) {
|
|
721
|
+
TByte buf[1024*2];
|
|
722
|
+
size_t dataLen=sizeof(buf);
|
|
723
|
+
if (readPos+dataLen>diffData->streamSize)
|
|
724
|
+
dataLen=(size_t)(diffData->streamSize-readPos);
|
|
725
|
+
if (dataLen>0){
|
|
726
|
+
_check(diffData->read(diffData,readPos,buf,buf+dataLen));
|
|
727
|
+
}
|
|
728
|
+
readPos+=dataLen;
|
|
729
|
+
_check(TDirOldDataChecksum_append(&oldCheck,buf,buf+dataLen,&isAppendContinue));
|
|
730
|
+
if (!isAppendContinue)
|
|
731
|
+
break;
|
|
732
|
+
else
|
|
733
|
+
_check(dataLen>0);
|
|
734
|
+
}
|
|
735
|
+
_check(0==strcmp((checksumPlugin?checksumPlugin->checksumType():""),
|
|
736
|
+
TDirOldDataChecksum_getChecksumType(&oldCheck)));
|
|
737
|
+
savedCompressType=TDirOldDataChecksum_getCompressType(&oldCheck);
|
|
738
|
+
_check(((decompressPlugin==0)&&(strlen(savedCompressType)==0))||
|
|
739
|
+
(decompressPlugin&&decompressPlugin->is_can_open(savedCompressType)));
|
|
740
|
+
_check(TDirOldDataChecksum_checksum(&oldCheck,decompressPlugin,checksumPlugin,oldPath));
|
|
741
|
+
clear:
|
|
742
|
+
if (!TDirOldDataChecksum_close(&oldCheck)) result=hpatch_FALSE;
|
|
743
|
+
return result;
|
|
744
|
+
}
|
|
745
|
+
#undef _check
|
|
746
|
+
|
|
747
|
+
void resave_dirdiff(const hpatch_TStreamInput* in_diff,hpatch_TDecompress* decompressPlugin,
|
|
748
|
+
const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
|
|
749
|
+
hpatch_TChecksum* checksumPlugin){
|
|
750
|
+
_TDirDiffHead head;
|
|
751
|
+
TDirDiffInfo diffInfo;
|
|
752
|
+
assert(in_diff!=0);
|
|
753
|
+
assert(in_diff->read!=0);
|
|
754
|
+
assert(out_diff!=0);
|
|
755
|
+
assert(out_diff->write!=0);
|
|
756
|
+
if (checksumPlugin){
|
|
757
|
+
check((out_diff->read_writed!=0),
|
|
758
|
+
"for update checksum, out_diff->read_writed can't null error!");
|
|
759
|
+
}
|
|
760
|
+
{//read head
|
|
761
|
+
check(read_dirdiff_head(&diffInfo,&head,in_diff),
|
|
762
|
+
"resave_dirdiff() read_dirdiff_head() error!");
|
|
763
|
+
assert(0==strcmp(diffInfo.checksumType,(checksumPlugin?checksumPlugin->checksumType():"")));
|
|
764
|
+
assert(diffInfo.checksumByteSize==(checksumPlugin?checksumPlugin->checksumByteSize():0));
|
|
765
|
+
int compressedCount=diffInfo.hdiffInfo.compressedCount+((head.headDataCompressedSize)?1:0);
|
|
766
|
+
check((decompressPlugin!=0)||(compressedCount<=0),
|
|
767
|
+
"resave_dirdiff() decompressPlugin null error!");
|
|
768
|
+
if ((decompressPlugin)&&(compressedCount>0)){
|
|
769
|
+
check(decompressPlugin->is_can_open(diffInfo.hdiffInfo.compressType),
|
|
770
|
+
"resave_dirdiff() decompressPlugin cannot open compressed data error!");
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
const size_t checksumByteSize=diffInfo.checksumByteSize;
|
|
774
|
+
TPlaceholder diffChecksumPlaceholder(0,0);
|
|
775
|
+
hpatch_StreamPos_t writeToPos=0;
|
|
776
|
+
{//save head
|
|
777
|
+
TDiffStream outDiff(out_diff);
|
|
778
|
+
{//type
|
|
779
|
+
std::vector<TByte> out_type;
|
|
780
|
+
pushTypes(out_type,kDirDiffVersionType,compressPlugin?compressPlugin->compressType():0,checksumPlugin);
|
|
781
|
+
outDiff.pushBack(out_type.data(),out_type.size());
|
|
782
|
+
}
|
|
783
|
+
{//copy other
|
|
784
|
+
TStreamClip clip(in_diff,head.typesEndPos,head.compressSizeBeginPos);
|
|
785
|
+
outDiff.pushStream(&clip);
|
|
786
|
+
}
|
|
787
|
+
//headDataSize
|
|
788
|
+
outDiff.packUInt(head.headDataSize);
|
|
789
|
+
TPlaceholder compress_headData_sizePos=
|
|
790
|
+
outDiff.packUInt_pos(compressPlugin?head.headDataSize:0);//headDataCompressedSize
|
|
791
|
+
{//resave checksum
|
|
792
|
+
outDiff.packUInt(checksumByteSize);
|
|
793
|
+
if (checksumByteSize>0){
|
|
794
|
+
diffChecksumPlaceholder.pos=outDiff.getWritedPos()+checksumByteSize*3;
|
|
795
|
+
diffChecksumPlaceholder.pos_end=diffChecksumPlaceholder.pos+checksumByteSize;
|
|
796
|
+
TStreamClip clip(in_diff,diffInfo.checksumOffset,
|
|
797
|
+
diffInfo.checksumOffset+checksumByteSize*4);
|
|
798
|
+
outDiff.pushStream(&clip);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
{//resave headData
|
|
802
|
+
bool isCompressed=(head.headDataCompressedSize>0);
|
|
803
|
+
hpatch_StreamPos_t bufSize=isCompressed?head.headDataCompressedSize:head.headDataSize;
|
|
804
|
+
TStreamClip clip(in_diff,head.headDataOffset,head.headDataOffset+bufSize,
|
|
805
|
+
(isCompressed?decompressPlugin:0),head.headDataSize);
|
|
806
|
+
outDiff.pushStream(&clip,compressPlugin,compress_headData_sizePos);
|
|
807
|
+
}
|
|
808
|
+
if (head.privateExternDataSize>0){//resave privateExternData
|
|
809
|
+
TStreamClip clip(in_diff,head.privateExternDataOffset,
|
|
810
|
+
head.privateExternDataOffset+head.privateExternDataSize);
|
|
811
|
+
outDiff.pushStream(&clip);
|
|
812
|
+
}
|
|
813
|
+
if (diffInfo.externDataSize>0){//resave externData
|
|
814
|
+
TStreamClip clip(in_diff,diffInfo.externDataOffset,
|
|
815
|
+
diffInfo.externDataOffset+diffInfo.externDataSize);
|
|
816
|
+
outDiff.pushStream(&clip);
|
|
817
|
+
}
|
|
818
|
+
writeToPos=outDiff.getWritedPos();
|
|
819
|
+
}
|
|
820
|
+
{//resave hdiffData
|
|
821
|
+
TOffsetStreamOutput ofStream(out_diff,writeToPos);
|
|
822
|
+
TStreamClip clip(in_diff,head.hdiffDataOffset,head.hdiffDataOffset+head.hdiffDataSize);
|
|
823
|
+
|
|
824
|
+
hpatch_singleCompressedDiffInfo singleDiffInfo;
|
|
825
|
+
hpatch_BOOL isSingleStreamDiff=getSingleCompressedDiffInfo(&singleDiffInfo,&clip,0);
|
|
826
|
+
if (isSingleStreamDiff){
|
|
827
|
+
resave_single_compressed_diff(&clip,decompressPlugin,&ofStream,compressPlugin,&singleDiffInfo);
|
|
828
|
+
}else{
|
|
829
|
+
resave_compressed_diff(&clip,decompressPlugin,&ofStream,compressPlugin);
|
|
830
|
+
}
|
|
831
|
+
writeToPos+=ofStream.outSize;
|
|
832
|
+
}
|
|
833
|
+
if (checksumByteSize>0){// update dirdiff checksum
|
|
834
|
+
CChecksum diffChecksum(checksumPlugin);
|
|
835
|
+
assert(out_diff->read_writed!=0);
|
|
836
|
+
diffChecksum.append((const hpatch_TStreamInput*)out_diff,0,diffChecksumPlaceholder.pos);
|
|
837
|
+
diffChecksum.append((const hpatch_TStreamInput*)out_diff,diffChecksumPlaceholder.pos_end,writeToPos);
|
|
838
|
+
diffChecksum.appendEnd();
|
|
839
|
+
const std::vector<TByte>& v=diffChecksum.checksum;
|
|
840
|
+
assert(diffChecksumPlaceholder.size()==v.size());
|
|
841
|
+
check(out_diff->write(out_diff,diffChecksumPlaceholder.pos,v.data(),v.data()+v.size()),
|
|
842
|
+
"write diff data checksum error!");
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
#endif
|