react-native-update 10.34.2 → 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 +4 -4
- 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,954 @@
|
|
|
1
|
+
//stream_serialize.cpp
|
|
2
|
+
/*
|
|
3
|
+
The MIT License (MIT)
|
|
4
|
+
Copyright (c) 2012-2017 HouSisong
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person
|
|
7
|
+
obtaining a copy of this software and associated documentation
|
|
8
|
+
files (the "Software"), to deal in the Software without
|
|
9
|
+
restriction, including without limitation the rights to use,
|
|
10
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the
|
|
12
|
+
Software is furnished to do so, subject to the following
|
|
13
|
+
conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be
|
|
16
|
+
included in all copies of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
20
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
22
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
23
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
24
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
25
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
#include "stream_serialize.h"
|
|
28
|
+
#include <string.h> //memcpy
|
|
29
|
+
#include <stdexcept> //std::runtime_error
|
|
30
|
+
#include "../../diff.h" //for stream type
|
|
31
|
+
#include <algorithm>
|
|
32
|
+
|
|
33
|
+
#define checki(value,info) { if (!(value)) { throw std::runtime_error(info); } }
|
|
34
|
+
#define check(value) checki(value,"check "#value" error!")
|
|
35
|
+
#define kSubDiffCacheSize hdiff_kFileIOBufBestSize
|
|
36
|
+
|
|
37
|
+
namespace hdiff_private{
|
|
38
|
+
|
|
39
|
+
struct TCompressedStream:public hpatch_TStreamOutput{
|
|
40
|
+
TCompressedStream(const hpatch_TStreamOutput* _out_code,
|
|
41
|
+
hpatch_StreamPos_t _writePos,hpatch_StreamPos_t _kLimitOutCodeSize);
|
|
42
|
+
inline bool is_overLimit()const { return _is_overLimit; }
|
|
43
|
+
private:
|
|
44
|
+
const hpatch_TStreamOutput* out_code;
|
|
45
|
+
hpatch_StreamPos_t out_pos;
|
|
46
|
+
hpatch_StreamPos_t out_posLimitEnd;
|
|
47
|
+
hpatch_StreamPos_t _writeToPos_back;
|
|
48
|
+
bool _is_overLimit;
|
|
49
|
+
static hpatch_BOOL _write_code(const hpatch_TStreamOutput* stream,hpatch_StreamPos_t writeToPos,
|
|
50
|
+
const unsigned char* data,const unsigned char* data_end);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
TCompressedStream::TCompressedStream(const hpatch_TStreamOutput* _out_code,
|
|
54
|
+
hpatch_StreamPos_t _writePos,hpatch_StreamPos_t _kLimitOutCodeSize)
|
|
55
|
+
:out_code(_out_code),out_pos(_writePos),out_posLimitEnd(_writePos+_kLimitOutCodeSize),
|
|
56
|
+
_writeToPos_back(0),_is_overLimit(false){
|
|
57
|
+
this->streamImport=this;
|
|
58
|
+
this->streamSize=0;
|
|
59
|
+
this->read_writed=0;
|
|
60
|
+
this->write=_write_code;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
hpatch_BOOL TCompressedStream::_write_code(const hpatch_TStreamOutput* stream,hpatch_StreamPos_t writeToPos,
|
|
64
|
+
const unsigned char* data,const unsigned char* data_end){
|
|
65
|
+
assert(data<data_end);
|
|
66
|
+
TCompressedStream* self=(TCompressedStream*)stream->streamImport;
|
|
67
|
+
checki(self->_writeToPos_back==writeToPos,"TCompressedStream::write() writeToPos error!");
|
|
68
|
+
size_t dataLen=(size_t)(data_end-data);
|
|
69
|
+
self->_writeToPos_back=writeToPos+dataLen;
|
|
70
|
+
|
|
71
|
+
if ((self->_is_overLimit)||(self->out_pos+dataLen>self->out_posLimitEnd)){
|
|
72
|
+
self->_is_overLimit=true;
|
|
73
|
+
}else{
|
|
74
|
+
if (!self->out_code->write(self->out_code,self->out_pos,data,data_end)) return hpatch_FALSE;
|
|
75
|
+
self->out_pos+=dataLen;
|
|
76
|
+
}
|
|
77
|
+
return hpatch_TRUE;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
TCoversStream::TCoversStream(const TCovers& _covers,hpatch_StreamPos_t cover_buf_size)
|
|
82
|
+
:covers(_covers),curCodePos(0),curCodePos_end(0),
|
|
83
|
+
readedCoverCount(0),lastOldEnd(0),lastNewEnd(0),_readFromPos_back(0){
|
|
84
|
+
assert(kCodeBufSize>=hpatch_kMaxPackedUIntBytes*3);
|
|
85
|
+
_code_mem.realloc(kCodeBufSize);
|
|
86
|
+
this->streamImport=this;
|
|
87
|
+
this->streamSize=cover_buf_size;
|
|
88
|
+
this->read=_read;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
TCoversStream::~TCoversStream(){
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#define __private_packCover(_TUInt,packWithTag,pack,dst,dst_end,cover,lastOldEnd,lastNewEnd){ \
|
|
95
|
+
if (cover.oldPos>=lastOldEnd) /*save inc_oldPos*/ \
|
|
96
|
+
packWithTag(dst,dst_end,(_TUInt)(cover.oldPos-lastOldEnd), 0, 1); \
|
|
97
|
+
else \
|
|
98
|
+
packWithTag(dst,dst_end,(_TUInt)(lastOldEnd-cover.oldPos), 1, 1);/*sub safe*/ \
|
|
99
|
+
pack(dst,dst_end,(_TUInt)(cover.newPos-lastNewEnd)); /*save inc_newPos*/ \
|
|
100
|
+
pack(dst,dst_end,(_TUInt)cover.length); \
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
hpatch_BOOL TCoversStream::_read(const hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
104
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
105
|
+
TCoversStream* self=(TCoversStream*)stream->streamImport;
|
|
106
|
+
if (readFromPos==0){
|
|
107
|
+
self->curCodePos=0;
|
|
108
|
+
self->curCodePos_end=0;
|
|
109
|
+
self->lastOldEnd=0;
|
|
110
|
+
self->lastNewEnd=0;
|
|
111
|
+
self->readedCoverCount=0;
|
|
112
|
+
}else{
|
|
113
|
+
checki(self->_readFromPos_back==readFromPos,"TCoversStream::read() readFromPos error!");
|
|
114
|
+
}
|
|
115
|
+
self->_readFromPos_back=readFromPos+(size_t)(out_data_end-out_data);
|
|
116
|
+
|
|
117
|
+
size_t n=self->covers.coverCount();
|
|
118
|
+
while (out_data<out_data_end) {
|
|
119
|
+
size_t curLen=self->curCodePos_end-self->curCodePos;
|
|
120
|
+
if (curLen>0){
|
|
121
|
+
size_t readLen=(out_data_end-out_data);
|
|
122
|
+
if (readLen>curLen) readLen=curLen;
|
|
123
|
+
const unsigned char* pcode=self->_code_mem.data()+self->curCodePos;
|
|
124
|
+
memcpy(out_data,pcode,readLen);
|
|
125
|
+
out_data+=readLen;
|
|
126
|
+
self->curCodePos+=readLen;
|
|
127
|
+
}else{
|
|
128
|
+
size_t cur_index=self->readedCoverCount;
|
|
129
|
+
if (cur_index>=n) return hpatch_FALSE; //error
|
|
130
|
+
unsigned char* pcode_cur=self->_code_mem.data();
|
|
131
|
+
unsigned char* pcode_end=pcode_cur+kCodeBufSize;
|
|
132
|
+
for (;((size_t)(pcode_end-pcode_cur)>=hpatch_kMaxPackedUIntBytes*3)
|
|
133
|
+
&&(cur_index<n);++cur_index) {
|
|
134
|
+
TCover cover;
|
|
135
|
+
self->covers.covers(cur_index,&cover);
|
|
136
|
+
__private_packCover(hpatch_StreamPos_t,hpatch_packUIntWithTag,hpatch_packUInt,
|
|
137
|
+
&pcode_cur,pcode_end,cover,self->lastOldEnd,self->lastNewEnd);
|
|
138
|
+
self->lastOldEnd=cover.oldPos+cover.length;//! +length
|
|
139
|
+
self->lastNewEnd=cover.newPos+cover.length;
|
|
140
|
+
}
|
|
141
|
+
self->readedCoverCount=cur_index;
|
|
142
|
+
self->curCodePos=0;
|
|
143
|
+
self->curCodePos_end=pcode_cur-self->_code_mem.data();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return hpatch_TRUE;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
inline static void _packUIntWithTag_size(hpatch_StreamPos_t* curSize,int _,
|
|
151
|
+
hpatch_StreamPos_t uValue,int highTag,const int kTagBit){
|
|
152
|
+
*curSize+=hpatch_packUIntWithTag_size(uValue,kTagBit);
|
|
153
|
+
}
|
|
154
|
+
inline static void _packUInt_size(hpatch_StreamPos_t* curSize,int _, hpatch_StreamPos_t uValue){
|
|
155
|
+
*curSize+=hpatch_packUIntWithTag_size(uValue,0);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
hpatch_StreamPos_t TCoversStream::getDataSize(const TCovers& covers){
|
|
159
|
+
size_t n=covers.coverCount();
|
|
160
|
+
hpatch_StreamPos_t cover_buf_size=0;
|
|
161
|
+
hpatch_StreamPos_t lastOldEnd=0;
|
|
162
|
+
hpatch_StreamPos_t lastNewEnd=0;
|
|
163
|
+
for (size_t i=0; i<n; ++i) {
|
|
164
|
+
TCover cover;
|
|
165
|
+
covers.covers(i,&cover);
|
|
166
|
+
assert(cover.newPos>=lastNewEnd);
|
|
167
|
+
__private_packCover(hpatch_StreamPos_t,_packUIntWithTag_size,_packUInt_size,
|
|
168
|
+
&cover_buf_size,0,cover,lastOldEnd,lastNewEnd);
|
|
169
|
+
lastOldEnd=cover.oldPos+cover.length;//! +length
|
|
170
|
+
lastNewEnd=cover.newPos+cover.length;
|
|
171
|
+
}
|
|
172
|
+
return cover_buf_size;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
void TNewDataDiffStream::_init(hpatch_StreamPos_t newDataDiff_size){
|
|
176
|
+
curNewPos=0;
|
|
177
|
+
curNewPos_end=0;
|
|
178
|
+
lastNewEnd=0;
|
|
179
|
+
readedCoverCount=0;
|
|
180
|
+
_readFromPos_back=0;
|
|
181
|
+
_coveri=0;
|
|
182
|
+
_newDataPos=0;
|
|
183
|
+
this->streamImport=this;
|
|
184
|
+
this->streamSize=newDataDiff_size;
|
|
185
|
+
this->read=_read;
|
|
186
|
+
this->_private_reserved=0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
void TNewDataDiffStream::_initByRange(size_t coveri,hpatch_StreamPos_t newDataPos,hpatch_StreamPos_t newDataPosEnd){
|
|
190
|
+
_init(getDataSizeByRange(covers,coveri,newDataPos,newDataPosEnd));
|
|
191
|
+
_coveri=coveri;
|
|
192
|
+
_newDataPos=newDataPos;
|
|
193
|
+
|
|
194
|
+
readedCoverCount=_coveri;
|
|
195
|
+
lastNewEnd=_newDataPos;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
hpatch_BOOL TNewDataDiffStream::_read(const hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
199
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
200
|
+
TNewDataDiffStream* self=(TNewDataDiffStream*)stream->streamImport;
|
|
201
|
+
if (readFromPos==0){
|
|
202
|
+
self->curNewPos=0;
|
|
203
|
+
self->curNewPos_end=0;
|
|
204
|
+
self->readedCoverCount=self->_coveri;
|
|
205
|
+
self->lastNewEnd=self->_newDataPos;
|
|
206
|
+
}else{
|
|
207
|
+
checki(self->_readFromPos_back==readFromPos,"TNewDataDiffStream::read() readFromPos error!");
|
|
208
|
+
}
|
|
209
|
+
self->_readFromPos_back=readFromPos+(size_t)(out_data_end-out_data);
|
|
210
|
+
|
|
211
|
+
size_t n=self->covers.coverCount();
|
|
212
|
+
while (out_data<out_data_end) {
|
|
213
|
+
hpatch_StreamPos_t curLen=self->curNewPos_end-self->curNewPos;
|
|
214
|
+
if (curLen>0){
|
|
215
|
+
size_t readLen=(out_data_end-out_data);
|
|
216
|
+
if (readLen>curLen) readLen=(size_t)curLen;
|
|
217
|
+
if (!self->newData->read(self->newData,self->curNewPos,
|
|
218
|
+
out_data,out_data+readLen)) return hpatch_FALSE;
|
|
219
|
+
out_data+=readLen;
|
|
220
|
+
self->curNewPos+=readLen;
|
|
221
|
+
}else{
|
|
222
|
+
TCover curCover;
|
|
223
|
+
if (self->readedCoverCount==n){
|
|
224
|
+
if (self->lastNewEnd>=self->newData->streamSize) return hpatch_FALSE; //error;
|
|
225
|
+
curCover.newPos=self->newData->streamSize;
|
|
226
|
+
curCover.length=0;
|
|
227
|
+
curCover.oldPos=0;
|
|
228
|
+
}else{
|
|
229
|
+
self->covers.covers(self->readedCoverCount,&curCover);
|
|
230
|
+
++self->readedCoverCount;
|
|
231
|
+
}
|
|
232
|
+
assert(self->lastNewEnd<=curCover.newPos);
|
|
233
|
+
self->curNewPos=self->lastNewEnd;
|
|
234
|
+
self->curNewPos_end=curCover.newPos;
|
|
235
|
+
self->lastNewEnd=curCover.newPos+curCover.length;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return hpatch_TRUE;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
hpatch_StreamPos_t TNewDataDiffStream::getDataSizeByRange(const TCovers& covers,size_t coveri,
|
|
242
|
+
hpatch_StreamPos_t newDataPos,hpatch_StreamPos_t newDataPosEnd){
|
|
243
|
+
size_t n=covers.coverCount();
|
|
244
|
+
hpatch_StreamPos_t newDataDiff_size=0;
|
|
245
|
+
hpatch_StreamPos_t lastNewEnd=newDataPos;
|
|
246
|
+
for (size_t i=coveri;i<n;++i) {
|
|
247
|
+
TCover cover;
|
|
248
|
+
covers.covers(i,&cover);
|
|
249
|
+
assert(cover.newPos>=lastNewEnd);
|
|
250
|
+
hpatch_StreamPos_t inc=cover.newPos-lastNewEnd;
|
|
251
|
+
if (lastNewEnd+inc>=newDataPosEnd)
|
|
252
|
+
inc=newDataPosEnd-lastNewEnd;
|
|
253
|
+
newDataDiff_size+=inc;
|
|
254
|
+
if (lastNewEnd+inc==newDataPosEnd)
|
|
255
|
+
return newDataDiff_size;
|
|
256
|
+
lastNewEnd=cover.newPos+cover.length;
|
|
257
|
+
if (lastNewEnd>=newDataPosEnd)
|
|
258
|
+
return newDataDiff_size;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
assert(newDataPosEnd>=lastNewEnd);
|
|
262
|
+
hpatch_StreamPos_t inc=newDataPosEnd-lastNewEnd;
|
|
263
|
+
newDataDiff_size+=inc;
|
|
264
|
+
return newDataDiff_size;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
hpatch_StreamPos_t TNewDataDiffStream::getDataSize(const TCovers& covers,hpatch_StreamPos_t newDataSize){
|
|
268
|
+
size_t n=covers.coverCount();
|
|
269
|
+
hpatch_StreamPos_t newDataDiff_size=0;
|
|
270
|
+
hpatch_StreamPos_t lastNewEnd=0;
|
|
271
|
+
for (size_t i=0; i<n; ++i) {
|
|
272
|
+
TCover cover;
|
|
273
|
+
covers.covers(i,&cover);
|
|
274
|
+
assert(cover.newPos>=lastNewEnd);
|
|
275
|
+
newDataDiff_size+=(hpatch_StreamPos_t)(cover.newPos-lastNewEnd);
|
|
276
|
+
lastNewEnd=cover.newPos+cover.length;
|
|
277
|
+
}
|
|
278
|
+
assert(newDataSize>=lastNewEnd);
|
|
279
|
+
newDataDiff_size+=(hpatch_StreamPos_t)(newDataSize-lastNewEnd);
|
|
280
|
+
return newDataDiff_size;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
TNewDataSubDiffStream::TNewDataSubDiffStream(const hdiff_TStreamInput* _newData,const hdiff_TStreamInput* _oldData,
|
|
285
|
+
const TCovers& _covers,bool _isOnlySubCover,bool _isZeroSubDiff)
|
|
286
|
+
:newData(_newData),oldData(_oldData),covers(_covers),
|
|
287
|
+
isOnlySubCover(_isOnlySubCover),isZeroSubDiff(_isZeroSubDiff),_cache(kSubDiffCacheSize){
|
|
288
|
+
initRead();
|
|
289
|
+
streamImport=this;
|
|
290
|
+
if (isOnlySubCover){
|
|
291
|
+
streamSize=0;
|
|
292
|
+
for (size_t i=0;i<covers.coverCount();++i){
|
|
293
|
+
hpatch_TCover cover;
|
|
294
|
+
covers.covers(i,&cover);
|
|
295
|
+
streamSize+=cover.length;
|
|
296
|
+
}
|
|
297
|
+
}else{
|
|
298
|
+
streamSize=newData->streamSize;
|
|
299
|
+
}
|
|
300
|
+
read=_read;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
static const hpatch_StreamPos_t _kNullPos = hpatch_kNullStreamPos;
|
|
304
|
+
void TNewDataSubDiffStream::initRead(){
|
|
305
|
+
curReadNewPos=0;
|
|
306
|
+
curReadOldPos=_kNullPos;
|
|
307
|
+
curReadPos=0;
|
|
308
|
+
nextCoveri=0;
|
|
309
|
+
curDataLen=0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
static inline void _subData(unsigned char* dst,const unsigned char* src,size_t length){
|
|
313
|
+
while (length--)
|
|
314
|
+
(*dst++)-=*src++;
|
|
315
|
+
}
|
|
316
|
+
static void _subData(unsigned char* out_data,size_t len,
|
|
317
|
+
const hdiff_TStreamInput*oldData,hpatch_StreamPos_t oldPos,
|
|
318
|
+
unsigned char* cache,size_t cacheSize){
|
|
319
|
+
while (len){
|
|
320
|
+
size_t rlen=len;
|
|
321
|
+
if (rlen>cacheSize) rlen=cacheSize;
|
|
322
|
+
check(oldData->read(oldData,oldPos,cache,cache+rlen));
|
|
323
|
+
_subData(out_data,cache,rlen);
|
|
324
|
+
oldPos+=rlen;
|
|
325
|
+
out_data+=rlen;
|
|
326
|
+
len-=rlen;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
void TNewDataSubDiffStream::readTo(unsigned char* out_data,unsigned char* out_data_end){
|
|
330
|
+
size_t readLen=out_data_end-out_data;
|
|
331
|
+
while (readLen>0){
|
|
332
|
+
if (curDataLen==0){
|
|
333
|
+
if (nextCoveri<covers.coverCount()){
|
|
334
|
+
hpatch_TCover cover;
|
|
335
|
+
covers.covers(nextCoveri,&cover);
|
|
336
|
+
if ((size_t)cover.newPos>curReadNewPos){
|
|
337
|
+
curDataLen=(size_t)(cover.newPos-curReadNewPos);
|
|
338
|
+
curReadOldPos=_kNullPos;
|
|
339
|
+
}else{
|
|
340
|
+
assert((size_t)cover.newPos==curReadNewPos);
|
|
341
|
+
curDataLen=(size_t)cover.length;
|
|
342
|
+
curReadOldPos=cover.oldPos;
|
|
343
|
+
++nextCoveri;
|
|
344
|
+
}
|
|
345
|
+
}else{
|
|
346
|
+
curDataLen=(size_t)(streamSize-curReadNewPos);
|
|
347
|
+
curReadOldPos=_kNullPos;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if ((curReadOldPos==_kNullPos)&&isOnlySubCover){
|
|
351
|
+
curReadNewPos+=curDataLen;
|
|
352
|
+
curDataLen=0;
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
size_t len=(size_t)std::min(curDataLen,(hpatch_StreamPos_t)readLen);
|
|
357
|
+
if ((!isZeroSubDiff)&&(curReadOldPos!=_kNullPos)){
|
|
358
|
+
check(newData->read(newData,curReadNewPos,out_data,out_data+len));
|
|
359
|
+
_subData(out_data,len,oldData,curReadOldPos,_cache.data(),_cache.size());
|
|
360
|
+
}else{
|
|
361
|
+
memset(out_data,0,len);
|
|
362
|
+
}
|
|
363
|
+
if (curReadOldPos!=_kNullPos) curReadOldPos+=len;
|
|
364
|
+
curReadNewPos+=len;
|
|
365
|
+
curDataLen-=len;
|
|
366
|
+
out_data+=len;
|
|
367
|
+
readLen-=len;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
hpatch_BOOL TNewDataSubDiffStream::_read(const struct hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
371
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
372
|
+
TNewDataSubDiffStream* self=(TNewDataSubDiffStream*)stream->streamImport;
|
|
373
|
+
if (readFromPos==0) self->initRead();
|
|
374
|
+
if (readFromPos!=self->curReadPos) return hpatch_FALSE;
|
|
375
|
+
self->curReadPos+=(size_t)(out_data_end-out_data);
|
|
376
|
+
assert(self->curReadPos<=self->streamSize);
|
|
377
|
+
self->readTo(out_data,out_data_end);
|
|
378
|
+
return hpatch_TRUE;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
TNewDataSubDiffStream_mem::TNewDataSubDiffStream_mem(const unsigned char* newData,const unsigned char* newData_end,
|
|
382
|
+
const unsigned char* oldData,const unsigned char* oldData_end,
|
|
383
|
+
const TCovers& _covers,bool _isOnlySubCover,bool _isZeroSubDiff)
|
|
384
|
+
:TNewDataSubDiffStream(mem_as_hStreamInput(&mem_newData,newData,newData_end),
|
|
385
|
+
mem_as_hStreamInput(&mem_oldData,oldData,oldData_end),
|
|
386
|
+
_covers,_isOnlySubCover,_isZeroSubDiff){}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
TNewDataSubDiffCoverStream::TNewDataSubDiffCoverStream(const hpatch_TStreamInput* _newStream,
|
|
390
|
+
const hpatch_TStreamInput* _oldStream,
|
|
391
|
+
bool _isZeroSubDiff)
|
|
392
|
+
:isZeroSubDiff(_isZeroSubDiff),newStream(_newStream),oldStream(_oldStream),
|
|
393
|
+
newData(0),oldData(0),_cache(_isZeroSubDiff?0:kSubDiffCacheSize*2){
|
|
394
|
+
setCover(cover,0,0,0);
|
|
395
|
+
streamImport=this;
|
|
396
|
+
read=_read;
|
|
397
|
+
if (!isZeroSubDiff){
|
|
398
|
+
newData=_cache.data();
|
|
399
|
+
oldData=_cache.data()+kSubDiffCacheSize;
|
|
400
|
+
}
|
|
401
|
+
initRead();
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
void TNewDataSubDiffCoverStream::initRead(){
|
|
405
|
+
streamSize=cover.length;
|
|
406
|
+
inStreamLen=cover.length;
|
|
407
|
+
curDataLen=0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
void TNewDataSubDiffCoverStream::resetCover(const TCover& _cover){
|
|
411
|
+
cover=_cover;
|
|
412
|
+
initRead();
|
|
413
|
+
}
|
|
414
|
+
void TNewDataSubDiffCoverStream::resetCoverLen(hpatch_StreamPos_t coverLen){
|
|
415
|
+
const hpatch_StreamPos_t skipLen=cover.length-(curDataLen+inStreamLen);
|
|
416
|
+
if (coverLen<=skipLen){ // all cache data invalid
|
|
417
|
+
cover.length=coverLen;
|
|
418
|
+
initRead();
|
|
419
|
+
}else{
|
|
420
|
+
if (coverLen<skipLen+curDataLen)
|
|
421
|
+
curDataLen=(size_t)(coverLen-skipLen);
|
|
422
|
+
inStreamLen=coverLen-(skipLen+curDataLen);
|
|
423
|
+
cover.length=coverLen;
|
|
424
|
+
streamSize=coverLen;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
hpatch_BOOL TNewDataSubDiffCoverStream::_read(const hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
429
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
430
|
+
TNewDataSubDiffCoverStream* self=(TNewDataSubDiffCoverStream*)stream->streamImport;
|
|
431
|
+
if (self->isZeroSubDiff){
|
|
432
|
+
memset(out_data,0,out_data_end-out_data);
|
|
433
|
+
return hpatch_TRUE;
|
|
434
|
+
}
|
|
435
|
+
return self->readTo(readFromPos,out_data,out_data_end);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
hpatch_BOOL TNewDataSubDiffCoverStream::readTo(hpatch_StreamPos_t readFromPos,
|
|
439
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
440
|
+
// newStream:[ | | ]
|
|
441
|
+
// cover.newPos cover.newPos+cover.length
|
|
442
|
+
// _cache: | skipLen [ curDataLen ] inStreamLen |
|
|
443
|
+
// |
|
|
444
|
+
// readFromPos
|
|
445
|
+
while (out_data!=out_data_end){
|
|
446
|
+
hpatch_StreamPos_t skipLen=cover.length-(curDataLen+inStreamLen);
|
|
447
|
+
if ((readFromPos<skipLen)||(readFromPos>=(skipLen+curDataLen))){
|
|
448
|
+
if (!_updateCache(readFromPos)) return hpatch_FALSE;
|
|
449
|
+
skipLen=cover.length-(curDataLen+inStreamLen);
|
|
450
|
+
}
|
|
451
|
+
size_t srcPos=(size_t)(readFromPos-skipLen);
|
|
452
|
+
size_t len=std::min((size_t)(curDataLen-srcPos),(size_t)(out_data_end-out_data));
|
|
453
|
+
for (size_t i=0;i<len;i++)
|
|
454
|
+
out_data[i]=newData[srcPos+i]-oldData[srcPos+i];
|
|
455
|
+
readFromPos+=len;
|
|
456
|
+
out_data+=len;
|
|
457
|
+
}
|
|
458
|
+
return hpatch_TRUE;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
hpatch_BOOL TNewDataSubDiffCoverStream::_updateCache(hpatch_StreamPos_t readFromPos){
|
|
462
|
+
assert(readFromPos<cover.length);
|
|
463
|
+
curDataLen=kSubDiffCacheSize;
|
|
464
|
+
if (curDataLen+readFromPos>cover.length)
|
|
465
|
+
curDataLen=(size_t)(cover.length-readFromPos);
|
|
466
|
+
inStreamLen=cover.length-(curDataLen+readFromPos);
|
|
467
|
+
if (!newStream->read(newStream,cover.newPos+readFromPos,newData,newData+curDataLen))
|
|
468
|
+
return hpatch_FALSE;
|
|
469
|
+
if (!oldStream->read(oldStream,cover.oldPos+readFromPos,oldData,oldData+curDataLen))
|
|
470
|
+
return hpatch_FALSE;
|
|
471
|
+
return hpatch_TRUE;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
TStepStream::TStepStream(const hpatch_TStreamInput* newStream,const hpatch_TStreamInput* oldStream,
|
|
476
|
+
bool isZeroSubDiff,const TCovers& _covers,size_t _patchStepMemSize)
|
|
477
|
+
:subDiff(newStream,oldStream,isZeroSubDiff),newDataDiff(_covers,newStream),
|
|
478
|
+
covers(_covers),patchStepMemSize(_patchStepMemSize),newDataSize(newStream->streamSize),
|
|
479
|
+
readFromPosBack(0),readBufPos(0){
|
|
480
|
+
initStream();
|
|
481
|
+
streamImport=this;
|
|
482
|
+
read=_read;
|
|
483
|
+
streamSize=sumBufSize_forInit;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
void TStepStream::initStream(){
|
|
487
|
+
isInInit=true;
|
|
488
|
+
sumBufSize_forInit=0;
|
|
489
|
+
beginStep();
|
|
490
|
+
while(doStep()) { }
|
|
491
|
+
isInInit=false;
|
|
492
|
+
endCoverCount=curCoverCount;
|
|
493
|
+
endMaxStepMemSize=curMaxStepMemSize;
|
|
494
|
+
beginStep();
|
|
495
|
+
//assert(buf.empty());
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
hpatch_BOOL TStepStream::readTo(unsigned char* out_data,unsigned char* out_data_end){
|
|
499
|
+
while (out_data!=out_data_end){
|
|
500
|
+
hpatch_StreamPos_t stepDataLen=step_buf.size()+step_dataDiff.streamSize;
|
|
501
|
+
if (readBufPos==stepDataLen){
|
|
502
|
+
step_buf.clear();
|
|
503
|
+
step_dataDiff.clear();
|
|
504
|
+
readBufPos=0;
|
|
505
|
+
while (doStep()) {
|
|
506
|
+
stepDataLen=step_buf.size()+step_dataDiff.streamSize;
|
|
507
|
+
if (stepDataLen>0)
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
check(stepDataLen>0);
|
|
511
|
+
}
|
|
512
|
+
size_t len=out_data_end-out_data;
|
|
513
|
+
if (readBufPos+len>stepDataLen)
|
|
514
|
+
len=(size_t)(stepDataLen-readBufPos);
|
|
515
|
+
if (readBufPos<step_buf.size()){//copy data from step_buf
|
|
516
|
+
size_t clen=len;
|
|
517
|
+
if (readBufPos+clen>step_buf.size())
|
|
518
|
+
clen=(size_t)(step_buf.size()-readBufPos);
|
|
519
|
+
memcpy(out_data,step_buf.data()+(size_t)readBufPos,clen);
|
|
520
|
+
readBufPos+=clen;
|
|
521
|
+
out_data+=clen;
|
|
522
|
+
len-=clen;
|
|
523
|
+
}
|
|
524
|
+
if (len>0){//copy data from step_dataDiff
|
|
525
|
+
if (!step_dataDiff.read(&step_dataDiff,readBufPos-step_buf.size(),
|
|
526
|
+
out_data,out_data+len)) return hpatch_FALSE;
|
|
527
|
+
readBufPos+=len;
|
|
528
|
+
out_data+=len;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return hpatch_TRUE;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
hpatch_BOOL TStepStream::_read(const hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
535
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
536
|
+
TStepStream* self=(TStepStream*)stream->streamImport;
|
|
537
|
+
if (readFromPos!=self->readFromPosBack){
|
|
538
|
+
check(readFromPos==0);
|
|
539
|
+
self->beginStep();
|
|
540
|
+
}
|
|
541
|
+
self->readFromPosBack=readFromPos+(size_t)(out_data_end-out_data);
|
|
542
|
+
return self->readTo(out_data,out_data_end);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
void TStepStream::beginStep(){
|
|
546
|
+
curCoverCount=covers.coverCount();
|
|
547
|
+
isHaveLeftCover=false;
|
|
548
|
+
isHaveRightCover=false;
|
|
549
|
+
isHaveLastCover=false;
|
|
550
|
+
if (curCoverCount==0){
|
|
551
|
+
isHaveLastCover=true;
|
|
552
|
+
setCover(lastCover,0,newDataSize,0);
|
|
553
|
+
}else{
|
|
554
|
+
TCover back;
|
|
555
|
+
covers.covers(curCoverCount-1,&back);
|
|
556
|
+
if (back.newPos+back.length<newDataSize){
|
|
557
|
+
isHaveLastCover=true;
|
|
558
|
+
setCover(lastCover,back.oldPos+back.length,newDataSize,0);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (isHaveLastCover) ++curCoverCount;
|
|
562
|
+
|
|
563
|
+
step_buf.clear();
|
|
564
|
+
step_dataDiff.clear();
|
|
565
|
+
readBufPos=0;
|
|
566
|
+
curMaxStepMemSize=0;
|
|
567
|
+
lastOldEnd=0;
|
|
568
|
+
lastNewEnd=0;
|
|
569
|
+
step_bufCover.clear();
|
|
570
|
+
step_bufCover_size=0;
|
|
571
|
+
step_bufRle.clear();
|
|
572
|
+
step_dataDiffSize=0;
|
|
573
|
+
newDataDiffReadPos=0;
|
|
574
|
+
cur_i=0;
|
|
575
|
+
pCurCover=0;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
bool TStepStream::doStep(){
|
|
579
|
+
if (pCurCover==0){
|
|
580
|
+
if (isHaveLeftCover) { isHaveLeftCover=false; pCurCover=&leftCover; }
|
|
581
|
+
else if (isHaveRightCover){ isHaveRightCover=false; pCurCover=&rightCover; }
|
|
582
|
+
else if (cur_i<covers.coverCount()) { covers.covers(cur_i++,&cover); pCurCover=&cover; }
|
|
583
|
+
else if (isHaveLastCover) { isHaveLastCover=false; pCurCover=&lastCover; }
|
|
584
|
+
else if (step_bufCover_size>0){ _last_flush_step(); return true; }
|
|
585
|
+
else { return false; } //end while
|
|
586
|
+
}
|
|
587
|
+
cover=*pCurCover;
|
|
588
|
+
const size_t step_bufCover_backSize=step_bufCover_size;
|
|
589
|
+
|
|
590
|
+
hpatch_StreamPos_t backNewLen=cover.newPos-lastNewEnd;
|
|
591
|
+
if (cover.oldPos>=lastOldEnd){ //save inc_oldPos
|
|
592
|
+
if (isInInit)
|
|
593
|
+
step_bufCover_size+=hpatch_packUIntWithTag_size((hpatch_StreamPos_t)(cover.oldPos-lastOldEnd), 1);
|
|
594
|
+
else
|
|
595
|
+
packUIntWithTag(step_bufCover,(hpatch_StreamPos_t)(cover.oldPos-lastOldEnd), 0, 1);
|
|
596
|
+
}else{
|
|
597
|
+
if (isInInit)
|
|
598
|
+
step_bufCover_size+=hpatch_packUIntWithTag_size((hpatch_StreamPos_t)(lastOldEnd-cover.oldPos), 1);
|
|
599
|
+
else
|
|
600
|
+
packUIntWithTag(step_bufCover,(hpatch_StreamPos_t)(lastOldEnd-cover.oldPos), 1, 1);//sub safe
|
|
601
|
+
}
|
|
602
|
+
if (isInInit){
|
|
603
|
+
step_bufCover_size+=hpatch_packUInt_size(backNewLen)+hpatch_packUInt_size(cover.length);
|
|
604
|
+
}else{
|
|
605
|
+
packUInt(step_bufCover,backNewLen); //save inc_newPos
|
|
606
|
+
packUInt(step_bufCover,cover.length);
|
|
607
|
+
step_bufCover_size=step_bufCover.size();
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
subDiff.resetCover(cover);
|
|
611
|
+
const hpatch_StreamPos_t curMaxNeedSize = step_bufCover_size +
|
|
612
|
+
(subDiff.isZeroSubDiff?step_bufRle.maxCodeSizeByZeroLen(subDiff.streamSize):step_bufRle.maxCodeSize(&subDiff));
|
|
613
|
+
if (curMaxNeedSize<=patchStepMemSize){ //append
|
|
614
|
+
if (subDiff.isZeroSubDiff)
|
|
615
|
+
step_bufRle.appendByZeroLen(subDiff.streamSize);
|
|
616
|
+
else
|
|
617
|
+
step_bufRle.append(&subDiff);
|
|
618
|
+
if (backNewLen>0){
|
|
619
|
+
newDataDiffReadPos+=backNewLen;
|
|
620
|
+
step_dataDiffSize+=backNewLen;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
lastOldEnd=cover.oldPos+cover.length;//! +length
|
|
624
|
+
lastNewEnd=cover.newPos+cover.length;
|
|
625
|
+
pCurCover=0; // next
|
|
626
|
+
return true;
|
|
627
|
+
}else{
|
|
628
|
+
if (step_bufCover_backSize+step_bufRle.curCodeSize()>=(patchStepMemSize/2)){//flush step
|
|
629
|
+
step_bufCover_size=step_bufCover_backSize;
|
|
630
|
+
if (!isInInit) step_bufCover.resize(step_bufCover_backSize);
|
|
631
|
+
|
|
632
|
+
step_dataDiff.reset(&newDataDiff,newDataDiffReadPos-step_dataDiffSize,newDataDiffReadPos);
|
|
633
|
+
step_dataDiffSize=0;
|
|
634
|
+
_flush_step_code();
|
|
635
|
+
return true; // pCurCover!
|
|
636
|
+
}else{ //clip one cover to two cover
|
|
637
|
+
check((!isHaveLeftCover)&&(!isHaveRightCover));
|
|
638
|
+
isHaveLeftCover=true;
|
|
639
|
+
isHaveRightCover=true;
|
|
640
|
+
leftCover=cover;
|
|
641
|
+
rightCover=cover;
|
|
642
|
+
hpatch_StreamPos_t clen=cover.length;
|
|
643
|
+
while (1) {
|
|
644
|
+
clen=clen*3/4;
|
|
645
|
+
subDiff.resetCoverLen(clen);
|
|
646
|
+
check(clen>0); // stepMemSize error
|
|
647
|
+
const hpatch_StreamPos_t _curMaxNeedSize = step_bufCover_size +
|
|
648
|
+
(subDiff.isZeroSubDiff?step_bufRle.maxCodeSizeByZeroLen(subDiff.streamSize):step_bufRle.maxCodeSize(&subDiff));
|
|
649
|
+
if (_curMaxNeedSize<=patchStepMemSize)
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
leftCover.length=clen;
|
|
653
|
+
rightCover.length-=clen;
|
|
654
|
+
rightCover.oldPos+=clen;
|
|
655
|
+
rightCover.newPos+=clen;
|
|
656
|
+
|
|
657
|
+
step_bufCover_size=step_bufCover_backSize;
|
|
658
|
+
if (!isInInit) step_bufCover.resize(step_bufCover_backSize);
|
|
659
|
+
++curCoverCount;
|
|
660
|
+
pCurCover=0;
|
|
661
|
+
return true; // leftCover
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
void TStepStream::_last_flush_step(){
|
|
667
|
+
if (step_bufCover_size>0){
|
|
668
|
+
step_dataDiff.reset(&newDataDiff,newDataDiffReadPos-step_dataDiffSize,newDataDiffReadPos);
|
|
669
|
+
step_dataDiffSize=0;
|
|
670
|
+
_flush_step_code();
|
|
671
|
+
}else{
|
|
672
|
+
assert(step_dataDiff.streamSize==0);
|
|
673
|
+
assert(step_dataDiffSize==0);
|
|
674
|
+
}
|
|
675
|
+
assert(curMaxStepMemSize<=patchStepMemSize);
|
|
676
|
+
assert(newDataDiffReadPos==newDataDiff.streamSize);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
void TStepStream::_flush_step_code() {
|
|
680
|
+
step_bufRle.finishAppend();
|
|
681
|
+
const size_t curStepMemSize=step_bufCover_size+step_bufRle.fixed_code.size();
|
|
682
|
+
if (curMaxStepMemSize<curStepMemSize)
|
|
683
|
+
curMaxStepMemSize=curStepMemSize;
|
|
684
|
+
if (isInInit){
|
|
685
|
+
assert(step_buf.empty());
|
|
686
|
+
sumBufSize_forInit+=hpatch_packUInt_size(step_bufCover_size) +
|
|
687
|
+
hpatch_packUInt_size(step_bufRle.curCodeSize())+
|
|
688
|
+
curStepMemSize + step_dataDiff.streamSize;
|
|
689
|
+
}else{
|
|
690
|
+
//step head
|
|
691
|
+
assert(step_bufCover_size==step_bufCover.size());
|
|
692
|
+
packUInt(step_buf,step_bufCover.size());
|
|
693
|
+
packUInt(step_buf,step_bufRle.curCodeSize());
|
|
694
|
+
//step cache data
|
|
695
|
+
pushBack(step_buf,step_bufCover);
|
|
696
|
+
pushBack(step_buf,step_bufRle.fixed_code);
|
|
697
|
+
}
|
|
698
|
+
step_bufCover_size=0;
|
|
699
|
+
step_bufCover.clear();
|
|
700
|
+
step_bufRle.clear();
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
TDiffStream::TDiffStream(const hpatch_TStreamOutput* _out_diff,hpatch_StreamPos_t out_diff_curPos)
|
|
705
|
+
:out_diff(_out_diff),writePos(out_diff_curPos){
|
|
706
|
+
_temp_mem.realloc(kBufSize);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
TDiffStream::~TDiffStream(){
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
void TDiffStream::pushBack(const unsigned char* src,size_t n){
|
|
713
|
+
if (n==0) return;
|
|
714
|
+
checki(out_diff->write(out_diff,writePos,src,src+n),
|
|
715
|
+
"TDiffStream::pushBack() write stream error!");
|
|
716
|
+
writePos+=n;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
size_t TDiffStream::packUInt(hpatch_StreamPos_t uValue){
|
|
721
|
+
unsigned char codeBuf[hpatch_kMaxPackedUIntBytes];
|
|
722
|
+
unsigned char* codeEnd=codeBuf;
|
|
723
|
+
check(hpatch_packUInt(&codeEnd,codeBuf+hpatch_kMaxPackedUIntBytes,uValue));
|
|
724
|
+
pushBack(codeBuf,(size_t)(codeEnd-codeBuf));
|
|
725
|
+
return codeEnd-codeBuf;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
void TDiffStream::_packUInt_limit(hpatch_StreamPos_t uValue,size_t limitOutSize){
|
|
729
|
+
check(limitOutSize<=hpatch_kMaxPackedUIntBytes);
|
|
730
|
+
unsigned char _codeBuf[hpatch_kMaxPackedUIntBytes];
|
|
731
|
+
packUInt_fixSize(_codeBuf,_codeBuf+limitOutSize,uValue);
|
|
732
|
+
pushBack(_codeBuf,limitOutSize);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
void TDiffStream::packUInt_update(const TPlaceholder& pos,hpatch_StreamPos_t uValue){
|
|
736
|
+
hpatch_StreamPos_t writePosBack=writePos;
|
|
737
|
+
writePos=pos.pos;
|
|
738
|
+
_packUInt_limit(uValue,(size_t)(pos.pos_end-pos.pos));
|
|
739
|
+
assert(writePos==pos.pos_end);
|
|
740
|
+
writePos=writePosBack;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
void TDiffStream::stream_read(const TPlaceholder& pos,hpatch_byte* out_data){
|
|
744
|
+
assert(pos.pos<=pos.pos_end);
|
|
745
|
+
assert(pos.size()==(size_t)pos.size());
|
|
746
|
+
check(pos.pos_end<=writePos);
|
|
747
|
+
checki(out_diff->read_writed!=0,"TDiffStream::stream_read() out_diff can't read error!");
|
|
748
|
+
checki(out_diff->read_writed(out_diff,pos.pos,out_data,out_data+(size_t)pos.size()),
|
|
749
|
+
"TDiffStream::stream_read() out_diff read error!");
|
|
750
|
+
}
|
|
751
|
+
void TDiffStream::stream_update(const TPlaceholder& pos,const hpatch_byte* in_data){
|
|
752
|
+
assert(pos.pos<=pos.pos_end);
|
|
753
|
+
assert(pos.size()==(size_t)pos.size());
|
|
754
|
+
check(pos.pos_end<=writePos);
|
|
755
|
+
|
|
756
|
+
hpatch_StreamPos_t writePosBack=writePos;
|
|
757
|
+
writePos=pos.pos;
|
|
758
|
+
pushBack(in_data,(size_t)pos.size());
|
|
759
|
+
assert(writePos==pos.pos_end);
|
|
760
|
+
writePos=writePosBack;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
void TDiffStream::_pushStream(const hpatch_TStreamInput* stream){
|
|
764
|
+
unsigned char* buf=_temp_mem.data();
|
|
765
|
+
hpatch_StreamPos_t sumReadedLen=0;
|
|
766
|
+
while (sumReadedLen<stream->streamSize) {
|
|
767
|
+
size_t readLen=kBufSize;
|
|
768
|
+
if (readLen+sumReadedLen>stream->streamSize)
|
|
769
|
+
readLen=(size_t)(stream->streamSize-sumReadedLen);
|
|
770
|
+
checki(stream->read(stream,sumReadedLen,buf,buf+readLen),
|
|
771
|
+
"TDiffStream::_pushStream() stream->read() error!");
|
|
772
|
+
this->pushBack(buf,readLen);
|
|
773
|
+
sumReadedLen+=readLen;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
hpatch_StreamPos_t TDiffStream::pushStream(const hpatch_TStreamInput* stream,
|
|
778
|
+
const hdiff_TCompress* compressPlugin,
|
|
779
|
+
const TPlaceholder& update_compress_sizePos,
|
|
780
|
+
bool isMustCompress,const hpatch_StreamPos_t cancelSizeOnCancelCompress){
|
|
781
|
+
hpatch_StreamPos_t compressed_size=0;
|
|
782
|
+
check(writePos>=cancelSizeOnCancelCompress);
|
|
783
|
+
check(stream->streamSize>=cancelSizeOnCancelCompress);
|
|
784
|
+
if ((compressPlugin)&&(isMustCompress||(stream->streamSize>=1+cancelSizeOnCancelCompress))){
|
|
785
|
+
hpatch_StreamPos_t kLimitOutCodeSize=isMustCompress?compressPlugin->maxCompressedSize(stream->streamSize+1)
|
|
786
|
+
:(stream->streamSize-(1+cancelSizeOnCancelCompress));
|
|
787
|
+
TCompressedStream out_stream(out_diff,writePos,kLimitOutCodeSize);
|
|
788
|
+
compressed_size=compressPlugin->compress(compressPlugin,&out_stream,stream);
|
|
789
|
+
if (out_stream.is_overLimit()||(compressed_size==0)||(compressed_size>kLimitOutCodeSize)){
|
|
790
|
+
check(!isMustCompress);
|
|
791
|
+
compressed_size=0;//NOTICE: compress is canceled
|
|
792
|
+
}else{
|
|
793
|
+
writePos+=compressed_size; //compress ok
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (compressed_size==0){
|
|
798
|
+
writePos-=cancelSizeOnCancelCompress;//revoke some data
|
|
799
|
+
_pushStream(stream);
|
|
800
|
+
}
|
|
801
|
+
if (!update_compress_sizePos.isNullPos())
|
|
802
|
+
packUInt_update(update_compress_sizePos,compressed_size);
|
|
803
|
+
return (compressed_size==0)?stream->streamSize:compressed_size;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
void TStreamClip::reset(const hpatch_TStreamInput* stream,
|
|
807
|
+
hpatch_StreamPos_t clipBeginPos,hpatch_StreamPos_t clipEndPos,
|
|
808
|
+
hpatch_TDecompress* decompressPlugin,hpatch_StreamPos_t uncompressSize){
|
|
809
|
+
clear();
|
|
810
|
+
assert(clipBeginPos<=clipEndPos);
|
|
811
|
+
assert(clipEndPos<=stream->streamSize);
|
|
812
|
+
_src=stream;
|
|
813
|
+
_src_begin=clipBeginPos;
|
|
814
|
+
_src_end=clipEndPos;
|
|
815
|
+
_decompressPlugin=decompressPlugin;
|
|
816
|
+
_decompressHandle=0;
|
|
817
|
+
_read_uncompress_pos=0;
|
|
818
|
+
if ((uncompressSize==0)&&(decompressPlugin==0))
|
|
819
|
+
uncompressSize=clipEndPos-clipBeginPos;
|
|
820
|
+
this->streamImport=this;
|
|
821
|
+
this->streamSize=uncompressSize;
|
|
822
|
+
this->read=_clip_read;
|
|
823
|
+
|
|
824
|
+
if (decompressPlugin)
|
|
825
|
+
openDecompressHandle();
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
void TStreamClip::closeDecompressHandle(){
|
|
829
|
+
hpatch_decompressHandle handle=_decompressHandle;
|
|
830
|
+
_decompressHandle=0;
|
|
831
|
+
if (handle)
|
|
832
|
+
check(_decompressPlugin->close(_decompressPlugin,handle));
|
|
833
|
+
}
|
|
834
|
+
void TStreamClip::openDecompressHandle(){
|
|
835
|
+
assert(_decompressHandle==0);
|
|
836
|
+
assert(_decompressPlugin!=0);
|
|
837
|
+
_decompressHandle=_decompressPlugin->open(_decompressPlugin,this->streamSize,_src,_src_begin,_src_end);
|
|
838
|
+
check(_decompressHandle!=0);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
hpatch_BOOL TStreamClip::_clip_read(const hpatch_TStreamInput* stream,hpatch_StreamPos_t readFromPos,
|
|
842
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
843
|
+
TStreamClip* self=(TStreamClip*)stream->streamImport;
|
|
844
|
+
assert(out_data<out_data_end);
|
|
845
|
+
if (readFromPos!=self->_read_uncompress_pos){
|
|
846
|
+
if (self->_decompressPlugin){
|
|
847
|
+
check(readFromPos==0); //not support random read compressed cdata
|
|
848
|
+
//reset
|
|
849
|
+
self->closeDecompressHandle();
|
|
850
|
+
self->openDecompressHandle();
|
|
851
|
+
self->_read_uncompress_pos=0;
|
|
852
|
+
}else{
|
|
853
|
+
self->_read_uncompress_pos=readFromPos;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
size_t readLen=out_data_end-out_data;
|
|
857
|
+
assert(readFromPos+readLen <= self->streamSize);
|
|
858
|
+
self->_read_uncompress_pos+=readLen;
|
|
859
|
+
|
|
860
|
+
if (self->_decompressPlugin){
|
|
861
|
+
return self->_decompressPlugin->decompress_part(self->_decompressHandle,out_data,out_data_end);
|
|
862
|
+
}else{
|
|
863
|
+
return self->_src->read(self->_src,self->_src_begin+readFromPos,out_data,out_data_end);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
static hpatch_BOOL _TVectorAsStreamOutput_write(const hpatch_TStreamOutput* stream,const hpatch_StreamPos_t writeToPos,
|
|
869
|
+
const unsigned char* data,const unsigned char* data_end){
|
|
870
|
+
TVectorAsStreamOutput* self=(TVectorAsStreamOutput*)stream->streamImport;
|
|
871
|
+
std::vector<unsigned char>& dst=self->dst;
|
|
872
|
+
size_t writeLen=(size_t)(data_end-data);
|
|
873
|
+
if (writeToPos>dst.size()) return hpatch_FALSE;
|
|
874
|
+
if (dst.size()==writeToPos){
|
|
875
|
+
dst.insert(dst.end(),data,data_end);
|
|
876
|
+
}else{
|
|
877
|
+
if (writeToPos+writeLen!=(size_t)(writeToPos+writeLen)) return hpatch_FALSE;
|
|
878
|
+
if (dst.size()<writeToPos+writeLen)
|
|
879
|
+
dst.resize((size_t)(writeToPos+writeLen));
|
|
880
|
+
memcpy(&dst[(size_t)writeToPos],data,writeLen);
|
|
881
|
+
}
|
|
882
|
+
return hpatch_TRUE;
|
|
883
|
+
}
|
|
884
|
+
static hpatch_BOOL _TVectorAsStreamOutput_read(const struct hpatch_TStreamOutput* stream,hpatch_StreamPos_t readFromPos,
|
|
885
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
886
|
+
const TVectorAsStreamOutput* self=(const TVectorAsStreamOutput*)stream->streamImport;
|
|
887
|
+
const std::vector<unsigned char>& src=self->dst;
|
|
888
|
+
size_t readLen=out_data_end-out_data;
|
|
889
|
+
if (readFromPos+readLen>src.size()) return hpatch_FALSE;
|
|
890
|
+
memcpy(out_data,src.data()+(size_t)readFromPos,readLen);
|
|
891
|
+
return hpatch_TRUE;
|
|
892
|
+
}
|
|
893
|
+
TVectorAsStreamOutput::TVectorAsStreamOutput(std::vector<unsigned char>& _dst)
|
|
894
|
+
:dst(_dst) {
|
|
895
|
+
this->streamImport = this;
|
|
896
|
+
this->streamSize = hpatch_kNullStreamPos;
|
|
897
|
+
this->read_writed = _TVectorAsStreamOutput_read;
|
|
898
|
+
this->write = _TVectorAsStreamOutput_write;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
_TCheckOutNewDataStream::_TCheckOutNewDataStream(const hpatch_TStreamInput* _newData,
|
|
902
|
+
unsigned char* _buf,size_t _bufSize)
|
|
903
|
+
:newData(_newData),writedLen(0),buf(_buf),bufSize(_bufSize){
|
|
904
|
+
streamImport=this;
|
|
905
|
+
streamSize=newData->streamSize;
|
|
906
|
+
read_writed=_read_writed;
|
|
907
|
+
write=_write_check;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
hpatch_BOOL _TCheckOutNewDataStream::_read_writed(const struct hpatch_TStreamOutput* stream,hpatch_StreamPos_t readFromPos,
|
|
911
|
+
unsigned char* out_data,unsigned char* out_data_end){
|
|
912
|
+
_TCheckOutNewDataStream* self=(_TCheckOutNewDataStream*)stream->streamImport;
|
|
913
|
+
_test_rt(readFromPos<=self->writedLen);
|
|
914
|
+
_test_rt((hpatch_size_t)(out_data_end-out_data)<=(hpatch_StreamPos_t)(self->writedLen-readFromPos));
|
|
915
|
+
return self->newData->read(self->newData,readFromPos,out_data,out_data_end);
|
|
916
|
+
}
|
|
917
|
+
hpatch_BOOL _TCheckOutNewDataStream::_write_check(const hpatch_TStreamOutput* stream,hpatch_StreamPos_t writeToPos,
|
|
918
|
+
const unsigned char* data,const unsigned char* data_end){
|
|
919
|
+
_TCheckOutNewDataStream* self=(_TCheckOutNewDataStream*)stream->streamImport;
|
|
920
|
+
_test_rt(self->writedLen==writeToPos);
|
|
921
|
+
self->writedLen+=(size_t)(data_end-data);
|
|
922
|
+
_test_rt(self->writedLen<=self->streamSize);
|
|
923
|
+
|
|
924
|
+
hpatch_StreamPos_t readPos=writeToPos;
|
|
925
|
+
while (data<data_end) {
|
|
926
|
+
size_t readLen=(size_t)(data_end-data);
|
|
927
|
+
if (readLen>self->bufSize) readLen=self->bufSize;
|
|
928
|
+
_test_rt(self->newData->read(self->newData,readPos,self->buf,self->buf+readLen));
|
|
929
|
+
_test_rt(0==memcmp(data,self->buf,readLen));
|
|
930
|
+
data+=readLen;
|
|
931
|
+
readPos+=readLen;
|
|
932
|
+
}
|
|
933
|
+
return hpatch_TRUE;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
void do_compress(std::vector<unsigned char>& out_code,const hpatch_TStreamInput* data,
|
|
938
|
+
const hdiff_TCompress* compressPlugin,bool isMustCompress){
|
|
939
|
+
out_code.clear();
|
|
940
|
+
if (!compressPlugin) return;
|
|
941
|
+
if (data->streamSize==0) return;
|
|
942
|
+
hpatch_StreamPos_t maxCodeSize=compressPlugin->maxCompressedSize(data->streamSize);
|
|
943
|
+
if ((maxCodeSize<=data->streamSize)||(maxCodeSize!=(size_t)maxCodeSize)) return; //error
|
|
944
|
+
out_code.resize((size_t)maxCodeSize);
|
|
945
|
+
hpatch_TStreamOutput codeStream;
|
|
946
|
+
mem_as_hStreamOutput(&codeStream,out_code.data(),out_code.data()+out_code.size());
|
|
947
|
+
hpatch_StreamPos_t codeSize=compressPlugin->compress(compressPlugin,&codeStream,data);
|
|
948
|
+
if ((codeSize>0)&&(isMustCompress||(codeSize<data->streamSize)))
|
|
949
|
+
out_code.resize((size_t)codeSize); //ok
|
|
950
|
+
else
|
|
951
|
+
out_code.clear();//error or cancel
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
}//namespace hdiff_private
|