react-native-update 10.34.2 → 10.34.4
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 +153 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +157 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +307 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +83 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +47 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +191 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +37 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +7 -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/hpatch.c +18 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +20 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +28 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +219 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +105 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +237 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +318 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +182 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +30 -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/bestParams.xcodeproj/project.pbxproj +408 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +573 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +396 -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 +361 -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 +411 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +504 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +344 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +166 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +1152 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +995 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +797 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +200 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +178 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +357 -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 +151 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +770 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +236 -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 +53 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +61 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +331 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +144 -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 +524 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +259 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +1570 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +290 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +1221 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +1025 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +116 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +72 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +213 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +63 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +170 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +86 -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 +13 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +398 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +194 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +13 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +204 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +207 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +815 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +586 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +381 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +352 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +137 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +137 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +70 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +628 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +87 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +363 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +139 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +68 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +115 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +342 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +94 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +52 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +2292 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +215 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +165 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +251 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +367 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +92 -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 +292 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +436 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +417 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +100 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +147 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +147 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +237 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +1258 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +205 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +202 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +80 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +1771 -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 +128 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +25 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +115 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +591 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +286 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +83 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +176 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +375 -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/Aes.c +306 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +184 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +455 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +51 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +257 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +311 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +230 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +82 -0
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +53 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +218 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +336 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +64 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +108 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +1127 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +853 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +57 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +488 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +120 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +1082 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +79 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +803 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +55 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +111 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +54 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +106 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +1185 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +234 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +2976 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +40 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +131 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +601 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +141 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +1138 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +201 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +85 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +712 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +142 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +191 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +187 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +248 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +141 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +95 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +70 -0
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.c +396 -0
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +241 -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 +686 -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 +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +40 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +75 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +258 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +168 -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/makefile +28 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +44 -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 +178 -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 +14 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +34 -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 +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +640 -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 +37 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +38 -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 +90 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +460 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +86 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +69 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +2766 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +1329 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +319 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +240 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +7 -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 +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +569 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +678 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +423 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +139 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +61 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +763 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +181 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +942 -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 +148 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +1666 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +445 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +202 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +901 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +335 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +174 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +2500 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +139 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +1125 -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 +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +232 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +191 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +89 -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 +37 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +608 -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 +629 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +359 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +1308 -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 +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +1910 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +154 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +96 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +116 -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 +799 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +477 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +195 -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 +912 -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 +482 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +134 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +5 -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 +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +137 -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 +803 -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 +364 -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 +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +117 -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 +988 -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 +241 -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 +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +153 -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 +50 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +250 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +120 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +536 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +192 -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 +475 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +166 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +435 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +205 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +163 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +367 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +252 -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 +509 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +264 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +26 -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 +66 -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 +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +108 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +78 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +285 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +157 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +56 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +13 -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 +26 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +48 -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 +666 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +120 -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 +31 -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 +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +344 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +120 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +49 -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 +128 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +265 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +96 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +42 -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 +343 -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 +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +46 -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 +170 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +152 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +58 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +245 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +46 -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 +280 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +118 -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 +112 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +233 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +84 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +220 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +399 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +5 -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 +127 -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 +993 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +235 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +28 -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 +1295 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +136 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +1715 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +403 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +155 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +161 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +112 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +3618 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +77 -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 +190 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +1096 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +42 -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 +482 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +94 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +280 -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 +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +114 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +1074 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +424 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +3553 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +436 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +668 -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 +80 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +1704 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +200 -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 +771 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +233 -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 +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +94 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +130 -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 +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +69 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +825 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +164 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +367 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +1359 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +1154 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +175 -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 +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +183 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +62 -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 +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +702 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +124 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +110 -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 +64 -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 +37 -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 +1025 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +21 -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 +1037 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +328 -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 +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +69 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +91 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +17 -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 +14 -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 +196 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +170 -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 +1337 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +351 -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 +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +80 -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 +95 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +255 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +62 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +177 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +15 -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 +418 -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 +280 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +38 -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/Build.mak +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +35 -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 +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +53 -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 +197 -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 +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +15 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +132 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +259 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +100 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +277 -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 +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +1659 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +868 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +17 -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 +634 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +145 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +163 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +40 -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 +89 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +163 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +71 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +319 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +144 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +124 -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 +288 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +676 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +149 -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 +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +185 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +23 -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 +65 -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 +251 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +170 -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 +155 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +146 -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 +143 -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 +8 -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 +200 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +109 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +58 -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 +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +15 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +714 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +749 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +161 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +432 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +212 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +440 -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 +839 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +115 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +131 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +112 -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 +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +114 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +138 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +390 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +84 -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 +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +181 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +167 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +358 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +94 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +164 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +142 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +213 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +32 -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 +284 -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.csproj +90 -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 +173 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +166 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +446 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +357 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +1176 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +328 -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,1185 @@
|
|
|
1
|
+
/* LzmaDec.c -- LZMA Decoder
|
|
2
|
+
2018-07-04 : Igor Pavlov : Public domain */
|
|
3
|
+
|
|
4
|
+
#include "Precomp.h"
|
|
5
|
+
|
|
6
|
+
#include <string.h>
|
|
7
|
+
|
|
8
|
+
/* #include "CpuArch.h" */
|
|
9
|
+
#include "LzmaDec.h"
|
|
10
|
+
|
|
11
|
+
#define kNumTopBits 24
|
|
12
|
+
#define kTopValue ((UInt32)1 << kNumTopBits)
|
|
13
|
+
|
|
14
|
+
#define kNumBitModelTotalBits 11
|
|
15
|
+
#define kBitModelTotal (1 << kNumBitModelTotalBits)
|
|
16
|
+
#define kNumMoveBits 5
|
|
17
|
+
|
|
18
|
+
#define RC_INIT_SIZE 5
|
|
19
|
+
|
|
20
|
+
#define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); }
|
|
21
|
+
|
|
22
|
+
#define IF_BIT_0(p) ttt = *(p); NORMALIZE; bound = (range >> kNumBitModelTotalBits) * (UInt32)ttt; if (code < bound)
|
|
23
|
+
#define UPDATE_0(p) range = bound; *(p) = (CLzmaProb)(ttt + ((kBitModelTotal - ttt) >> kNumMoveBits));
|
|
24
|
+
#define UPDATE_1(p) range -= bound; code -= bound; *(p) = (CLzmaProb)(ttt - (ttt >> kNumMoveBits));
|
|
25
|
+
#define GET_BIT2(p, i, A0, A1) IF_BIT_0(p) \
|
|
26
|
+
{ UPDATE_0(p); i = (i + i); A0; } else \
|
|
27
|
+
{ UPDATE_1(p); i = (i + i) + 1; A1; }
|
|
28
|
+
|
|
29
|
+
#define TREE_GET_BIT(probs, i) { GET_BIT2(probs + i, i, ;, ;); }
|
|
30
|
+
|
|
31
|
+
#define REV_BIT(p, i, A0, A1) IF_BIT_0(p + i) \
|
|
32
|
+
{ UPDATE_0(p + i); A0; } else \
|
|
33
|
+
{ UPDATE_1(p + i); A1; }
|
|
34
|
+
#define REV_BIT_VAR( p, i, m) REV_BIT(p, i, i += m; m += m, m += m; i += m; )
|
|
35
|
+
#define REV_BIT_CONST(p, i, m) REV_BIT(p, i, i += m; , i += m * 2; )
|
|
36
|
+
#define REV_BIT_LAST( p, i, m) REV_BIT(p, i, i -= m , ; )
|
|
37
|
+
|
|
38
|
+
#define TREE_DECODE(probs, limit, i) \
|
|
39
|
+
{ i = 1; do { TREE_GET_BIT(probs, i); } while (i < limit); i -= limit; }
|
|
40
|
+
|
|
41
|
+
/* #define _LZMA_SIZE_OPT */
|
|
42
|
+
|
|
43
|
+
#ifdef _LZMA_SIZE_OPT
|
|
44
|
+
#define TREE_6_DECODE(probs, i) TREE_DECODE(probs, (1 << 6), i)
|
|
45
|
+
#else
|
|
46
|
+
#define TREE_6_DECODE(probs, i) \
|
|
47
|
+
{ i = 1; \
|
|
48
|
+
TREE_GET_BIT(probs, i); \
|
|
49
|
+
TREE_GET_BIT(probs, i); \
|
|
50
|
+
TREE_GET_BIT(probs, i); \
|
|
51
|
+
TREE_GET_BIT(probs, i); \
|
|
52
|
+
TREE_GET_BIT(probs, i); \
|
|
53
|
+
TREE_GET_BIT(probs, i); \
|
|
54
|
+
i -= 0x40; }
|
|
55
|
+
#endif
|
|
56
|
+
|
|
57
|
+
#define NORMAL_LITER_DEC TREE_GET_BIT(prob, symbol)
|
|
58
|
+
#define MATCHED_LITER_DEC \
|
|
59
|
+
matchByte += matchByte; \
|
|
60
|
+
bit = offs; \
|
|
61
|
+
offs &= matchByte; \
|
|
62
|
+
probLit = prob + (offs + bit + symbol); \
|
|
63
|
+
GET_BIT2(probLit, symbol, offs ^= bit; , ;)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
#define NORMALIZE_CHECK if (range < kTopValue) { if (buf >= bufLimit) return DUMMY_ERROR; range <<= 8; code = (code << 8) | (*buf++); }
|
|
68
|
+
|
|
69
|
+
#define IF_BIT_0_CHECK(p) ttt = *(p); NORMALIZE_CHECK; bound = (range >> kNumBitModelTotalBits) * (UInt32)ttt; if (code < bound)
|
|
70
|
+
#define UPDATE_0_CHECK range = bound;
|
|
71
|
+
#define UPDATE_1_CHECK range -= bound; code -= bound;
|
|
72
|
+
#define GET_BIT2_CHECK(p, i, A0, A1) IF_BIT_0_CHECK(p) \
|
|
73
|
+
{ UPDATE_0_CHECK; i = (i + i); A0; } else \
|
|
74
|
+
{ UPDATE_1_CHECK; i = (i + i) + 1; A1; }
|
|
75
|
+
#define GET_BIT_CHECK(p, i) GET_BIT2_CHECK(p, i, ; , ;)
|
|
76
|
+
#define TREE_DECODE_CHECK(probs, limit, i) \
|
|
77
|
+
{ i = 1; do { GET_BIT_CHECK(probs + i, i) } while (i < limit); i -= limit; }
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
#define REV_BIT_CHECK(p, i, m) IF_BIT_0_CHECK(p + i) \
|
|
81
|
+
{ UPDATE_0_CHECK; i += m; m += m; } else \
|
|
82
|
+
{ UPDATE_1_CHECK; m += m; i += m; }
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
#define kNumPosBitsMax 4
|
|
86
|
+
#define kNumPosStatesMax (1 << kNumPosBitsMax)
|
|
87
|
+
|
|
88
|
+
#define kLenNumLowBits 3
|
|
89
|
+
#define kLenNumLowSymbols (1 << kLenNumLowBits)
|
|
90
|
+
#define kLenNumHighBits 8
|
|
91
|
+
#define kLenNumHighSymbols (1 << kLenNumHighBits)
|
|
92
|
+
|
|
93
|
+
#define LenLow 0
|
|
94
|
+
#define LenHigh (LenLow + 2 * (kNumPosStatesMax << kLenNumLowBits))
|
|
95
|
+
#define kNumLenProbs (LenHigh + kLenNumHighSymbols)
|
|
96
|
+
|
|
97
|
+
#define LenChoice LenLow
|
|
98
|
+
#define LenChoice2 (LenLow + (1 << kLenNumLowBits))
|
|
99
|
+
|
|
100
|
+
#define kNumStates 12
|
|
101
|
+
#define kNumStates2 16
|
|
102
|
+
#define kNumLitStates 7
|
|
103
|
+
|
|
104
|
+
#define kStartPosModelIndex 4
|
|
105
|
+
#define kEndPosModelIndex 14
|
|
106
|
+
#define kNumFullDistances (1 << (kEndPosModelIndex >> 1))
|
|
107
|
+
|
|
108
|
+
#define kNumPosSlotBits 6
|
|
109
|
+
#define kNumLenToPosStates 4
|
|
110
|
+
|
|
111
|
+
#define kNumAlignBits 4
|
|
112
|
+
#define kAlignTableSize (1 << kNumAlignBits)
|
|
113
|
+
|
|
114
|
+
#define kMatchMinLen 2
|
|
115
|
+
#define kMatchSpecLenStart (kMatchMinLen + kLenNumLowSymbols * 2 + kLenNumHighSymbols)
|
|
116
|
+
|
|
117
|
+
/* External ASM code needs same CLzmaProb array layout. So don't change it. */
|
|
118
|
+
|
|
119
|
+
/* (probs_1664) is faster and better for code size at some platforms */
|
|
120
|
+
/*
|
|
121
|
+
#ifdef MY_CPU_X86_OR_AMD64
|
|
122
|
+
*/
|
|
123
|
+
#define kStartOffset 1664
|
|
124
|
+
#define GET_PROBS p->probs_1664
|
|
125
|
+
/*
|
|
126
|
+
#define GET_PROBS p->probs + kStartOffset
|
|
127
|
+
#else
|
|
128
|
+
#define kStartOffset 0
|
|
129
|
+
#define GET_PROBS p->probs
|
|
130
|
+
#endif
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
#define SpecPos (-kStartOffset)
|
|
134
|
+
#define IsRep0Long (SpecPos + kNumFullDistances)
|
|
135
|
+
#define RepLenCoder (IsRep0Long + (kNumStates2 << kNumPosBitsMax))
|
|
136
|
+
#define LenCoder (RepLenCoder + kNumLenProbs)
|
|
137
|
+
#define IsMatch (LenCoder + kNumLenProbs)
|
|
138
|
+
#define Align (IsMatch + (kNumStates2 << kNumPosBitsMax))
|
|
139
|
+
#define IsRep (Align + kAlignTableSize)
|
|
140
|
+
#define IsRepG0 (IsRep + kNumStates)
|
|
141
|
+
#define IsRepG1 (IsRepG0 + kNumStates)
|
|
142
|
+
#define IsRepG2 (IsRepG1 + kNumStates)
|
|
143
|
+
#define PosSlot (IsRepG2 + kNumStates)
|
|
144
|
+
#define Literal (PosSlot + (kNumLenToPosStates << kNumPosSlotBits))
|
|
145
|
+
#define NUM_BASE_PROBS (Literal + kStartOffset)
|
|
146
|
+
|
|
147
|
+
#if Align != 0 && kStartOffset != 0
|
|
148
|
+
#error Stop_Compiling_Bad_LZMA_kAlign
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#if NUM_BASE_PROBS != 1984
|
|
152
|
+
#error Stop_Compiling_Bad_LZMA_PROBS
|
|
153
|
+
#endif
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
#define LZMA_LIT_SIZE 0x300
|
|
157
|
+
|
|
158
|
+
#define LzmaProps_GetNumProbs(p) (NUM_BASE_PROBS + ((UInt32)LZMA_LIT_SIZE << ((p)->lc + (p)->lp)))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
#define CALC_POS_STATE(processedPos, pbMask) (((processedPos) & (pbMask)) << 4)
|
|
162
|
+
#define COMBINED_PS_STATE (posState + state)
|
|
163
|
+
#define GET_LEN_STATE (posState)
|
|
164
|
+
|
|
165
|
+
#define LZMA_DIC_MIN (1 << 12)
|
|
166
|
+
|
|
167
|
+
/*
|
|
168
|
+
p->remainLen : shows status of LZMA decoder:
|
|
169
|
+
< kMatchSpecLenStart : normal remain
|
|
170
|
+
= kMatchSpecLenStart : finished
|
|
171
|
+
= kMatchSpecLenStart + 1 : need init range coder
|
|
172
|
+
= kMatchSpecLenStart + 2 : need init range coder and state
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/* ---------- LZMA_DECODE_REAL ---------- */
|
|
176
|
+
/*
|
|
177
|
+
LzmaDec_DecodeReal_3() can be implemented in external ASM file.
|
|
178
|
+
3 - is the code compatibility version of that function for check at link time.
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
#define LZMA_DECODE_REAL LzmaDec_DecodeReal_3
|
|
182
|
+
|
|
183
|
+
/*
|
|
184
|
+
LZMA_DECODE_REAL()
|
|
185
|
+
In:
|
|
186
|
+
RangeCoder is normalized
|
|
187
|
+
if (p->dicPos == limit)
|
|
188
|
+
{
|
|
189
|
+
LzmaDec_TryDummy() was called before to exclude LITERAL and MATCH-REP cases.
|
|
190
|
+
So first symbol can be only MATCH-NON-REP. And if that MATCH-NON-REP symbol
|
|
191
|
+
is not END_OF_PAYALOAD_MARKER, then function returns error code.
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
Processing:
|
|
195
|
+
first LZMA symbol will be decoded in any case
|
|
196
|
+
All checks for limits are at the end of main loop,
|
|
197
|
+
It will decode new LZMA-symbols while (p->buf < bufLimit && dicPos < limit),
|
|
198
|
+
RangeCoder is still without last normalization when (p->buf < bufLimit) is being checked.
|
|
199
|
+
|
|
200
|
+
Out:
|
|
201
|
+
RangeCoder is normalized
|
|
202
|
+
Result:
|
|
203
|
+
SZ_OK - OK
|
|
204
|
+
SZ_ERROR_DATA - Error
|
|
205
|
+
p->remainLen:
|
|
206
|
+
< kMatchSpecLenStart : normal remain
|
|
207
|
+
= kMatchSpecLenStart : finished
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
#ifdef _LZMA_DEC_OPT
|
|
212
|
+
|
|
213
|
+
int MY_FAST_CALL LZMA_DECODE_REAL(CLzmaDec *p, SizeT limit, const Byte *bufLimit);
|
|
214
|
+
|
|
215
|
+
#else
|
|
216
|
+
|
|
217
|
+
static
|
|
218
|
+
int MY_FAST_CALL LZMA_DECODE_REAL(CLzmaDec *p, SizeT limit, const Byte *bufLimit)
|
|
219
|
+
{
|
|
220
|
+
CLzmaProb *probs = GET_PROBS;
|
|
221
|
+
unsigned state = (unsigned)p->state;
|
|
222
|
+
UInt32 rep0 = p->reps[0], rep1 = p->reps[1], rep2 = p->reps[2], rep3 = p->reps[3];
|
|
223
|
+
unsigned pbMask = ((unsigned)1 << (p->prop.pb)) - 1;
|
|
224
|
+
unsigned lc = p->prop.lc;
|
|
225
|
+
unsigned lpMask = ((unsigned)0x100 << p->prop.lp) - ((unsigned)0x100 >> lc);
|
|
226
|
+
|
|
227
|
+
Byte *dic = p->dic;
|
|
228
|
+
SizeT dicBufSize = p->dicBufSize;
|
|
229
|
+
SizeT dicPos = p->dicPos;
|
|
230
|
+
|
|
231
|
+
UInt32 processedPos = p->processedPos;
|
|
232
|
+
UInt32 checkDicSize = p->checkDicSize;
|
|
233
|
+
unsigned len = 0;
|
|
234
|
+
|
|
235
|
+
const Byte *buf = p->buf;
|
|
236
|
+
UInt32 range = p->range;
|
|
237
|
+
UInt32 code = p->code;
|
|
238
|
+
|
|
239
|
+
do
|
|
240
|
+
{
|
|
241
|
+
CLzmaProb *prob;
|
|
242
|
+
UInt32 bound;
|
|
243
|
+
unsigned ttt;
|
|
244
|
+
unsigned posState = CALC_POS_STATE(processedPos, pbMask);
|
|
245
|
+
|
|
246
|
+
prob = probs + IsMatch + COMBINED_PS_STATE;
|
|
247
|
+
IF_BIT_0(prob)
|
|
248
|
+
{
|
|
249
|
+
unsigned symbol;
|
|
250
|
+
UPDATE_0(prob);
|
|
251
|
+
prob = probs + Literal;
|
|
252
|
+
if (processedPos != 0 || checkDicSize != 0)
|
|
253
|
+
prob += (UInt32)3 * ((((processedPos << 8) + dic[(dicPos == 0 ? dicBufSize : dicPos) - 1]) & lpMask) << lc);
|
|
254
|
+
processedPos++;
|
|
255
|
+
|
|
256
|
+
if (state < kNumLitStates)
|
|
257
|
+
{
|
|
258
|
+
state -= (state < 4) ? state : 3;
|
|
259
|
+
symbol = 1;
|
|
260
|
+
#ifdef _LZMA_SIZE_OPT
|
|
261
|
+
do { NORMAL_LITER_DEC } while (symbol < 0x100);
|
|
262
|
+
#else
|
|
263
|
+
NORMAL_LITER_DEC
|
|
264
|
+
NORMAL_LITER_DEC
|
|
265
|
+
NORMAL_LITER_DEC
|
|
266
|
+
NORMAL_LITER_DEC
|
|
267
|
+
NORMAL_LITER_DEC
|
|
268
|
+
NORMAL_LITER_DEC
|
|
269
|
+
NORMAL_LITER_DEC
|
|
270
|
+
NORMAL_LITER_DEC
|
|
271
|
+
#endif
|
|
272
|
+
}
|
|
273
|
+
else
|
|
274
|
+
{
|
|
275
|
+
unsigned matchByte = dic[dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0)];
|
|
276
|
+
unsigned offs = 0x100;
|
|
277
|
+
state -= (state < 10) ? 3 : 6;
|
|
278
|
+
symbol = 1;
|
|
279
|
+
#ifdef _LZMA_SIZE_OPT
|
|
280
|
+
do
|
|
281
|
+
{
|
|
282
|
+
unsigned bit;
|
|
283
|
+
CLzmaProb *probLit;
|
|
284
|
+
MATCHED_LITER_DEC
|
|
285
|
+
}
|
|
286
|
+
while (symbol < 0x100);
|
|
287
|
+
#else
|
|
288
|
+
{
|
|
289
|
+
unsigned bit;
|
|
290
|
+
CLzmaProb *probLit;
|
|
291
|
+
MATCHED_LITER_DEC
|
|
292
|
+
MATCHED_LITER_DEC
|
|
293
|
+
MATCHED_LITER_DEC
|
|
294
|
+
MATCHED_LITER_DEC
|
|
295
|
+
MATCHED_LITER_DEC
|
|
296
|
+
MATCHED_LITER_DEC
|
|
297
|
+
MATCHED_LITER_DEC
|
|
298
|
+
MATCHED_LITER_DEC
|
|
299
|
+
}
|
|
300
|
+
#endif
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
dic[dicPos++] = (Byte)symbol;
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
{
|
|
308
|
+
UPDATE_1(prob);
|
|
309
|
+
prob = probs + IsRep + state;
|
|
310
|
+
IF_BIT_0(prob)
|
|
311
|
+
{
|
|
312
|
+
UPDATE_0(prob);
|
|
313
|
+
state += kNumStates;
|
|
314
|
+
prob = probs + LenCoder;
|
|
315
|
+
}
|
|
316
|
+
else
|
|
317
|
+
{
|
|
318
|
+
UPDATE_1(prob);
|
|
319
|
+
/*
|
|
320
|
+
// that case was checked before with kBadRepCode
|
|
321
|
+
if (checkDicSize == 0 && processedPos == 0)
|
|
322
|
+
return SZ_ERROR_DATA;
|
|
323
|
+
*/
|
|
324
|
+
prob = probs + IsRepG0 + state;
|
|
325
|
+
IF_BIT_0(prob)
|
|
326
|
+
{
|
|
327
|
+
UPDATE_0(prob);
|
|
328
|
+
prob = probs + IsRep0Long + COMBINED_PS_STATE;
|
|
329
|
+
IF_BIT_0(prob)
|
|
330
|
+
{
|
|
331
|
+
UPDATE_0(prob);
|
|
332
|
+
dic[dicPos] = dic[dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0)];
|
|
333
|
+
dicPos++;
|
|
334
|
+
processedPos++;
|
|
335
|
+
state = state < kNumLitStates ? 9 : 11;
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
UPDATE_1(prob);
|
|
339
|
+
}
|
|
340
|
+
else
|
|
341
|
+
{
|
|
342
|
+
UInt32 distance;
|
|
343
|
+
UPDATE_1(prob);
|
|
344
|
+
prob = probs + IsRepG1 + state;
|
|
345
|
+
IF_BIT_0(prob)
|
|
346
|
+
{
|
|
347
|
+
UPDATE_0(prob);
|
|
348
|
+
distance = rep1;
|
|
349
|
+
}
|
|
350
|
+
else
|
|
351
|
+
{
|
|
352
|
+
UPDATE_1(prob);
|
|
353
|
+
prob = probs + IsRepG2 + state;
|
|
354
|
+
IF_BIT_0(prob)
|
|
355
|
+
{
|
|
356
|
+
UPDATE_0(prob);
|
|
357
|
+
distance = rep2;
|
|
358
|
+
}
|
|
359
|
+
else
|
|
360
|
+
{
|
|
361
|
+
UPDATE_1(prob);
|
|
362
|
+
distance = rep3;
|
|
363
|
+
rep3 = rep2;
|
|
364
|
+
}
|
|
365
|
+
rep2 = rep1;
|
|
366
|
+
}
|
|
367
|
+
rep1 = rep0;
|
|
368
|
+
rep0 = distance;
|
|
369
|
+
}
|
|
370
|
+
state = state < kNumLitStates ? 8 : 11;
|
|
371
|
+
prob = probs + RepLenCoder;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
#ifdef _LZMA_SIZE_OPT
|
|
375
|
+
{
|
|
376
|
+
unsigned lim, offset;
|
|
377
|
+
CLzmaProb *probLen = prob + LenChoice;
|
|
378
|
+
IF_BIT_0(probLen)
|
|
379
|
+
{
|
|
380
|
+
UPDATE_0(probLen);
|
|
381
|
+
probLen = prob + LenLow + GET_LEN_STATE;
|
|
382
|
+
offset = 0;
|
|
383
|
+
lim = (1 << kLenNumLowBits);
|
|
384
|
+
}
|
|
385
|
+
else
|
|
386
|
+
{
|
|
387
|
+
UPDATE_1(probLen);
|
|
388
|
+
probLen = prob + LenChoice2;
|
|
389
|
+
IF_BIT_0(probLen)
|
|
390
|
+
{
|
|
391
|
+
UPDATE_0(probLen);
|
|
392
|
+
probLen = prob + LenLow + GET_LEN_STATE + (1 << kLenNumLowBits);
|
|
393
|
+
offset = kLenNumLowSymbols;
|
|
394
|
+
lim = (1 << kLenNumLowBits);
|
|
395
|
+
}
|
|
396
|
+
else
|
|
397
|
+
{
|
|
398
|
+
UPDATE_1(probLen);
|
|
399
|
+
probLen = prob + LenHigh;
|
|
400
|
+
offset = kLenNumLowSymbols * 2;
|
|
401
|
+
lim = (1 << kLenNumHighBits);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
TREE_DECODE(probLen, lim, len);
|
|
405
|
+
len += offset;
|
|
406
|
+
}
|
|
407
|
+
#else
|
|
408
|
+
{
|
|
409
|
+
CLzmaProb *probLen = prob + LenChoice;
|
|
410
|
+
IF_BIT_0(probLen)
|
|
411
|
+
{
|
|
412
|
+
UPDATE_0(probLen);
|
|
413
|
+
probLen = prob + LenLow + GET_LEN_STATE;
|
|
414
|
+
len = 1;
|
|
415
|
+
TREE_GET_BIT(probLen, len);
|
|
416
|
+
TREE_GET_BIT(probLen, len);
|
|
417
|
+
TREE_GET_BIT(probLen, len);
|
|
418
|
+
len -= 8;
|
|
419
|
+
}
|
|
420
|
+
else
|
|
421
|
+
{
|
|
422
|
+
UPDATE_1(probLen);
|
|
423
|
+
probLen = prob + LenChoice2;
|
|
424
|
+
IF_BIT_0(probLen)
|
|
425
|
+
{
|
|
426
|
+
UPDATE_0(probLen);
|
|
427
|
+
probLen = prob + LenLow + GET_LEN_STATE + (1 << kLenNumLowBits);
|
|
428
|
+
len = 1;
|
|
429
|
+
TREE_GET_BIT(probLen, len);
|
|
430
|
+
TREE_GET_BIT(probLen, len);
|
|
431
|
+
TREE_GET_BIT(probLen, len);
|
|
432
|
+
}
|
|
433
|
+
else
|
|
434
|
+
{
|
|
435
|
+
UPDATE_1(probLen);
|
|
436
|
+
probLen = prob + LenHigh;
|
|
437
|
+
TREE_DECODE(probLen, (1 << kLenNumHighBits), len);
|
|
438
|
+
len += kLenNumLowSymbols * 2;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
#endif
|
|
443
|
+
|
|
444
|
+
if (state >= kNumStates)
|
|
445
|
+
{
|
|
446
|
+
UInt32 distance;
|
|
447
|
+
prob = probs + PosSlot +
|
|
448
|
+
((len < kNumLenToPosStates ? len : kNumLenToPosStates - 1) << kNumPosSlotBits);
|
|
449
|
+
TREE_6_DECODE(prob, distance);
|
|
450
|
+
if (distance >= kStartPosModelIndex)
|
|
451
|
+
{
|
|
452
|
+
unsigned posSlot = (unsigned)distance;
|
|
453
|
+
unsigned numDirectBits = (unsigned)(((distance >> 1) - 1));
|
|
454
|
+
distance = (2 | (distance & 1));
|
|
455
|
+
if (posSlot < kEndPosModelIndex)
|
|
456
|
+
{
|
|
457
|
+
distance <<= numDirectBits;
|
|
458
|
+
prob = probs + SpecPos;
|
|
459
|
+
{
|
|
460
|
+
UInt32 m = 1;
|
|
461
|
+
distance++;
|
|
462
|
+
do
|
|
463
|
+
{
|
|
464
|
+
REV_BIT_VAR(prob, distance, m);
|
|
465
|
+
}
|
|
466
|
+
while (--numDirectBits);
|
|
467
|
+
distance -= m;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
else
|
|
471
|
+
{
|
|
472
|
+
numDirectBits -= kNumAlignBits;
|
|
473
|
+
do
|
|
474
|
+
{
|
|
475
|
+
NORMALIZE
|
|
476
|
+
range >>= 1;
|
|
477
|
+
|
|
478
|
+
{
|
|
479
|
+
UInt32 t;
|
|
480
|
+
code -= range;
|
|
481
|
+
t = (0 - ((UInt32)code >> 31)); /* (UInt32)((Int32)code >> 31) */
|
|
482
|
+
distance = (distance << 1) + (t + 1);
|
|
483
|
+
code += range & t;
|
|
484
|
+
}
|
|
485
|
+
/*
|
|
486
|
+
distance <<= 1;
|
|
487
|
+
if (code >= range)
|
|
488
|
+
{
|
|
489
|
+
code -= range;
|
|
490
|
+
distance |= 1;
|
|
491
|
+
}
|
|
492
|
+
*/
|
|
493
|
+
}
|
|
494
|
+
while (--numDirectBits);
|
|
495
|
+
prob = probs + Align;
|
|
496
|
+
distance <<= kNumAlignBits;
|
|
497
|
+
{
|
|
498
|
+
unsigned i = 1;
|
|
499
|
+
REV_BIT_CONST(prob, i, 1);
|
|
500
|
+
REV_BIT_CONST(prob, i, 2);
|
|
501
|
+
REV_BIT_CONST(prob, i, 4);
|
|
502
|
+
REV_BIT_LAST (prob, i, 8);
|
|
503
|
+
distance |= i;
|
|
504
|
+
}
|
|
505
|
+
if (distance == (UInt32)0xFFFFFFFF)
|
|
506
|
+
{
|
|
507
|
+
len = kMatchSpecLenStart;
|
|
508
|
+
state -= kNumStates;
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
rep3 = rep2;
|
|
515
|
+
rep2 = rep1;
|
|
516
|
+
rep1 = rep0;
|
|
517
|
+
rep0 = distance + 1;
|
|
518
|
+
state = (state < kNumStates + kNumLitStates) ? kNumLitStates : kNumLitStates + 3;
|
|
519
|
+
if (distance >= (checkDicSize == 0 ? processedPos: checkDicSize))
|
|
520
|
+
{
|
|
521
|
+
p->dicPos = dicPos;
|
|
522
|
+
return SZ_ERROR_DATA;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
len += kMatchMinLen;
|
|
527
|
+
|
|
528
|
+
{
|
|
529
|
+
SizeT rem;
|
|
530
|
+
unsigned curLen;
|
|
531
|
+
SizeT pos;
|
|
532
|
+
|
|
533
|
+
if ((rem = limit - dicPos) == 0)
|
|
534
|
+
{
|
|
535
|
+
p->dicPos = dicPos;
|
|
536
|
+
return SZ_ERROR_DATA;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
curLen = ((rem < len) ? (unsigned)rem : len);
|
|
540
|
+
pos = dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0);
|
|
541
|
+
|
|
542
|
+
processedPos += (UInt32)curLen;
|
|
543
|
+
|
|
544
|
+
len -= curLen;
|
|
545
|
+
if (curLen <= dicBufSize - pos)
|
|
546
|
+
{
|
|
547
|
+
Byte *dest = dic + dicPos;
|
|
548
|
+
ptrdiff_t src = (ptrdiff_t)pos - (ptrdiff_t)dicPos;
|
|
549
|
+
const Byte *lim = dest + curLen;
|
|
550
|
+
dicPos += (SizeT)curLen;
|
|
551
|
+
do
|
|
552
|
+
*(dest) = (Byte)*(dest + src);
|
|
553
|
+
while (++dest != lim);
|
|
554
|
+
}
|
|
555
|
+
else
|
|
556
|
+
{
|
|
557
|
+
do
|
|
558
|
+
{
|
|
559
|
+
dic[dicPos++] = dic[pos];
|
|
560
|
+
if (++pos == dicBufSize)
|
|
561
|
+
pos = 0;
|
|
562
|
+
}
|
|
563
|
+
while (--curLen != 0);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
while (dicPos < limit && buf < bufLimit);
|
|
569
|
+
|
|
570
|
+
NORMALIZE;
|
|
571
|
+
|
|
572
|
+
p->buf = buf;
|
|
573
|
+
p->range = range;
|
|
574
|
+
p->code = code;
|
|
575
|
+
p->remainLen = (UInt32)len;
|
|
576
|
+
p->dicPos = dicPos;
|
|
577
|
+
p->processedPos = processedPos;
|
|
578
|
+
p->reps[0] = rep0;
|
|
579
|
+
p->reps[1] = rep1;
|
|
580
|
+
p->reps[2] = rep2;
|
|
581
|
+
p->reps[3] = rep3;
|
|
582
|
+
p->state = (UInt32)state;
|
|
583
|
+
|
|
584
|
+
return SZ_OK;
|
|
585
|
+
}
|
|
586
|
+
#endif
|
|
587
|
+
|
|
588
|
+
static void MY_FAST_CALL LzmaDec_WriteRem(CLzmaDec *p, SizeT limit)
|
|
589
|
+
{
|
|
590
|
+
if (p->remainLen != 0 && p->remainLen < kMatchSpecLenStart)
|
|
591
|
+
{
|
|
592
|
+
Byte *dic = p->dic;
|
|
593
|
+
SizeT dicPos = p->dicPos;
|
|
594
|
+
SizeT dicBufSize = p->dicBufSize;
|
|
595
|
+
unsigned len = (unsigned)p->remainLen;
|
|
596
|
+
SizeT rep0 = p->reps[0]; /* we use SizeT to avoid the BUG of VC14 for AMD64 */
|
|
597
|
+
SizeT rem = limit - dicPos;
|
|
598
|
+
if (rem < len)
|
|
599
|
+
len = (unsigned)(rem);
|
|
600
|
+
|
|
601
|
+
if (p->checkDicSize == 0 && p->prop.dicSize - p->processedPos <= len)
|
|
602
|
+
p->checkDicSize = p->prop.dicSize;
|
|
603
|
+
|
|
604
|
+
p->processedPos += (UInt32)len;
|
|
605
|
+
p->remainLen -= (UInt32)len;
|
|
606
|
+
while (len != 0)
|
|
607
|
+
{
|
|
608
|
+
len--;
|
|
609
|
+
dic[dicPos] = dic[dicPos - rep0 + (dicPos < rep0 ? dicBufSize : 0)];
|
|
610
|
+
dicPos++;
|
|
611
|
+
}
|
|
612
|
+
p->dicPos = dicPos;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
#define kRange0 0xFFFFFFFF
|
|
618
|
+
#define kBound0 ((kRange0 >> kNumBitModelTotalBits) << (kNumBitModelTotalBits - 1))
|
|
619
|
+
#define kBadRepCode (kBound0 + (((kRange0 - kBound0) >> kNumBitModelTotalBits) << (kNumBitModelTotalBits - 1)))
|
|
620
|
+
#if kBadRepCode != (0xC0000000 - 0x400)
|
|
621
|
+
#error Stop_Compiling_Bad_LZMA_Check
|
|
622
|
+
#endif
|
|
623
|
+
|
|
624
|
+
static int MY_FAST_CALL LzmaDec_DecodeReal2(CLzmaDec *p, SizeT limit, const Byte *bufLimit)
|
|
625
|
+
{
|
|
626
|
+
do
|
|
627
|
+
{
|
|
628
|
+
SizeT limit2 = limit;
|
|
629
|
+
if (p->checkDicSize == 0)
|
|
630
|
+
{
|
|
631
|
+
UInt32 rem = p->prop.dicSize - p->processedPos;
|
|
632
|
+
if (limit - p->dicPos > rem)
|
|
633
|
+
limit2 = p->dicPos + rem;
|
|
634
|
+
|
|
635
|
+
if (p->processedPos == 0)
|
|
636
|
+
if (p->code >= kBadRepCode)
|
|
637
|
+
return SZ_ERROR_DATA;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
RINOK(LZMA_DECODE_REAL(p, limit2, bufLimit));
|
|
641
|
+
|
|
642
|
+
if (p->checkDicSize == 0 && p->processedPos >= p->prop.dicSize)
|
|
643
|
+
p->checkDicSize = p->prop.dicSize;
|
|
644
|
+
|
|
645
|
+
LzmaDec_WriteRem(p, limit);
|
|
646
|
+
}
|
|
647
|
+
while (p->dicPos < limit && p->buf < bufLimit && p->remainLen < kMatchSpecLenStart);
|
|
648
|
+
|
|
649
|
+
return 0;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
typedef enum
|
|
653
|
+
{
|
|
654
|
+
DUMMY_ERROR, /* unexpected end of input stream */
|
|
655
|
+
DUMMY_LIT,
|
|
656
|
+
DUMMY_MATCH,
|
|
657
|
+
DUMMY_REP
|
|
658
|
+
} ELzmaDummy;
|
|
659
|
+
|
|
660
|
+
static ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const Byte *buf, SizeT inSize)
|
|
661
|
+
{
|
|
662
|
+
UInt32 range = p->range;
|
|
663
|
+
UInt32 code = p->code;
|
|
664
|
+
const Byte *bufLimit = buf + inSize;
|
|
665
|
+
const CLzmaProb *probs = GET_PROBS;
|
|
666
|
+
unsigned state = (unsigned)p->state;
|
|
667
|
+
ELzmaDummy res;
|
|
668
|
+
|
|
669
|
+
{
|
|
670
|
+
const CLzmaProb *prob;
|
|
671
|
+
UInt32 bound;
|
|
672
|
+
unsigned ttt;
|
|
673
|
+
unsigned posState = CALC_POS_STATE(p->processedPos, (1 << p->prop.pb) - 1);
|
|
674
|
+
|
|
675
|
+
prob = probs + IsMatch + COMBINED_PS_STATE;
|
|
676
|
+
IF_BIT_0_CHECK(prob)
|
|
677
|
+
{
|
|
678
|
+
UPDATE_0_CHECK
|
|
679
|
+
|
|
680
|
+
/* if (bufLimit - buf >= 7) return DUMMY_LIT; */
|
|
681
|
+
|
|
682
|
+
prob = probs + Literal;
|
|
683
|
+
if (p->checkDicSize != 0 || p->processedPos != 0)
|
|
684
|
+
prob += ((UInt32)LZMA_LIT_SIZE *
|
|
685
|
+
((((p->processedPos) & ((1 << (p->prop.lp)) - 1)) << p->prop.lc) +
|
|
686
|
+
(p->dic[(p->dicPos == 0 ? p->dicBufSize : p->dicPos) - 1] >> (8 - p->prop.lc))));
|
|
687
|
+
|
|
688
|
+
if (state < kNumLitStates)
|
|
689
|
+
{
|
|
690
|
+
unsigned symbol = 1;
|
|
691
|
+
do { GET_BIT_CHECK(prob + symbol, symbol) } while (symbol < 0x100);
|
|
692
|
+
}
|
|
693
|
+
else
|
|
694
|
+
{
|
|
695
|
+
unsigned matchByte = p->dic[p->dicPos - p->reps[0] +
|
|
696
|
+
(p->dicPos < p->reps[0] ? p->dicBufSize : 0)];
|
|
697
|
+
unsigned offs = 0x100;
|
|
698
|
+
unsigned symbol = 1;
|
|
699
|
+
do
|
|
700
|
+
{
|
|
701
|
+
unsigned bit;
|
|
702
|
+
const CLzmaProb *probLit;
|
|
703
|
+
matchByte += matchByte;
|
|
704
|
+
bit = offs;
|
|
705
|
+
offs &= matchByte;
|
|
706
|
+
probLit = prob + (offs + bit + symbol);
|
|
707
|
+
GET_BIT2_CHECK(probLit, symbol, offs ^= bit; , ; )
|
|
708
|
+
}
|
|
709
|
+
while (symbol < 0x100);
|
|
710
|
+
}
|
|
711
|
+
res = DUMMY_LIT;
|
|
712
|
+
}
|
|
713
|
+
else
|
|
714
|
+
{
|
|
715
|
+
unsigned len;
|
|
716
|
+
UPDATE_1_CHECK;
|
|
717
|
+
|
|
718
|
+
prob = probs + IsRep + state;
|
|
719
|
+
IF_BIT_0_CHECK(prob)
|
|
720
|
+
{
|
|
721
|
+
UPDATE_0_CHECK;
|
|
722
|
+
state = 0;
|
|
723
|
+
prob = probs + LenCoder;
|
|
724
|
+
res = DUMMY_MATCH;
|
|
725
|
+
}
|
|
726
|
+
else
|
|
727
|
+
{
|
|
728
|
+
UPDATE_1_CHECK;
|
|
729
|
+
res = DUMMY_REP;
|
|
730
|
+
prob = probs + IsRepG0 + state;
|
|
731
|
+
IF_BIT_0_CHECK(prob)
|
|
732
|
+
{
|
|
733
|
+
UPDATE_0_CHECK;
|
|
734
|
+
prob = probs + IsRep0Long + COMBINED_PS_STATE;
|
|
735
|
+
IF_BIT_0_CHECK(prob)
|
|
736
|
+
{
|
|
737
|
+
UPDATE_0_CHECK;
|
|
738
|
+
NORMALIZE_CHECK;
|
|
739
|
+
return DUMMY_REP;
|
|
740
|
+
}
|
|
741
|
+
else
|
|
742
|
+
{
|
|
743
|
+
UPDATE_1_CHECK;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
else
|
|
747
|
+
{
|
|
748
|
+
UPDATE_1_CHECK;
|
|
749
|
+
prob = probs + IsRepG1 + state;
|
|
750
|
+
IF_BIT_0_CHECK(prob)
|
|
751
|
+
{
|
|
752
|
+
UPDATE_0_CHECK;
|
|
753
|
+
}
|
|
754
|
+
else
|
|
755
|
+
{
|
|
756
|
+
UPDATE_1_CHECK;
|
|
757
|
+
prob = probs + IsRepG2 + state;
|
|
758
|
+
IF_BIT_0_CHECK(prob)
|
|
759
|
+
{
|
|
760
|
+
UPDATE_0_CHECK;
|
|
761
|
+
}
|
|
762
|
+
else
|
|
763
|
+
{
|
|
764
|
+
UPDATE_1_CHECK;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
state = kNumStates;
|
|
769
|
+
prob = probs + RepLenCoder;
|
|
770
|
+
}
|
|
771
|
+
{
|
|
772
|
+
unsigned limit, offset;
|
|
773
|
+
const CLzmaProb *probLen = prob + LenChoice;
|
|
774
|
+
IF_BIT_0_CHECK(probLen)
|
|
775
|
+
{
|
|
776
|
+
UPDATE_0_CHECK;
|
|
777
|
+
probLen = prob + LenLow + GET_LEN_STATE;
|
|
778
|
+
offset = 0;
|
|
779
|
+
limit = 1 << kLenNumLowBits;
|
|
780
|
+
}
|
|
781
|
+
else
|
|
782
|
+
{
|
|
783
|
+
UPDATE_1_CHECK;
|
|
784
|
+
probLen = prob + LenChoice2;
|
|
785
|
+
IF_BIT_0_CHECK(probLen)
|
|
786
|
+
{
|
|
787
|
+
UPDATE_0_CHECK;
|
|
788
|
+
probLen = prob + LenLow + GET_LEN_STATE + (1 << kLenNumLowBits);
|
|
789
|
+
offset = kLenNumLowSymbols;
|
|
790
|
+
limit = 1 << kLenNumLowBits;
|
|
791
|
+
}
|
|
792
|
+
else
|
|
793
|
+
{
|
|
794
|
+
UPDATE_1_CHECK;
|
|
795
|
+
probLen = prob + LenHigh;
|
|
796
|
+
offset = kLenNumLowSymbols * 2;
|
|
797
|
+
limit = 1 << kLenNumHighBits;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
TREE_DECODE_CHECK(probLen, limit, len);
|
|
801
|
+
len += offset;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (state < 4)
|
|
805
|
+
{
|
|
806
|
+
unsigned posSlot;
|
|
807
|
+
prob = probs + PosSlot +
|
|
808
|
+
((len < kNumLenToPosStates - 1 ? len : kNumLenToPosStates - 1) <<
|
|
809
|
+
kNumPosSlotBits);
|
|
810
|
+
TREE_DECODE_CHECK(prob, 1 << kNumPosSlotBits, posSlot);
|
|
811
|
+
if (posSlot >= kStartPosModelIndex)
|
|
812
|
+
{
|
|
813
|
+
unsigned numDirectBits = ((posSlot >> 1) - 1);
|
|
814
|
+
|
|
815
|
+
/* if (bufLimit - buf >= 8) return DUMMY_MATCH; */
|
|
816
|
+
|
|
817
|
+
if (posSlot < kEndPosModelIndex)
|
|
818
|
+
{
|
|
819
|
+
prob = probs + SpecPos + ((2 | (posSlot & 1)) << numDirectBits);
|
|
820
|
+
}
|
|
821
|
+
else
|
|
822
|
+
{
|
|
823
|
+
numDirectBits -= kNumAlignBits;
|
|
824
|
+
do
|
|
825
|
+
{
|
|
826
|
+
NORMALIZE_CHECK
|
|
827
|
+
range >>= 1;
|
|
828
|
+
code -= range & (((code - range) >> 31) - 1);
|
|
829
|
+
/* if (code >= range) code -= range; */
|
|
830
|
+
}
|
|
831
|
+
while (--numDirectBits);
|
|
832
|
+
prob = probs + Align;
|
|
833
|
+
numDirectBits = kNumAlignBits;
|
|
834
|
+
}
|
|
835
|
+
{
|
|
836
|
+
unsigned i = 1;
|
|
837
|
+
unsigned m = 1;
|
|
838
|
+
do
|
|
839
|
+
{
|
|
840
|
+
REV_BIT_CHECK(prob, i, m);
|
|
841
|
+
}
|
|
842
|
+
while (--numDirectBits);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
NORMALIZE_CHECK;
|
|
849
|
+
return res;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
void LzmaDec_InitDicAndState(CLzmaDec *p, BoolInt initDic, BoolInt initState)
|
|
854
|
+
{
|
|
855
|
+
p->remainLen = kMatchSpecLenStart + 1;
|
|
856
|
+
p->tempBufSize = 0;
|
|
857
|
+
|
|
858
|
+
if (initDic)
|
|
859
|
+
{
|
|
860
|
+
p->processedPos = 0;
|
|
861
|
+
p->checkDicSize = 0;
|
|
862
|
+
p->remainLen = kMatchSpecLenStart + 2;
|
|
863
|
+
}
|
|
864
|
+
if (initState)
|
|
865
|
+
p->remainLen = kMatchSpecLenStart + 2;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
void LzmaDec_Init(CLzmaDec *p)
|
|
869
|
+
{
|
|
870
|
+
p->dicPos = 0;
|
|
871
|
+
LzmaDec_InitDicAndState(p, True, True);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen,
|
|
876
|
+
ELzmaFinishMode finishMode, ELzmaStatus *status)
|
|
877
|
+
{
|
|
878
|
+
SizeT inSize = *srcLen;
|
|
879
|
+
(*srcLen) = 0;
|
|
880
|
+
|
|
881
|
+
*status = LZMA_STATUS_NOT_SPECIFIED;
|
|
882
|
+
|
|
883
|
+
if (p->remainLen > kMatchSpecLenStart)
|
|
884
|
+
{
|
|
885
|
+
for (; inSize > 0 && p->tempBufSize < RC_INIT_SIZE; (*srcLen)++, inSize--)
|
|
886
|
+
p->tempBuf[p->tempBufSize++] = *src++;
|
|
887
|
+
if (p->tempBufSize != 0 && p->tempBuf[0] != 0)
|
|
888
|
+
return SZ_ERROR_DATA;
|
|
889
|
+
if (p->tempBufSize < RC_INIT_SIZE)
|
|
890
|
+
{
|
|
891
|
+
*status = LZMA_STATUS_NEEDS_MORE_INPUT;
|
|
892
|
+
return SZ_OK;
|
|
893
|
+
}
|
|
894
|
+
p->code =
|
|
895
|
+
((UInt32)p->tempBuf[1] << 24)
|
|
896
|
+
| ((UInt32)p->tempBuf[2] << 16)
|
|
897
|
+
| ((UInt32)p->tempBuf[3] << 8)
|
|
898
|
+
| ((UInt32)p->tempBuf[4]);
|
|
899
|
+
p->range = 0xFFFFFFFF;
|
|
900
|
+
p->tempBufSize = 0;
|
|
901
|
+
|
|
902
|
+
if (p->remainLen > kMatchSpecLenStart + 1)
|
|
903
|
+
{
|
|
904
|
+
SizeT numProbs = LzmaProps_GetNumProbs(&p->prop);
|
|
905
|
+
SizeT i;
|
|
906
|
+
CLzmaProb *probs = p->probs;
|
|
907
|
+
for (i = 0; i < numProbs; i++)
|
|
908
|
+
probs[i] = kBitModelTotal >> 1;
|
|
909
|
+
p->reps[0] = p->reps[1] = p->reps[2] = p->reps[3] = 1;
|
|
910
|
+
p->state = 0;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
p->remainLen = 0;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
LzmaDec_WriteRem(p, dicLimit);
|
|
917
|
+
|
|
918
|
+
while (p->remainLen != kMatchSpecLenStart)
|
|
919
|
+
{
|
|
920
|
+
int checkEndMarkNow = 0;
|
|
921
|
+
|
|
922
|
+
if (p->dicPos >= dicLimit)
|
|
923
|
+
{
|
|
924
|
+
if (p->remainLen == 0 && p->code == 0)
|
|
925
|
+
{
|
|
926
|
+
*status = LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK;
|
|
927
|
+
return SZ_OK;
|
|
928
|
+
}
|
|
929
|
+
if (finishMode == LZMA_FINISH_ANY)
|
|
930
|
+
{
|
|
931
|
+
*status = LZMA_STATUS_NOT_FINISHED;
|
|
932
|
+
return SZ_OK;
|
|
933
|
+
}
|
|
934
|
+
if (p->remainLen != 0)
|
|
935
|
+
{
|
|
936
|
+
*status = LZMA_STATUS_NOT_FINISHED;
|
|
937
|
+
return SZ_ERROR_DATA;
|
|
938
|
+
}
|
|
939
|
+
checkEndMarkNow = 1;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (p->tempBufSize == 0)
|
|
943
|
+
{
|
|
944
|
+
SizeT processed;
|
|
945
|
+
const Byte *bufLimit;
|
|
946
|
+
if (inSize < LZMA_REQUIRED_INPUT_MAX || checkEndMarkNow)
|
|
947
|
+
{
|
|
948
|
+
int dummyRes = LzmaDec_TryDummy(p, src, inSize);
|
|
949
|
+
if (dummyRes == DUMMY_ERROR)
|
|
950
|
+
{
|
|
951
|
+
memcpy(p->tempBuf, src, inSize);
|
|
952
|
+
p->tempBufSize = (unsigned)inSize;
|
|
953
|
+
(*srcLen) += inSize;
|
|
954
|
+
*status = LZMA_STATUS_NEEDS_MORE_INPUT;
|
|
955
|
+
return SZ_OK;
|
|
956
|
+
}
|
|
957
|
+
if (checkEndMarkNow && dummyRes != DUMMY_MATCH)
|
|
958
|
+
{
|
|
959
|
+
*status = LZMA_STATUS_NOT_FINISHED;
|
|
960
|
+
return SZ_ERROR_DATA;
|
|
961
|
+
}
|
|
962
|
+
bufLimit = src;
|
|
963
|
+
}
|
|
964
|
+
else
|
|
965
|
+
bufLimit = src + inSize - LZMA_REQUIRED_INPUT_MAX;
|
|
966
|
+
p->buf = src;
|
|
967
|
+
if (LzmaDec_DecodeReal2(p, dicLimit, bufLimit) != 0)
|
|
968
|
+
return SZ_ERROR_DATA;
|
|
969
|
+
processed = (SizeT)(p->buf - src);
|
|
970
|
+
(*srcLen) += processed;
|
|
971
|
+
src += processed;
|
|
972
|
+
inSize -= processed;
|
|
973
|
+
}
|
|
974
|
+
else
|
|
975
|
+
{
|
|
976
|
+
unsigned rem = p->tempBufSize, lookAhead = 0;
|
|
977
|
+
while (rem < LZMA_REQUIRED_INPUT_MAX && lookAhead < inSize)
|
|
978
|
+
p->tempBuf[rem++] = src[lookAhead++];
|
|
979
|
+
p->tempBufSize = rem;
|
|
980
|
+
if (rem < LZMA_REQUIRED_INPUT_MAX || checkEndMarkNow)
|
|
981
|
+
{
|
|
982
|
+
int dummyRes = LzmaDec_TryDummy(p, p->tempBuf, (SizeT)rem);
|
|
983
|
+
if (dummyRes == DUMMY_ERROR)
|
|
984
|
+
{
|
|
985
|
+
(*srcLen) += (SizeT)lookAhead;
|
|
986
|
+
*status = LZMA_STATUS_NEEDS_MORE_INPUT;
|
|
987
|
+
return SZ_OK;
|
|
988
|
+
}
|
|
989
|
+
if (checkEndMarkNow && dummyRes != DUMMY_MATCH)
|
|
990
|
+
{
|
|
991
|
+
*status = LZMA_STATUS_NOT_FINISHED;
|
|
992
|
+
return SZ_ERROR_DATA;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
p->buf = p->tempBuf;
|
|
996
|
+
if (LzmaDec_DecodeReal2(p, dicLimit, p->buf) != 0)
|
|
997
|
+
return SZ_ERROR_DATA;
|
|
998
|
+
|
|
999
|
+
{
|
|
1000
|
+
unsigned kkk = (unsigned)(p->buf - p->tempBuf);
|
|
1001
|
+
if (rem < kkk)
|
|
1002
|
+
return SZ_ERROR_FAIL; /* some internal error */
|
|
1003
|
+
rem -= kkk;
|
|
1004
|
+
if (lookAhead < rem)
|
|
1005
|
+
return SZ_ERROR_FAIL; /* some internal error */
|
|
1006
|
+
lookAhead -= rem;
|
|
1007
|
+
}
|
|
1008
|
+
(*srcLen) += (SizeT)lookAhead;
|
|
1009
|
+
src += lookAhead;
|
|
1010
|
+
inSize -= (SizeT)lookAhead;
|
|
1011
|
+
p->tempBufSize = 0;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
if (p->code != 0)
|
|
1016
|
+
return SZ_ERROR_DATA;
|
|
1017
|
+
*status = LZMA_STATUS_FINISHED_WITH_MARK;
|
|
1018
|
+
return SZ_OK;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
|
|
1023
|
+
{
|
|
1024
|
+
SizeT outSize = *destLen;
|
|
1025
|
+
SizeT inSize = *srcLen;
|
|
1026
|
+
*srcLen = *destLen = 0;
|
|
1027
|
+
for (;;)
|
|
1028
|
+
{
|
|
1029
|
+
SizeT inSizeCur = inSize, outSizeCur, dicPos;
|
|
1030
|
+
ELzmaFinishMode curFinishMode;
|
|
1031
|
+
SRes res;
|
|
1032
|
+
if (p->dicPos == p->dicBufSize)
|
|
1033
|
+
p->dicPos = 0;
|
|
1034
|
+
dicPos = p->dicPos;
|
|
1035
|
+
if (outSize > p->dicBufSize - dicPos)
|
|
1036
|
+
{
|
|
1037
|
+
outSizeCur = p->dicBufSize;
|
|
1038
|
+
curFinishMode = LZMA_FINISH_ANY;
|
|
1039
|
+
}
|
|
1040
|
+
else
|
|
1041
|
+
{
|
|
1042
|
+
outSizeCur = dicPos + outSize;
|
|
1043
|
+
curFinishMode = finishMode;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
res = LzmaDec_DecodeToDic(p, outSizeCur, src, &inSizeCur, curFinishMode, status);
|
|
1047
|
+
src += inSizeCur;
|
|
1048
|
+
inSize -= inSizeCur;
|
|
1049
|
+
*srcLen += inSizeCur;
|
|
1050
|
+
outSizeCur = p->dicPos - dicPos;
|
|
1051
|
+
memcpy(dest, p->dic + dicPos, outSizeCur);
|
|
1052
|
+
dest += outSizeCur;
|
|
1053
|
+
outSize -= outSizeCur;
|
|
1054
|
+
*destLen += outSizeCur;
|
|
1055
|
+
if (res != 0)
|
|
1056
|
+
return res;
|
|
1057
|
+
if (outSizeCur == 0 || outSize == 0)
|
|
1058
|
+
return SZ_OK;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
void LzmaDec_FreeProbs(CLzmaDec *p, ISzAllocPtr alloc)
|
|
1063
|
+
{
|
|
1064
|
+
ISzAlloc_Free(alloc, p->probs);
|
|
1065
|
+
p->probs = NULL;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
static void LzmaDec_FreeDict(CLzmaDec *p, ISzAllocPtr alloc)
|
|
1069
|
+
{
|
|
1070
|
+
ISzAlloc_Free(alloc, p->dic);
|
|
1071
|
+
p->dic = NULL;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
void LzmaDec_Free(CLzmaDec *p, ISzAllocPtr alloc)
|
|
1075
|
+
{
|
|
1076
|
+
LzmaDec_FreeProbs(p, alloc);
|
|
1077
|
+
LzmaDec_FreeDict(p, alloc);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size)
|
|
1081
|
+
{
|
|
1082
|
+
UInt32 dicSize;
|
|
1083
|
+
Byte d;
|
|
1084
|
+
|
|
1085
|
+
if (size < LZMA_PROPS_SIZE)
|
|
1086
|
+
return SZ_ERROR_UNSUPPORTED;
|
|
1087
|
+
else
|
|
1088
|
+
dicSize = data[1] | ((UInt32)data[2] << 8) | ((UInt32)data[3] << 16) | ((UInt32)data[4] << 24);
|
|
1089
|
+
|
|
1090
|
+
if (dicSize < LZMA_DIC_MIN)
|
|
1091
|
+
dicSize = LZMA_DIC_MIN;
|
|
1092
|
+
p->dicSize = dicSize;
|
|
1093
|
+
|
|
1094
|
+
d = data[0];
|
|
1095
|
+
if (d >= (9 * 5 * 5))
|
|
1096
|
+
return SZ_ERROR_UNSUPPORTED;
|
|
1097
|
+
|
|
1098
|
+
p->lc = (Byte)(d % 9);
|
|
1099
|
+
d /= 9;
|
|
1100
|
+
p->pb = (Byte)(d / 5);
|
|
1101
|
+
p->lp = (Byte)(d % 5);
|
|
1102
|
+
|
|
1103
|
+
return SZ_OK;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
static SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew, ISzAllocPtr alloc)
|
|
1107
|
+
{
|
|
1108
|
+
UInt32 numProbs = LzmaProps_GetNumProbs(propNew);
|
|
1109
|
+
if (!p->probs || numProbs != p->numProbs)
|
|
1110
|
+
{
|
|
1111
|
+
LzmaDec_FreeProbs(p, alloc);
|
|
1112
|
+
p->probs = (CLzmaProb *)ISzAlloc_Alloc(alloc, numProbs * sizeof(CLzmaProb));
|
|
1113
|
+
if (!p->probs)
|
|
1114
|
+
return SZ_ERROR_MEM;
|
|
1115
|
+
p->probs_1664 = p->probs + 1664;
|
|
1116
|
+
p->numProbs = numProbs;
|
|
1117
|
+
}
|
|
1118
|
+
return SZ_OK;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
|
|
1122
|
+
{
|
|
1123
|
+
CLzmaProps propNew;
|
|
1124
|
+
RINOK(LzmaProps_Decode(&propNew, props, propsSize));
|
|
1125
|
+
RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc));
|
|
1126
|
+
p->prop = propNew;
|
|
1127
|
+
return SZ_OK;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
|
|
1131
|
+
{
|
|
1132
|
+
CLzmaProps propNew;
|
|
1133
|
+
SizeT dicBufSize;
|
|
1134
|
+
RINOK(LzmaProps_Decode(&propNew, props, propsSize));
|
|
1135
|
+
RINOK(LzmaDec_AllocateProbs2(p, &propNew, alloc));
|
|
1136
|
+
|
|
1137
|
+
{
|
|
1138
|
+
UInt32 dictSize = propNew.dicSize;
|
|
1139
|
+
SizeT mask = ((UInt32)1 << 12) - 1;
|
|
1140
|
+
if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1;
|
|
1141
|
+
else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1;;
|
|
1142
|
+
dicBufSize = ((SizeT)dictSize + mask) & ~mask;
|
|
1143
|
+
if (dicBufSize < dictSize)
|
|
1144
|
+
dicBufSize = dictSize;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
if (!p->dic || dicBufSize != p->dicBufSize)
|
|
1148
|
+
{
|
|
1149
|
+
LzmaDec_FreeDict(p, alloc);
|
|
1150
|
+
p->dic = (Byte *)ISzAlloc_Alloc(alloc, dicBufSize);
|
|
1151
|
+
if (!p->dic)
|
|
1152
|
+
{
|
|
1153
|
+
LzmaDec_FreeProbs(p, alloc);
|
|
1154
|
+
return SZ_ERROR_MEM;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
p->dicBufSize = dicBufSize;
|
|
1158
|
+
p->prop = propNew;
|
|
1159
|
+
return SZ_OK;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
|
1163
|
+
const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode,
|
|
1164
|
+
ELzmaStatus *status, ISzAllocPtr alloc)
|
|
1165
|
+
{
|
|
1166
|
+
CLzmaDec p;
|
|
1167
|
+
SRes res;
|
|
1168
|
+
SizeT outSize = *destLen, inSize = *srcLen;
|
|
1169
|
+
*destLen = *srcLen = 0;
|
|
1170
|
+
*status = LZMA_STATUS_NOT_SPECIFIED;
|
|
1171
|
+
if (inSize < RC_INIT_SIZE)
|
|
1172
|
+
return SZ_ERROR_INPUT_EOF;
|
|
1173
|
+
LzmaDec_Construct(&p);
|
|
1174
|
+
RINOK(LzmaDec_AllocateProbs(&p, propData, propSize, alloc));
|
|
1175
|
+
p.dic = dest;
|
|
1176
|
+
p.dicBufSize = outSize;
|
|
1177
|
+
LzmaDec_Init(&p);
|
|
1178
|
+
*srcLen = inSize;
|
|
1179
|
+
res = LzmaDec_DecodeToDic(&p, outSize, src, srcLen, finishMode, status);
|
|
1180
|
+
*destLen = p.dicPos;
|
|
1181
|
+
if (res == SZ_OK && *status == LZMA_STATUS_NEEDS_MORE_INPUT)
|
|
1182
|
+
res = SZ_ERROR_INPUT_EOF;
|
|
1183
|
+
LzmaDec_FreeProbs(&p, alloc);
|
|
1184
|
+
return res;
|
|
1185
|
+
}
|