├── .gitmodules ├── .project ├── .settings ├── org.eclipse.cdt.core.prefs └── org.eclipse.cdt.ui.prefs ├── README ├── Results.ods ├── TODO ├── doc └── Doxyfile.in └── src ├── BUILDING ├── CHANGELOG ├── CMakeLists.txt ├── abstractCodecs.cpp ├── abstractCodecs.hpp ├── benchmark.cpp ├── benchmark.hpp ├── codecs.cpp ├── codecs.hpp ├── codecs ├── 7z │ ├── 7z.cpp │ ├── 7z.hpp │ ├── Asm │ │ ├── arm │ │ │ └── 7zCrcOpt.asm │ │ └── x86 │ │ │ ├── 7zAsm.asm │ │ │ ├── 7zCrcOpt.asm │ │ │ └── AesOpt.asm │ ├── C │ │ ├── 7z.h │ │ ├── 7zAlloc.c │ │ ├── 7zAlloc.h │ │ ├── 7zBuf.c │ │ ├── 7zBuf.h │ │ ├── 7zBuf2.c │ │ ├── 7zCrc.c │ │ ├── 7zCrc.h │ │ ├── 7zCrcOpt.c │ │ ├── 7zDec.c │ │ ├── 7zFile.c │ │ ├── 7zFile.h │ │ ├── 7zIn.c │ │ ├── 7zStream.c │ │ ├── 7zVersion.h │ │ ├── Aes.c │ │ ├── Aes.h │ │ ├── AesOpt.c │ │ ├── Alloc.c │ │ ├── Alloc.h │ │ ├── Bcj2.c │ │ ├── Bcj2.h │ │ ├── Bra.c │ │ ├── Bra.h │ │ ├── Bra86.c │ │ ├── BraIA64.c │ │ ├── BwtSort.c │ │ ├── BwtSort.h │ │ ├── CpuArch.c │ │ ├── CpuArch.h │ │ ├── Delta.c │ │ ├── Delta.h │ │ ├── HuffEnc.c │ │ ├── HuffEnc.h │ │ ├── LzFind.c │ │ ├── LzFind.h │ │ ├── LzFindMt.c │ │ ├── LzFindMt.h │ │ ├── LzHash.h │ │ ├── Lzma2Dec.c │ │ ├── Lzma2Dec.h │ │ ├── Lzma2Enc.c │ │ ├── Lzma2Enc.h │ │ ├── Lzma86.h │ │ ├── Lzma86Dec.c │ │ ├── Lzma86Enc.c │ │ ├── LzmaDec.c │ │ ├── LzmaDec.h │ │ ├── LzmaEnc.c │ │ ├── LzmaEnc.h │ │ ├── LzmaLib.c │ │ ├── LzmaLib.h │ │ ├── MtCoder.c │ │ ├── MtCoder.h │ │ ├── Ppmd.h │ │ ├── Ppmd7.c │ │ ├── Ppmd7.h │ │ ├── Ppmd7Dec.c │ │ ├── Ppmd7Enc.c │ │ ├── Ppmd8.c │ │ ├── Ppmd8.h │ │ ├── Ppmd8Dec.c │ │ ├── Ppmd8Enc.c │ │ ├── RotateDefs.h │ │ ├── Sha256.c │ │ ├── Sha256.h │ │ ├── Sort.c │ │ ├── Sort.h │ │ ├── Threads.c │ │ ├── Threads.h │ │ ├── Types.h │ │ ├── Util │ │ │ ├── 7z │ │ │ │ ├── 7z.dsp │ │ │ │ ├── 7z.dsw │ │ │ │ ├── 7zMain.c │ │ │ │ ├── makefile │ │ │ │ └── makefile.gcc │ │ │ ├── Lzma │ │ │ │ ├── LzmaUtil.c │ │ │ │ ├── LzmaUtil.dsp │ │ │ │ ├── LzmaUtil.dsw │ │ │ │ ├── makefile │ │ │ │ └── makefile.gcc │ │ │ ├── LzmaLib │ │ │ │ ├── LzmaLib.def │ │ │ │ ├── LzmaLib.dsp │ │ │ │ ├── LzmaLib.dsw │ │ │ │ ├── LzmaLibExports.c │ │ │ │ ├── makefile │ │ │ │ └── resource.rc │ │ │ └── SfxSetup │ │ │ │ ├── SfxSetup.c │ │ │ │ ├── SfxSetup.dsp │ │ │ │ ├── SfxSetup.dsw │ │ │ │ ├── makefile │ │ │ │ ├── makefile_con │ │ │ │ ├── resource.rc │ │ │ │ └── setup.ico │ │ ├── Xz.c │ │ ├── Xz.h │ │ ├── XzCrc64.c │ │ ├── XzCrc64.h │ │ ├── XzDec.c │ │ ├── XzEnc.c │ │ ├── XzEnc.h │ │ └── XzIn.c │ ├── CPP │ │ ├── 7zip │ │ │ ├── Aes.mak │ │ │ ├── Archive │ │ │ │ ├── 7z │ │ │ │ │ ├── 7z.dsp │ │ │ │ │ ├── 7z.dsw │ │ │ │ │ ├── 7zCompressionMode.cpp │ │ │ │ │ ├── 7zCompressionMode.h │ │ │ │ │ ├── 7zDecode.cpp │ │ │ │ │ ├── 7zDecode.h │ │ │ │ │ ├── 7zEncode.cpp │ │ │ │ │ ├── 7zEncode.h │ │ │ │ │ ├── 7zExtract.cpp │ │ │ │ │ ├── 7zFolderInStream.cpp │ │ │ │ │ ├── 7zFolderInStream.h │ │ │ │ │ ├── 7zFolderOutStream.cpp │ │ │ │ │ ├── 7zFolderOutStream.h │ │ │ │ │ ├── 7zHandler.cpp │ │ │ │ │ ├── 7zHandler.h │ │ │ │ │ ├── 7zHandlerOut.cpp │ │ │ │ │ ├── 7zHeader.cpp │ │ │ │ │ ├── 7zHeader.h │ │ │ │ │ ├── 7zIn.cpp │ │ │ │ │ ├── 7zIn.h │ │ │ │ │ ├── 7zItem.h │ │ │ │ │ ├── 7zOut.cpp │ │ │ │ │ ├── 7zOut.h │ │ │ │ │ ├── 7zProperties.cpp │ │ │ │ │ ├── 7zProperties.h │ │ │ │ │ ├── 7zRegister.cpp │ │ │ │ │ ├── 7zSpecStream.cpp │ │ │ │ │ ├── 7zSpecStream.h │ │ │ │ │ ├── 7zUpdate.cpp │ │ │ │ │ ├── 7zUpdate.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── ApmHandler.cpp │ │ │ │ ├── Archive.def │ │ │ │ ├── Archive2.def │ │ │ │ ├── ArchiveExports.cpp │ │ │ │ ├── ArjHandler.cpp │ │ │ │ ├── Bz2Handler.cpp │ │ │ │ ├── Cab │ │ │ │ │ ├── CabBlockInStream.cpp │ │ │ │ │ ├── CabBlockInStream.h │ │ │ │ │ ├── CabHandler.cpp │ │ │ │ │ ├── CabHandler.h │ │ │ │ │ ├── CabHeader.cpp │ │ │ │ │ ├── CabHeader.h │ │ │ │ │ ├── CabIn.cpp │ │ │ │ │ ├── CabIn.h │ │ │ │ │ ├── CabItem.h │ │ │ │ │ ├── CabRegister.cpp │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── Chm │ │ │ │ │ ├── ChmHandler.cpp │ │ │ │ │ ├── ChmHandler.h │ │ │ │ │ ├── ChmHeader.cpp │ │ │ │ │ ├── ChmHeader.h │ │ │ │ │ ├── ChmIn.cpp │ │ │ │ │ ├── ChmIn.h │ │ │ │ │ ├── ChmRegister.cpp │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── Com │ │ │ │ │ ├── ComHandler.cpp │ │ │ │ │ ├── ComHandler.h │ │ │ │ │ ├── ComIn.cpp │ │ │ │ │ ├── ComIn.h │ │ │ │ │ └── ComRegister.cpp │ │ │ │ ├── Common │ │ │ │ │ ├── CoderMixer.cpp │ │ │ │ │ ├── CoderMixer.h │ │ │ │ │ ├── CoderMixer2.cpp │ │ │ │ │ ├── CoderMixer2.h │ │ │ │ │ ├── CoderMixer2MT.cpp │ │ │ │ │ ├── CoderMixer2MT.h │ │ │ │ │ ├── CoderMixer2ST.cpp │ │ │ │ │ ├── CoderMixer2ST.h │ │ │ │ │ ├── CoderMixerMT.cpp │ │ │ │ │ ├── CoderMixerMT.h │ │ │ │ │ ├── CrossThreadProgress.cpp │ │ │ │ │ ├── CrossThreadProgress.h │ │ │ │ │ ├── DummyOutStream.cpp │ │ │ │ │ ├── DummyOutStream.h │ │ │ │ │ ├── FindSignature.cpp │ │ │ │ │ ├── FindSignature.h │ │ │ │ │ ├── HandlerOut.cpp │ │ │ │ │ ├── HandlerOut.h │ │ │ │ │ ├── InStreamWithCRC.cpp │ │ │ │ │ ├── InStreamWithCRC.h │ │ │ │ │ ├── ItemNameUtils.cpp │ │ │ │ │ ├── ItemNameUtils.h │ │ │ │ │ ├── MultiStream.cpp │ │ │ │ │ ├── MultiStream.h │ │ │ │ │ ├── OutStreamWithCRC.cpp │ │ │ │ │ ├── OutStreamWithCRC.h │ │ │ │ │ ├── OutStreamWithSha1.cpp │ │ │ │ │ ├── OutStreamWithSha1.h │ │ │ │ │ ├── ParseProperties.cpp │ │ │ │ │ ├── ParseProperties.h │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── CpioHandler.cpp │ │ │ │ ├── CramfsHandler.cpp │ │ │ │ ├── DebHandler.cpp │ │ │ │ ├── DeflateProps.cpp │ │ │ │ ├── DeflateProps.h │ │ │ │ ├── DllExports.cpp │ │ │ │ ├── DllExports2.cpp │ │ │ │ ├── DmgHandler.cpp │ │ │ │ ├── ElfHandler.cpp │ │ │ │ ├── FatHandler.cpp │ │ │ │ ├── FlvHandler.cpp │ │ │ │ ├── GzHandler.cpp │ │ │ │ ├── Hfs │ │ │ │ │ ├── HfsHandler.cpp │ │ │ │ │ ├── HfsHandler.h │ │ │ │ │ ├── HfsIn.cpp │ │ │ │ │ ├── HfsIn.h │ │ │ │ │ └── HfsRegister.cpp │ │ │ │ ├── IArchive.h │ │ │ │ ├── Icons │ │ │ │ │ ├── 7z.ico │ │ │ │ │ ├── arj.ico │ │ │ │ │ ├── bz2.ico │ │ │ │ │ ├── cab.ico │ │ │ │ │ ├── cpio.ico │ │ │ │ │ ├── deb.ico │ │ │ │ │ ├── dmg.ico │ │ │ │ │ ├── fat.ico │ │ │ │ │ ├── gz.ico │ │ │ │ │ ├── hfs.ico │ │ │ │ │ ├── iso.ico │ │ │ │ │ ├── lzh.ico │ │ │ │ │ ├── lzma.ico │ │ │ │ │ ├── ntfs.ico │ │ │ │ │ ├── rar.ico │ │ │ │ │ ├── rpm.ico │ │ │ │ │ ├── split.ico │ │ │ │ │ ├── squashfs.ico │ │ │ │ │ ├── tar.ico │ │ │ │ │ ├── vhd.ico │ │ │ │ │ ├── wim.ico │ │ │ │ │ ├── xar.ico │ │ │ │ │ ├── xz.ico │ │ │ │ │ ├── z.ico │ │ │ │ │ └── zip.ico │ │ │ │ ├── Iso │ │ │ │ │ ├── IsoHandler.cpp │ │ │ │ │ ├── IsoHandler.h │ │ │ │ │ ├── IsoHeader.cpp │ │ │ │ │ ├── IsoHeader.h │ │ │ │ │ ├── IsoIn.cpp │ │ │ │ │ ├── IsoIn.h │ │ │ │ │ ├── IsoItem.h │ │ │ │ │ ├── IsoRegister.cpp │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── LzhHandler.cpp │ │ │ │ ├── LzmaHandler.cpp │ │ │ │ ├── MachoHandler.cpp │ │ │ │ ├── MbrHandler.cpp │ │ │ │ ├── MslzHandler.cpp │ │ │ │ ├── MubHandler.cpp │ │ │ │ ├── Nsis │ │ │ │ │ ├── NsisDecode.cpp │ │ │ │ │ ├── NsisDecode.h │ │ │ │ │ ├── NsisHandler.cpp │ │ │ │ │ ├── NsisHandler.h │ │ │ │ │ ├── NsisIn.cpp │ │ │ │ │ ├── NsisIn.h │ │ │ │ │ ├── NsisRegister.cpp │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── NtfsHandler.cpp │ │ │ │ ├── PeHandler.cpp │ │ │ │ ├── PpmdHandler.cpp │ │ │ │ ├── Rar │ │ │ │ │ ├── RarHandler.cpp │ │ │ │ │ ├── RarHandler.h │ │ │ │ │ ├── RarHeader.cpp │ │ │ │ │ ├── RarHeader.h │ │ │ │ │ ├── RarIn.cpp │ │ │ │ │ ├── RarIn.h │ │ │ │ │ ├── RarItem.cpp │ │ │ │ │ ├── RarItem.h │ │ │ │ │ ├── RarRegister.cpp │ │ │ │ │ ├── RarVolumeInStream.cpp │ │ │ │ │ ├── RarVolumeInStream.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ └── StdAfx.h │ │ │ │ ├── RpmHandler.cpp │ │ │ │ ├── SplitHandler.cpp │ │ │ │ ├── SquashfsHandler.cpp │ │ │ │ ├── StdAfx.h │ │ │ │ ├── SwfHandler.cpp │ │ │ │ ├── Tar │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── TarHandler.cpp │ │ │ │ │ ├── TarHandler.h │ │ │ │ │ ├── TarHandlerOut.cpp │ │ │ │ │ ├── TarHeader.cpp │ │ │ │ │ ├── TarHeader.h │ │ │ │ │ ├── TarIn.cpp │ │ │ │ │ ├── TarIn.h │ │ │ │ │ ├── TarItem.h │ │ │ │ │ ├── TarOut.cpp │ │ │ │ │ ├── TarOut.h │ │ │ │ │ ├── TarRegister.cpp │ │ │ │ │ ├── TarUpdate.cpp │ │ │ │ │ └── TarUpdate.h │ │ │ │ ├── Udf │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── UdfHandler.cpp │ │ │ │ │ ├── UdfHandler.h │ │ │ │ │ ├── UdfIn.cpp │ │ │ │ │ ├── UdfIn.h │ │ │ │ │ └── UdfRegister.cpp │ │ │ │ ├── VhdHandler.cpp │ │ │ │ ├── Wim │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── WimHandler.cpp │ │ │ │ │ ├── WimHandler.h │ │ │ │ │ ├── WimHandlerOut.cpp │ │ │ │ │ ├── WimIn.cpp │ │ │ │ │ ├── WimIn.h │ │ │ │ │ └── WimRegister.cpp │ │ │ │ ├── XarHandler.cpp │ │ │ │ ├── XzHandler.cpp │ │ │ │ ├── ZHandler.cpp │ │ │ │ ├── Zip │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── ZipAddCommon.cpp │ │ │ │ │ ├── ZipAddCommon.h │ │ │ │ │ ├── ZipCompressionMode.h │ │ │ │ │ ├── ZipHandler.cpp │ │ │ │ │ ├── ZipHandler.h │ │ │ │ │ ├── ZipHandlerOut.cpp │ │ │ │ │ ├── ZipHeader.cpp │ │ │ │ │ ├── ZipHeader.h │ │ │ │ │ ├── ZipIn.cpp │ │ │ │ │ ├── ZipIn.h │ │ │ │ │ ├── ZipItem.cpp │ │ │ │ │ ├── ZipItem.h │ │ │ │ │ ├── ZipItemEx.h │ │ │ │ │ ├── ZipOut.cpp │ │ │ │ │ ├── ZipOut.h │ │ │ │ │ ├── ZipRegister.cpp │ │ │ │ │ ├── ZipUpdate.cpp │ │ │ │ │ └── ZipUpdate.h │ │ │ │ └── makefile │ │ │ ├── Asm.mak │ │ │ ├── Bundles │ │ │ │ ├── Alone │ │ │ │ │ ├── Alone.dsp │ │ │ │ │ ├── Alone.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── afxres.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Alone7z │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Fm │ │ │ │ │ ├── FM.dsp │ │ │ │ │ ├── FM.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Format7z │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Format7zExtract │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Format7zExtractR │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Format7zF │ │ │ │ │ ├── Format7z.dsp │ │ │ │ │ ├── Format7z.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Format7zR │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── LzmaCon │ │ │ │ │ ├── LzmaAlone.cpp │ │ │ │ │ ├── LzmaCon.dsp │ │ │ │ │ ├── LzmaCon.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── makefile.gcc │ │ │ │ ├── SFXCon │ │ │ │ │ ├── 7z.ico │ │ │ │ │ ├── Main.cpp │ │ │ │ │ ├── SFXCon.dsp │ │ │ │ │ ├── SFXCon.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── SFXSetup │ │ │ │ │ ├── ExtractCallback.cpp │ │ │ │ │ ├── ExtractCallback.h │ │ │ │ │ ├── ExtractEngine.cpp │ │ │ │ │ ├── ExtractEngine.h │ │ │ │ │ ├── Main.cpp │ │ │ │ │ ├── SFXSetup.dsp │ │ │ │ │ ├── SFXSetup.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ ├── resource.h │ │ │ │ │ ├── resource.rc │ │ │ │ │ └── setup.ico │ │ │ │ ├── SFXWin │ │ │ │ │ ├── 7z.ico │ │ │ │ │ ├── Main.cpp │ │ │ │ │ ├── SFXWin.dsp │ │ │ │ │ ├── SFXWin.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ ├── resource.h │ │ │ │ │ └── resource.rc │ │ │ │ └── makefile │ │ │ ├── Common │ │ │ │ ├── CWrappers.cpp │ │ │ │ ├── CWrappers.h │ │ │ │ ├── CreateCoder.cpp │ │ │ │ ├── CreateCoder.h │ │ │ │ ├── FilePathAutoRename.cpp │ │ │ │ ├── FilePathAutoRename.h │ │ │ │ ├── FileStreams.cpp │ │ │ │ ├── FileStreams.h │ │ │ │ ├── FilterCoder.cpp │ │ │ │ ├── FilterCoder.h │ │ │ │ ├── InBuffer.cpp │ │ │ │ ├── InBuffer.h │ │ │ │ ├── InMemStream.cpp │ │ │ │ ├── InMemStream.h │ │ │ │ ├── InOutTempBuffer.cpp │ │ │ │ ├── InOutTempBuffer.h │ │ │ │ ├── LimitedStreams.cpp │ │ │ │ ├── LimitedStreams.h │ │ │ │ ├── LockedStream.cpp │ │ │ │ ├── LockedStream.h │ │ │ │ ├── MemBlocks.cpp │ │ │ │ ├── MemBlocks.h │ │ │ │ ├── MethodId.cpp │ │ │ │ ├── MethodId.h │ │ │ │ ├── MethodProps.cpp │ │ │ │ ├── MethodProps.h │ │ │ │ ├── OffsetStream.cpp │ │ │ │ ├── OffsetStream.h │ │ │ │ ├── OutBuffer.cpp │ │ │ │ ├── OutBuffer.h │ │ │ │ ├── OutMemStream.cpp │ │ │ │ ├── OutMemStream.h │ │ │ │ ├── ProgressMt.cpp │ │ │ │ ├── ProgressMt.h │ │ │ │ ├── ProgressUtils.cpp │ │ │ │ ├── ProgressUtils.h │ │ │ │ ├── RegisterArc.h │ │ │ │ ├── RegisterCodec.h │ │ │ │ ├── StdAfx.h │ │ │ │ ├── StreamBinder.cpp │ │ │ │ ├── StreamBinder.h │ │ │ │ ├── StreamObjects.cpp │ │ │ │ ├── StreamObjects.h │ │ │ │ ├── StreamUtils.cpp │ │ │ │ ├── StreamUtils.h │ │ │ │ ├── VirtThread.cpp │ │ │ │ └── VirtThread.h │ │ │ ├── Compress │ │ │ │ ├── ArjDecoder1.cpp │ │ │ │ ├── ArjDecoder1.h │ │ │ │ ├── ArjDecoder2.cpp │ │ │ │ ├── ArjDecoder2.h │ │ │ │ ├── BZip2Const.h │ │ │ │ ├── BZip2Crc.cpp │ │ │ │ ├── BZip2Crc.h │ │ │ │ ├── BZip2Decoder.cpp │ │ │ │ ├── BZip2Decoder.h │ │ │ │ ├── BZip2Encoder.cpp │ │ │ │ ├── BZip2Encoder.h │ │ │ │ ├── BZip2Register.cpp │ │ │ │ ├── Bcj2Coder.cpp │ │ │ │ ├── Bcj2Coder.h │ │ │ │ ├── Bcj2Register.cpp │ │ │ │ ├── BcjCoder.cpp │ │ │ │ ├── BcjCoder.h │ │ │ │ ├── BcjRegister.cpp │ │ │ │ ├── BitlDecoder.cpp │ │ │ │ ├── BitlDecoder.h │ │ │ │ ├── BitlEncoder.h │ │ │ │ ├── BitmDecoder.h │ │ │ │ ├── BitmEncoder.h │ │ │ │ ├── BranchCoder.cpp │ │ │ │ ├── BranchCoder.h │ │ │ │ ├── BranchMisc.cpp │ │ │ │ ├── BranchMisc.h │ │ │ │ ├── BranchRegister.cpp │ │ │ │ ├── ByteSwap.cpp │ │ │ │ ├── Codec.def │ │ │ │ ├── CodecExports.cpp │ │ │ │ ├── CopyCoder.cpp │ │ │ │ ├── CopyCoder.h │ │ │ │ ├── CopyRegister.cpp │ │ │ │ ├── Deflate64Register.cpp │ │ │ │ ├── DeflateConst.h │ │ │ │ ├── DeflateDecoder.cpp │ │ │ │ ├── DeflateDecoder.h │ │ │ │ ├── DeflateEncoder.cpp │ │ │ │ ├── DeflateEncoder.h │ │ │ │ ├── DeflateRegister.cpp │ │ │ │ ├── DeltaFilter.cpp │ │ │ │ ├── DllExports.cpp │ │ │ │ ├── DllExports2.cpp │ │ │ │ ├── HuffmanDecoder.h │ │ │ │ ├── ImplodeDecoder.cpp │ │ │ │ ├── ImplodeDecoder.h │ │ │ │ ├── ImplodeHuffmanDecoder.cpp │ │ │ │ ├── ImplodeHuffmanDecoder.h │ │ │ │ ├── LzOutWindow.cpp │ │ │ │ ├── LzOutWindow.h │ │ │ │ ├── LzhDecoder.cpp │ │ │ │ ├── LzhDecoder.h │ │ │ │ ├── Lzma2Decoder.cpp │ │ │ │ ├── Lzma2Decoder.h │ │ │ │ ├── Lzma2Encoder.cpp │ │ │ │ ├── Lzma2Encoder.h │ │ │ │ ├── Lzma2Register.cpp │ │ │ │ ├── LzmaDecoder.cpp │ │ │ │ ├── LzmaDecoder.h │ │ │ │ ├── LzmaEncoder.cpp │ │ │ │ ├── LzmaEncoder.h │ │ │ │ ├── LzmaRegister.cpp │ │ │ │ ├── Lzx.h │ │ │ │ ├── Lzx86Converter.cpp │ │ │ │ ├── Lzx86Converter.h │ │ │ │ ├── LzxDecoder.cpp │ │ │ │ ├── LzxDecoder.h │ │ │ │ ├── Mtf8.h │ │ │ │ ├── PpmdDecoder.cpp │ │ │ │ ├── PpmdDecoder.h │ │ │ │ ├── PpmdEncoder.cpp │ │ │ │ ├── PpmdEncoder.h │ │ │ │ ├── PpmdRegister.cpp │ │ │ │ ├── PpmdZip.cpp │ │ │ │ ├── PpmdZip.h │ │ │ │ ├── QuantumDecoder.cpp │ │ │ │ ├── QuantumDecoder.h │ │ │ │ ├── RangeCoder.h │ │ │ │ ├── RangeCoderBit.h │ │ │ │ ├── Rar1Decoder.cpp │ │ │ │ ├── Rar1Decoder.h │ │ │ │ ├── Rar2Decoder.cpp │ │ │ │ ├── Rar2Decoder.h │ │ │ │ ├── Rar3Decoder.cpp │ │ │ │ ├── Rar3Decoder.h │ │ │ │ ├── Rar3Vm.cpp │ │ │ │ ├── Rar3Vm.h │ │ │ │ ├── RarCodecsRegister.cpp │ │ │ │ ├── ShrinkDecoder.cpp │ │ │ │ ├── ShrinkDecoder.h │ │ │ │ ├── StdAfx.h │ │ │ │ ├── ZDecoder.cpp │ │ │ │ ├── ZDecoder.h │ │ │ │ ├── ZlibDecoder.cpp │ │ │ │ ├── ZlibDecoder.h │ │ │ │ ├── ZlibEncoder.cpp │ │ │ │ ├── ZlibEncoder.h │ │ │ │ └── makefile │ │ │ ├── Crc.mak │ │ │ ├── Crypto │ │ │ │ ├── 7zAes.cpp │ │ │ │ ├── 7zAes.h │ │ │ │ ├── 7zAesRegister.cpp │ │ │ │ ├── Codec.def │ │ │ │ ├── HmacSha1.cpp │ │ │ │ ├── HmacSha1.h │ │ │ │ ├── MyAes.cpp │ │ │ │ ├── MyAes.h │ │ │ │ ├── Pbkdf2HmacSha1.cpp │ │ │ │ ├── Pbkdf2HmacSha1.h │ │ │ │ ├── RandGen.cpp │ │ │ │ ├── RandGen.h │ │ │ │ ├── Rar20Crypto.cpp │ │ │ │ ├── Rar20Crypto.h │ │ │ │ ├── RarAes.cpp │ │ │ │ ├── RarAes.h │ │ │ │ ├── Sha1.cpp │ │ │ │ ├── Sha1.h │ │ │ │ ├── StdAfx.h │ │ │ │ ├── WzAes.cpp │ │ │ │ ├── WzAes.h │ │ │ │ ├── ZipCrypto.cpp │ │ │ │ ├── ZipCrypto.h │ │ │ │ ├── ZipStrong.cpp │ │ │ │ └── ZipStrong.h │ │ │ ├── GuiCommon.rc │ │ │ ├── Guid.txt │ │ │ ├── ICoder.h │ │ │ ├── IDecl.h │ │ │ ├── IPassword.h │ │ │ ├── IProgress.h │ │ │ ├── IStream.h │ │ │ ├── MyVersion.h │ │ │ ├── MyVersionInfo.rc │ │ │ ├── PropID.h │ │ │ ├── SubBuild.mak │ │ │ ├── UI │ │ │ │ ├── Agent │ │ │ │ │ ├── Agent.cpp │ │ │ │ │ ├── Agent.h │ │ │ │ │ ├── AgentOut.cpp │ │ │ │ │ ├── AgentProxy.cpp │ │ │ │ │ ├── AgentProxy.h │ │ │ │ │ ├── ArchiveFolder.cpp │ │ │ │ │ ├── ArchiveFolderOpen.cpp │ │ │ │ │ ├── ArchiveFolderOut.cpp │ │ │ │ │ ├── IFolderArchive.h │ │ │ │ │ ├── UpdateCallbackAgent.cpp │ │ │ │ │ └── UpdateCallbackAgent.h │ │ │ │ ├── Client7z │ │ │ │ │ ├── Client7z.cpp │ │ │ │ │ ├── Client7z.dsp │ │ │ │ │ ├── Client7z.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ └── makefile │ │ │ │ ├── Common │ │ │ │ │ ├── ArchiveCommandLine.cpp │ │ │ │ │ ├── ArchiveCommandLine.h │ │ │ │ │ ├── ArchiveExtractCallback.cpp │ │ │ │ │ ├── ArchiveExtractCallback.h │ │ │ │ │ ├── ArchiveName.cpp │ │ │ │ │ ├── ArchiveName.h │ │ │ │ │ ├── ArchiveOpenCallback.cpp │ │ │ │ │ ├── ArchiveOpenCallback.h │ │ │ │ │ ├── Bench.cpp │ │ │ │ │ ├── Bench.h │ │ │ │ │ ├── CompressCall.cpp │ │ │ │ │ ├── CompressCall.h │ │ │ │ │ ├── CompressCall2.cpp │ │ │ │ │ ├── DefaultName.cpp │ │ │ │ │ ├── DefaultName.h │ │ │ │ │ ├── DirItem.h │ │ │ │ │ ├── EnumDirItems.cpp │ │ │ │ │ ├── EnumDirItems.h │ │ │ │ │ ├── ExitCode.h │ │ │ │ │ ├── Extract.cpp │ │ │ │ │ ├── Extract.h │ │ │ │ │ ├── ExtractMode.h │ │ │ │ │ ├── ExtractingFilePath.cpp │ │ │ │ │ ├── ExtractingFilePath.h │ │ │ │ │ ├── IFileExtractCallback.h │ │ │ │ │ ├── LoadCodecs.cpp │ │ │ │ │ ├── LoadCodecs.h │ │ │ │ │ ├── OpenArchive.cpp │ │ │ │ │ ├── OpenArchive.h │ │ │ │ │ ├── PropIDUtils.cpp │ │ │ │ │ ├── PropIDUtils.h │ │ │ │ │ ├── Property.h │ │ │ │ │ ├── SetProperties.cpp │ │ │ │ │ ├── SetProperties.h │ │ │ │ │ ├── SortUtils.cpp │ │ │ │ │ ├── SortUtils.h │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── TempFiles.cpp │ │ │ │ │ ├── TempFiles.h │ │ │ │ │ ├── Update.cpp │ │ │ │ │ ├── Update.h │ │ │ │ │ ├── UpdateAction.cpp │ │ │ │ │ ├── UpdateAction.h │ │ │ │ │ ├── UpdateCallback.cpp │ │ │ │ │ ├── UpdateCallback.h │ │ │ │ │ ├── UpdatePair.cpp │ │ │ │ │ ├── UpdatePair.h │ │ │ │ │ ├── UpdateProduce.cpp │ │ │ │ │ ├── UpdateProduce.h │ │ │ │ │ ├── WorkDir.cpp │ │ │ │ │ ├── WorkDir.h │ │ │ │ │ ├── ZipRegistry.cpp │ │ │ │ │ └── ZipRegistry.h │ │ │ │ ├── Console │ │ │ │ │ ├── BenchCon.cpp │ │ │ │ │ ├── BenchCon.h │ │ │ │ │ ├── Console.dsp │ │ │ │ │ ├── Console.dsw │ │ │ │ │ ├── ConsoleClose.cpp │ │ │ │ │ ├── ConsoleClose.h │ │ │ │ │ ├── ExtractCallbackConsole.cpp │ │ │ │ │ ├── ExtractCallbackConsole.h │ │ │ │ │ ├── List.cpp │ │ │ │ │ ├── List.h │ │ │ │ │ ├── Main.cpp │ │ │ │ │ ├── MainAr.cpp │ │ │ │ │ ├── OpenCallbackConsole.cpp │ │ │ │ │ ├── OpenCallbackConsole.h │ │ │ │ │ ├── PercentPrinter.cpp │ │ │ │ │ ├── PercentPrinter.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── UpdateCallbackConsole.cpp │ │ │ │ │ ├── UpdateCallbackConsole.h │ │ │ │ │ ├── UserInputUtils.cpp │ │ │ │ │ ├── UserInputUtils.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── Explorer │ │ │ │ │ ├── 7-zip.dll.manifest │ │ │ │ │ ├── ContextMenu.cpp │ │ │ │ │ ├── ContextMenu.h │ │ │ │ │ ├── ContextMenuFlags.h │ │ │ │ │ ├── DllExports.cpp │ │ │ │ │ ├── Explorer.def │ │ │ │ │ ├── Explorer.dsp │ │ │ │ │ ├── Explorer.dsw │ │ │ │ │ ├── MyMessages.cpp │ │ │ │ │ ├── MyMessages.h │ │ │ │ │ ├── OptionsDialog.cpp │ │ │ │ │ ├── OptionsDialog.h │ │ │ │ │ ├── RegistryContextMenu.cpp │ │ │ │ │ ├── RegistryContextMenu.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── makefile │ │ │ │ │ ├── resource.h │ │ │ │ │ ├── resource.rc │ │ │ │ │ └── resource2.rc │ │ │ │ ├── Far │ │ │ │ │ ├── ExtractEngine.cpp │ │ │ │ │ ├── ExtractEngine.h │ │ │ │ │ ├── Far.def │ │ │ │ │ ├── Far.dsp │ │ │ │ │ ├── Far.dsw │ │ │ │ │ ├── FarPlugin.h │ │ │ │ │ ├── FarUtils.cpp │ │ │ │ │ ├── FarUtils.h │ │ │ │ │ ├── Main.cpp │ │ │ │ │ ├── Messages.h │ │ │ │ │ ├── OverwriteDialog.cpp │ │ │ │ │ ├── OverwriteDialog.h │ │ │ │ │ ├── Plugin.cpp │ │ │ │ │ ├── Plugin.h │ │ │ │ │ ├── PluginCommon.cpp │ │ │ │ │ ├── PluginDelete.cpp │ │ │ │ │ ├── PluginRead.cpp │ │ │ │ │ ├── PluginWrite.cpp │ │ │ │ │ ├── ProgressBox.cpp │ │ │ │ │ ├── ProgressBox.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── UpdateCallback100.cpp │ │ │ │ │ ├── UpdateCallback100.h │ │ │ │ │ ├── makefile │ │ │ │ │ └── resource.rc │ │ │ │ ├── FileManager │ │ │ │ │ ├── 7zFM.exe.manifest │ │ │ │ │ ├── 7zipLogo.ico │ │ │ │ │ ├── AboutDialog.cpp │ │ │ │ │ ├── AboutDialog.h │ │ │ │ │ ├── AboutDialog.rc │ │ │ │ │ ├── AboutDialogRes.h │ │ │ │ │ ├── Add.bmp │ │ │ │ │ ├── Add2.bmp │ │ │ │ │ ├── App.cpp │ │ │ │ │ ├── App.h │ │ │ │ │ ├── AppState.h │ │ │ │ │ ├── BrowseDialog.cpp │ │ │ │ │ ├── BrowseDialog.h │ │ │ │ │ ├── BrowseDialog.rc │ │ │ │ │ ├── BrowseDialogRes.h │ │ │ │ │ ├── ClassDefs.cpp │ │ │ │ │ ├── ComboDialog.cpp │ │ │ │ │ ├── ComboDialog.h │ │ │ │ │ ├── ComboDialog.rc │ │ │ │ │ ├── ComboDialogRes.h │ │ │ │ │ ├── Copy.bmp │ │ │ │ │ ├── Copy2.bmp │ │ │ │ │ ├── CopyDialog.cpp │ │ │ │ │ ├── CopyDialog.h │ │ │ │ │ ├── CopyDialog.rc │ │ │ │ │ ├── CopyDialogRes.h │ │ │ │ │ ├── Delete.bmp │ │ │ │ │ ├── Delete2.bmp │ │ │ │ │ ├── DialogSize.h │ │ │ │ │ ├── EditPage.cpp │ │ │ │ │ ├── EditPage.h │ │ │ │ │ ├── EditPage.rc │ │ │ │ │ ├── EditPage2.rc │ │ │ │ │ ├── EditPageRes.h │ │ │ │ │ ├── EnumFormatEtc.cpp │ │ │ │ │ ├── EnumFormatEtc.h │ │ │ │ │ ├── Extract.bmp │ │ │ │ │ ├── Extract2.bmp │ │ │ │ │ ├── ExtractCallback.cpp │ │ │ │ │ ├── ExtractCallback.h │ │ │ │ │ ├── FM.cpp │ │ │ │ │ ├── FM.dsp │ │ │ │ │ ├── FM.dsw │ │ │ │ │ ├── FM.ico │ │ │ │ │ ├── FSDrives.cpp │ │ │ │ │ ├── FSDrives.h │ │ │ │ │ ├── FSFolder.cpp │ │ │ │ │ ├── FSFolder.h │ │ │ │ │ ├── FSFolderCopy.cpp │ │ │ │ │ ├── FileFolderPluginOpen.cpp │ │ │ │ │ ├── FileFolderPluginOpen.h │ │ │ │ │ ├── FilePlugins.cpp │ │ │ │ │ ├── FilePlugins.h │ │ │ │ │ ├── FoldersPage.cpp │ │ │ │ │ ├── FoldersPage.h │ │ │ │ │ ├── FoldersPage.rc │ │ │ │ │ ├── FoldersPage2.rc │ │ │ │ │ ├── FoldersPageRes.h │ │ │ │ │ ├── FormatUtils.cpp │ │ │ │ │ ├── FormatUtils.h │ │ │ │ │ ├── HelpUtils.cpp │ │ │ │ │ ├── HelpUtils.h │ │ │ │ │ ├── IFolder.h │ │ │ │ │ ├── Info.bmp │ │ │ │ │ ├── Info2.bmp │ │ │ │ │ ├── LangPage.cpp │ │ │ │ │ ├── LangPage.h │ │ │ │ │ ├── LangPage.rc │ │ │ │ │ ├── LangPageRes.h │ │ │ │ │ ├── LangUtils.cpp │ │ │ │ │ ├── LangUtils.h │ │ │ │ │ ├── ListViewDialog.cpp │ │ │ │ │ ├── ListViewDialog.h │ │ │ │ │ ├── ListViewDialog.rc │ │ │ │ │ ├── ListViewDialogRes.h │ │ │ │ │ ├── MenuPage.cpp │ │ │ │ │ ├── MenuPage.h │ │ │ │ │ ├── MenuPage.rc │ │ │ │ │ ├── MenuPage2.rc │ │ │ │ │ ├── MenuPageRes.h │ │ │ │ │ ├── MessagesDialog.cpp │ │ │ │ │ ├── MessagesDialog.h │ │ │ │ │ ├── MessagesDialog.rc │ │ │ │ │ ├── MessagesDialogRes.h │ │ │ │ │ ├── Move.bmp │ │ │ │ │ ├── Move2.bmp │ │ │ │ │ ├── MyCom2.h │ │ │ │ │ ├── MyLoadMenu.cpp │ │ │ │ │ ├── MyLoadMenu.h │ │ │ │ │ ├── NetFolder.cpp │ │ │ │ │ ├── NetFolder.h │ │ │ │ │ ├── OpenCallback.cpp │ │ │ │ │ ├── OpenCallback.h │ │ │ │ │ ├── OptionsDialog.cpp │ │ │ │ │ ├── OverwriteDialog.cpp │ │ │ │ │ ├── OverwriteDialog.h │ │ │ │ │ ├── OverwriteDialog.rc │ │ │ │ │ ├── OverwriteDialogRes.h │ │ │ │ │ ├── Panel.cpp │ │ │ │ │ ├── Panel.h │ │ │ │ │ ├── PanelCopy.cpp │ │ │ │ │ ├── PanelCrc.cpp │ │ │ │ │ ├── PanelDrag.cpp │ │ │ │ │ ├── PanelFolderChange.cpp │ │ │ │ │ ├── PanelItemOpen.cpp │ │ │ │ │ ├── PanelItems.cpp │ │ │ │ │ ├── PanelKey.cpp │ │ │ │ │ ├── PanelListNotify.cpp │ │ │ │ │ ├── PanelMenu.cpp │ │ │ │ │ ├── PanelOperations.cpp │ │ │ │ │ ├── PanelSelect.cpp │ │ │ │ │ ├── PanelSort.cpp │ │ │ │ │ ├── PanelSplitFile.cpp │ │ │ │ │ ├── PasswordDialog.cpp │ │ │ │ │ ├── PasswordDialog.h │ │ │ │ │ ├── PasswordDialog.rc │ │ │ │ │ ├── PasswordDialogRes.h │ │ │ │ │ ├── PluginInterface.h │ │ │ │ │ ├── PluginLoader.h │ │ │ │ │ ├── PluginsPage.cpp │ │ │ │ │ ├── PluginsPage.h │ │ │ │ │ ├── PluginsPage.rc │ │ │ │ │ ├── PluginsPageRes.h │ │ │ │ │ ├── ProgramLocation.cpp │ │ │ │ │ ├── ProgramLocation.h │ │ │ │ │ ├── ProgressDialog.cpp │ │ │ │ │ ├── ProgressDialog.h │ │ │ │ │ ├── ProgressDialog.rc │ │ │ │ │ ├── ProgressDialog2.cpp │ │ │ │ │ ├── ProgressDialog2.h │ │ │ │ │ ├── ProgressDialog2.rc │ │ │ │ │ ├── ProgressDialog2Res.h │ │ │ │ │ ├── ProgressDialog2a.rc │ │ │ │ │ ├── ProgressDialogRes.h │ │ │ │ │ ├── PropertyName.cpp │ │ │ │ │ ├── PropertyName.h │ │ │ │ │ ├── PropertyName.rc │ │ │ │ │ ├── PropertyNameRes.h │ │ │ │ │ ├── RegistryAssociations.cpp │ │ │ │ │ ├── RegistryAssociations.h │ │ │ │ │ ├── RegistryPlugins.cpp │ │ │ │ │ ├── RegistryPlugins.h │ │ │ │ │ ├── RegistryUtils.cpp │ │ │ │ │ ├── RegistryUtils.h │ │ │ │ │ ├── RootFolder.cpp │ │ │ │ │ ├── RootFolder.h │ │ │ │ │ ├── SettingsPage.cpp │ │ │ │ │ ├── SettingsPage.h │ │ │ │ │ ├── SettingsPage.rc │ │ │ │ │ ├── SettingsPage2.rc │ │ │ │ │ ├── SettingsPageRes.h │ │ │ │ │ ├── SplitDialog.cpp │ │ │ │ │ ├── SplitDialog.h │ │ │ │ │ ├── SplitDialog.rc │ │ │ │ │ ├── SplitDialogRes.h │ │ │ │ │ ├── SplitUtils.cpp │ │ │ │ │ ├── SplitUtils.h │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── StringUtils.cpp │ │ │ │ │ ├── StringUtils.h │ │ │ │ │ ├── SysIconUtils.cpp │ │ │ │ │ ├── SysIconUtils.h │ │ │ │ │ ├── SystemPage.cpp │ │ │ │ │ ├── SystemPage.h │ │ │ │ │ ├── SystemPage.rc │ │ │ │ │ ├── SystemPageRes.h │ │ │ │ │ ├── Test.bmp │ │ │ │ │ ├── Test2.bmp │ │ │ │ │ ├── TextPairs.cpp │ │ │ │ │ ├── TextPairs.h │ │ │ │ │ ├── UpdateCallback100.cpp │ │ │ │ │ ├── UpdateCallback100.h │ │ │ │ │ ├── ViewSettings.cpp │ │ │ │ │ ├── ViewSettings.h │ │ │ │ │ ├── makefile │ │ │ │ │ ├── resource.h │ │ │ │ │ ├── resource.rc │ │ │ │ │ ├── resourceGui.h │ │ │ │ │ └── resourceGui.rc │ │ │ │ ├── GUI │ │ │ │ │ ├── 7zG.exe.manifest │ │ │ │ │ ├── BenchmarkDialog.cpp │ │ │ │ │ ├── BenchmarkDialog.h │ │ │ │ │ ├── BenchmarkDialog.rc │ │ │ │ │ ├── BenchmarkDialogRes.h │ │ │ │ │ ├── CompressDialog.cpp │ │ │ │ │ ├── CompressDialog.h │ │ │ │ │ ├── CompressDialog.rc │ │ │ │ │ ├── CompressDialogRes.h │ │ │ │ │ ├── Extract.rc │ │ │ │ │ ├── ExtractDialog.cpp │ │ │ │ │ ├── ExtractDialog.h │ │ │ │ │ ├── ExtractDialog.rc │ │ │ │ │ ├── ExtractDialogRes.h │ │ │ │ │ ├── ExtractGUI.cpp │ │ │ │ │ ├── ExtractGUI.h │ │ │ │ │ ├── ExtractRes.h │ │ │ │ │ ├── FM.ico │ │ │ │ │ ├── GUI.cpp │ │ │ │ │ ├── GUI.dsp │ │ │ │ │ ├── GUI.dsw │ │ │ │ │ ├── StdAfx.cpp │ │ │ │ │ ├── StdAfx.h │ │ │ │ │ ├── UpdateCallbackGUI.cpp │ │ │ │ │ ├── UpdateCallbackGUI.h │ │ │ │ │ ├── UpdateGUI.cpp │ │ │ │ │ ├── UpdateGUI.h │ │ │ │ │ ├── makefile │ │ │ │ │ ├── resource.rc │ │ │ │ │ ├── resource2.h │ │ │ │ │ └── resource2.rc │ │ │ │ └── makefile │ │ │ └── makefile │ │ ├── Build.mak │ │ ├── Common │ │ │ ├── AutoPtr.h │ │ │ ├── Buffer.h │ │ │ ├── CRC.cpp │ │ │ ├── C_FileIO.cpp │ │ │ ├── C_FileIO.h │ │ │ ├── ComTry.h │ │ │ ├── CommandLineParser.cpp │ │ │ ├── CommandLineParser.h │ │ │ ├── Defs.h │ │ │ ├── DynamicBuffer.h │ │ │ ├── IntToString.cpp │ │ │ ├── IntToString.h │ │ │ ├── Lang.cpp │ │ │ ├── Lang.h │ │ │ ├── ListFileUtils.cpp │ │ │ ├── ListFileUtils.h │ │ │ ├── MyCom.h │ │ │ ├── MyException.h │ │ │ ├── MyGuidDef.h │ │ │ ├── MyInitGuid.h │ │ │ ├── MyMap.cpp │ │ │ ├── MyMap.h │ │ │ ├── MyString.cpp │ │ │ ├── MyString.h │ │ │ ├── MyUnknown.h │ │ │ ├── MyVector.cpp │ │ │ ├── MyVector.h │ │ │ ├── MyWindows.cpp │ │ │ ├── MyWindows.h │ │ │ ├── MyXml.cpp │ │ │ ├── MyXml.h │ │ │ ├── NewHandler.cpp │ │ │ ├── NewHandler.h │ │ │ ├── Random.cpp │ │ │ ├── Random.h │ │ │ ├── StdAfx.h │ │ │ ├── StdInStream.cpp │ │ │ ├── StdInStream.h │ │ │ ├── StdOutStream.cpp │ │ │ ├── StdOutStream.h │ │ │ ├── StringConvert.cpp │ │ │ ├── StringConvert.h │ │ │ ├── StringToInt.cpp │ │ │ ├── StringToInt.h │ │ │ ├── TextConfig.cpp │ │ │ ├── TextConfig.h │ │ │ ├── Types.h │ │ │ ├── UTFConvert.cpp │ │ │ ├── UTFConvert.h │ │ │ ├── Wildcard.cpp │ │ │ └── Wildcard.h │ │ └── Windows │ │ │ ├── COM.cpp │ │ │ ├── COM.h │ │ │ ├── Clipboard.cpp │ │ │ ├── Clipboard.h │ │ │ ├── CommonDialog.cpp │ │ │ ├── CommonDialog.h │ │ │ ├── Console.cpp │ │ │ ├── Console.h │ │ │ ├── Control │ │ │ ├── ComboBox.cpp │ │ │ ├── ComboBox.h │ │ │ ├── CommandBar.h │ │ │ ├── Dialog.cpp │ │ │ ├── Dialog.h │ │ │ ├── Edit.h │ │ │ ├── ImageList.cpp │ │ │ ├── ImageList.h │ │ │ ├── ListView.cpp │ │ │ ├── ListView.h │ │ │ ├── ProgressBar.h │ │ │ ├── PropertyPage.cpp │ │ │ ├── PropertyPage.h │ │ │ ├── ReBar.h │ │ │ ├── Static.h │ │ │ ├── StatusBar.h │ │ │ ├── StdAfx.h │ │ │ ├── ToolBar.h │ │ │ ├── Trackbar.h │ │ │ ├── Window2.cpp │ │ │ └── Window2.h │ │ │ ├── DLL.cpp │ │ │ ├── DLL.h │ │ │ ├── Defs.h │ │ │ ├── Error.cpp │ │ │ ├── Error.h │ │ │ ├── FileDir.cpp │ │ │ ├── FileDir.h │ │ │ ├── FileFind.cpp │ │ │ ├── FileFind.h │ │ │ ├── FileIO.cpp │ │ │ ├── FileIO.h │ │ │ ├── FileMapping.cpp │ │ │ ├── FileMapping.h │ │ │ ├── FileName.cpp │ │ │ ├── FileName.h │ │ │ ├── FileSystem.cpp │ │ │ ├── FileSystem.h │ │ │ ├── Handle.h │ │ │ ├── Memory.cpp │ │ │ ├── Memory.h │ │ │ ├── MemoryLock.cpp │ │ │ ├── MemoryLock.h │ │ │ ├── Menu.cpp │ │ │ ├── Menu.h │ │ │ ├── NationalTime.cpp │ │ │ ├── NationalTime.h │ │ │ ├── Net.cpp │ │ │ ├── Net.h │ │ │ ├── NtCheck.h │ │ │ ├── Process.cpp │ │ │ ├── Process.h │ │ │ ├── ProcessMessages.cpp │ │ │ ├── ProcessMessages.h │ │ │ ├── PropVariant.cpp │ │ │ ├── PropVariant.h │ │ │ ├── PropVariantConversions.cpp │ │ │ ├── PropVariantConversions.h │ │ │ ├── PropVariantUtils.cpp │ │ │ ├── PropVariantUtils.h │ │ │ ├── Registry.cpp │ │ │ ├── Registry.h │ │ │ ├── ResourceString.cpp │ │ │ ├── ResourceString.h │ │ │ ├── Security.cpp │ │ │ ├── Security.h │ │ │ ├── Shell.cpp │ │ │ ├── Shell.h │ │ │ ├── StdAfx.h │ │ │ ├── Synchronization.cpp │ │ │ ├── Synchronization.h │ │ │ ├── System.cpp │ │ │ ├── System.h │ │ │ ├── Thread.h │ │ │ ├── Time.cpp │ │ │ ├── Time.h │ │ │ ├── Window.cpp │ │ │ └── Window.h │ └── DOC │ │ ├── 7zC.txt │ │ ├── 7zFormat.txt │ │ ├── 7zip.hhp │ │ ├── 7zip.inf │ │ ├── 7zip.nsi │ │ ├── 7zip.wxs │ │ ├── License.txt │ │ ├── Methods.txt │ │ ├── copying.txt │ │ ├── history.txt │ │ ├── lzma.txt │ │ ├── readme.txt │ │ └── unRarLicense.txt ├── CityHash │ ├── COPYING │ ├── README │ ├── city.cc │ ├── city.h │ ├── citybyteswap.h │ └── citycrc.h ├── CrapWow.c ├── CrapWow.h ├── Doboz │ ├── Common.h │ ├── Compressor.cpp │ ├── Compressor.h │ ├── Decompressor.cpp │ ├── Decompressor.h │ ├── Dictionary.cpp │ └── Dictionary.h ├── LZP_ds.cpp ├── LZWC.c ├── LZWC.h ├── MurmurHash3.cpp ├── MurmurHash3.h ├── Nobuo-Ito-LZSS.c ├── RLE64.cpp ├── RLE64.hpp ├── SHA3 │ ├── Blake │ │ ├── blake_opt64.c │ │ └── blake_opt64.h │ ├── BlueMidnightWish │ │ ├── BlueMidnightWish_opt.c │ │ ├── BlueMidnightWish_opt_002.c │ │ └── SHA3api_ref.h │ ├── CubeHash │ │ ├── cubehash.c │ │ └── cubehash.h │ ├── Edon-R │ │ ├── Edon-R_opt.c │ │ └── SHA3api_ref.h │ ├── Groestl │ │ ├── Groestl-opt.c │ │ ├── Groestl-opt.h │ │ ├── brg_endian.h │ │ ├── brg_types.h │ │ └── tables.h │ ├── JH │ │ └── jh_ansi_opt64.h │ ├── Keccak │ │ ├── AVR8-rotate64.h │ │ ├── AVR8-rotate64.s │ │ ├── Keccak-avr8-settings.h │ │ ├── Keccak-avr8-test.c │ │ ├── Keccak-avr8-util.h │ │ ├── Keccak-avr8-util.s │ │ ├── Keccak-avr8.c │ │ ├── Keccak-avr8.h │ │ ├── KeccakDuplex.c │ │ ├── KeccakDuplex.h │ │ ├── KeccakF-1600-32-rvk.macros │ │ ├── KeccakF-1600-32-s1.macros │ │ ├── KeccakF-1600-32-s2.macros │ │ ├── KeccakF-1600-32.macros │ │ ├── KeccakF-1600-64.macros │ │ ├── KeccakF-1600-arm.c │ │ ├── KeccakF-1600-armcc.s │ │ ├── KeccakF-1600-armgcc.s │ │ ├── KeccakF-1600-avr8.c │ │ ├── KeccakF-1600-avr8asm-fast.s │ │ ├── KeccakF-1600-int-set.h │ │ ├── KeccakF-1600-interface.h │ │ ├── KeccakF-1600-opt32-settings.h │ │ ├── KeccakF-1600-opt32.c │ │ ├── KeccakF-1600-opt64-settings.h │ │ ├── KeccakF-1600-opt64.c │ │ ├── KeccakF-1600-simd128.macros │ │ ├── KeccakF-1600-simd64.macros │ │ ├── KeccakF-1600-unrolling.macros │ │ ├── KeccakF-1600-x86-64-asm.c │ │ ├── KeccakF-1600-x86-64-gas.s │ │ ├── KeccakF-1600-x86-64-shld-gas.s │ │ ├── KeccakF-1600-xop.macros │ │ ├── KeccakNISTInterface.c │ │ ├── KeccakNISTInterface.h │ │ ├── KeccakSponge.c │ │ ├── KeccakSponge.h │ │ ├── brg_endian.h │ │ └── crypto_hash.h │ ├── SWIFFTX │ │ ├── SHA3.c │ │ ├── SHA3.h │ │ ├── SWIFFTX.c │ │ ├── SWIFFTX.h │ │ ├── inttypes.h │ │ ├── stdbool.h │ │ └── stdint.h │ ├── Skein │ │ ├── SHA3api_ref.c │ │ ├── SHA3api_ref.h │ │ ├── brg_endian.h │ │ ├── brg_types.h │ │ ├── skein.c │ │ ├── skein.h │ │ ├── skein_block.c │ │ ├── skein_debug.c │ │ ├── skein_debug.h │ │ ├── skein_iv.h │ │ └── skein_port.h │ ├── fsbench_SHA3.cpp │ └── fsbench_SHA3.hpp ├── Shrinker.c ├── Shrinker.h ├── SpookyV2.cpp ├── SpookyV2.h ├── Yappy.cpp ├── Yappy.hpp ├── _patches │ ├── LZWC.patch │ ├── cityhash.diff │ ├── pg_lz.diff │ ├── quicklzzip.diff │ ├── tornado.diff │ ├── tornado2.diff │ └── zlib.diff ├── ar │ ├── lzh.h │ ├── lzhclib.c │ └── lzhxlib.c ├── bcl │ ├── doc │ │ └── manual.pdf │ ├── readme.html │ ├── src │ │ ├── Makefile │ │ ├── bcl.cpp │ │ ├── bcl.hpp │ │ ├── bcltest.c │ │ ├── bfc.c │ │ ├── huffman.c │ │ ├── huffman.h │ │ ├── lz.c │ │ ├── lz.h │ │ ├── rice.c │ │ ├── rice.h │ │ ├── rle.c │ │ ├── rle.h │ │ ├── shannonfano.c │ │ ├── shannonfano.h │ │ ├── systimer.c │ │ └── systimer.h │ └── style.css ├── blake2 │ ├── blake2-config.h │ ├── blake2-impl.h │ ├── blake2-kat.h │ ├── blake2.h │ ├── blake2b-load-sse2.h │ ├── blake2b-load-sse41.h │ ├── blake2b-round.h │ ├── blake2b.c │ ├── blake2bp.c │ ├── blake2s-load-sse2.h │ ├── blake2s-load-sse41.h │ ├── blake2s-load-xop.h │ ├── blake2s-round.h │ ├── blake2s.c │ └── blake2sp.c ├── blosc │ ├── LICENSES │ │ ├── BLOSC.txt │ │ ├── FASTLZ.txt │ │ ├── H5PY.txt │ │ └── STDINT.txt │ ├── README.rst │ ├── blosclz.c │ ├── blosclz.h │ └── win32 │ │ ├── pthread.c │ │ ├── pthread.h │ │ └── stdint-windows.h ├── brieflz │ ├── blz_crc32.c │ ├── blz_depack.c │ ├── brieflz.c │ └── brieflz.h ├── brotli │ ├── LICENSE │ ├── brotlispec.txt │ ├── dec │ │ ├── README │ │ ├── bit_reader.c │ │ ├── bit_reader.h │ │ ├── context.h │ │ ├── decode.c │ │ ├── decode.h │ │ ├── dictionary.h │ │ ├── huffman.c │ │ ├── huffman.h │ │ ├── prefix.h │ │ ├── safe_malloc.c │ │ ├── safe_malloc.h │ │ ├── streams.c │ │ ├── streams.h │ │ ├── transform.h │ │ └── types.h │ └── enc │ │ ├── README │ │ ├── backward_references.cc │ │ ├── backward_references.h │ │ ├── bit_cost.h │ │ ├── block_splitter.cc │ │ ├── block_splitter.h │ │ ├── cluster.h │ │ ├── command.h │ │ ├── context.h │ │ ├── dictionary.h │ │ ├── encode.cc │ │ ├── encode.h │ │ ├── entropy_encode.cc │ │ ├── entropy_encode.h │ │ ├── fast_log.h │ │ ├── find_match_length.h │ │ ├── hash.h │ │ ├── histogram.cc │ │ ├── histogram.h │ │ ├── literal_cost.cc │ │ ├── literal_cost.h │ │ ├── port.h │ │ ├── prefix.cc │ │ ├── prefix.h │ │ ├── ringbuffer.h │ │ ├── static_dict.h │ │ ├── transform.h │ │ └── write_bits.h ├── bzip2-1.0.6 │ ├── CHANGES │ ├── LICENSE │ ├── README │ ├── README.COMPILATION.PROBLEMS │ ├── README.XML.STUFF │ ├── blocksort.c │ ├── bz-common.xsl │ ├── bz-fo.xsl │ ├── bz-html.xsl │ ├── bzdiff │ ├── bzdiff.1 │ ├── bzgrep │ ├── bzgrep.1 │ ├── bzip.css │ ├── bzip2.1 │ ├── bzip2.1.preformatted │ ├── bzip2.c │ ├── bzip2.txt │ ├── bzip2recover.c │ ├── bzlib.c │ ├── bzlib.h │ ├── bzlib_private.h │ ├── bzmore │ ├── bzmore.1 │ ├── compress.c │ ├── crctable.c │ ├── decompress.c │ ├── dlltest.c │ ├── entities.xml │ ├── format.pl │ ├── huffman.c │ ├── manual.html │ ├── manual.xml │ ├── mk251.c │ ├── randtable.c │ ├── sample1.bz2 │ ├── sample1.ref │ ├── sample2.bz2 │ ├── sample2.ref │ ├── sample3.bz2 │ ├── sample3.ref │ ├── spewG.c │ ├── unzcrash.c │ ├── words0 │ ├── words1 │ ├── words2 │ ├── words3 │ └── xmlproc.sh ├── crush │ ├── crush.cpp │ └── crush.hpp ├── cryptopp │ ├── 3way.cpp │ ├── 3way.h │ ├── Doxyfile │ ├── License.txt │ ├── Readme.txt │ ├── adhoc.cpp.proto │ ├── adler32.cpp │ ├── adler32.h │ ├── aes.h │ ├── algebra.cpp │ ├── algebra.h │ ├── algparam.cpp │ ├── algparam.h │ ├── arc4.cpp │ ├── arc4.h │ ├── argnames.h │ ├── asn.cpp │ ├── asn.h │ ├── authenc.cpp │ ├── authenc.h │ ├── base32.cpp │ ├── base32.h │ ├── base64.cpp │ ├── base64.h │ ├── basecode.cpp │ ├── basecode.h │ ├── bench.cpp │ ├── bench.h │ ├── bench2.cpp │ ├── bfinit.cpp │ ├── blowfish.cpp │ ├── blowfish.h │ ├── blumshub.cpp │ ├── blumshub.h │ ├── camellia.cpp │ ├── camellia.h │ ├── cast.cpp │ ├── cast.h │ ├── casts.cpp │ ├── cbcmac.cpp │ ├── cbcmac.h │ ├── ccm.cpp │ ├── ccm.h │ ├── channels.cpp │ ├── channels.h │ ├── cmac.cpp │ ├── cmac.h │ ├── config.h │ ├── cpu.cpp │ ├── cpu.h │ ├── crc.cpp │ ├── crc.h │ ├── cryptlib.cpp │ ├── cryptlib.h │ ├── cryptlib_bds.cpp │ ├── cryptopp.cpp │ ├── cryptopp.hpp │ ├── datatest.cpp │ ├── default.cpp │ ├── default.h │ ├── des.cpp │ ├── des.h │ ├── dessp.cpp │ ├── dh.cpp │ ├── dh.h │ ├── dh2.cpp │ ├── dh2.h │ ├── dll.cpp │ ├── dll.h │ ├── dlltest.cpp │ ├── dmac.h │ ├── dsa.cpp │ ├── dsa.h │ ├── eax.cpp │ ├── eax.h │ ├── ec2n.cpp │ ├── ec2n.h │ ├── eccrypto.cpp │ ├── eccrypto.h │ ├── ecp.cpp │ ├── ecp.h │ ├── elgamal.cpp │ ├── elgamal.h │ ├── emsa2.cpp │ ├── emsa2.h │ ├── eprecomp.cpp │ ├── eprecomp.h │ ├── esign.cpp │ ├── esign.h │ ├── factory.h │ ├── files.cpp │ ├── files.h │ ├── filters.cpp │ ├── filters.h │ ├── fips140.cpp │ ├── fips140.h │ ├── fipsalgt.cpp │ ├── fipstest.cpp │ ├── fltrimpl.h │ ├── gcm.cpp │ ├── gcm.h │ ├── gf256.cpp │ ├── gf256.h │ ├── gf2_32.cpp │ ├── gf2_32.h │ ├── gf2n.cpp │ ├── gf2n.h │ ├── gfpcrypt.cpp │ ├── gfpcrypt.h │ ├── gost.cpp │ ├── gost.h │ ├── gzip.cpp │ ├── gzip.h │ ├── hex.cpp │ ├── hex.h │ ├── hmac.cpp │ ├── hmac.h │ ├── hrtimer.cpp │ ├── hrtimer.h │ ├── ida.cpp │ ├── ida.h │ ├── idea.cpp │ ├── idea.h │ ├── integer.cpp │ ├── integer.h │ ├── iterhash.cpp │ ├── iterhash.h │ ├── lubyrack.h │ ├── luc.cpp │ ├── luc.h │ ├── mars.cpp │ ├── mars.h │ ├── marss.cpp │ ├── md2.cpp │ ├── md2.h │ ├── md4.cpp │ ├── md4.h │ ├── md5.cpp │ ├── md5.h │ ├── mdc.h │ ├── misc.cpp │ ├── misc.h │ ├── modarith.h │ ├── modes.cpp │ ├── modes.h │ ├── modexppc.h │ ├── mqueue.cpp │ ├── mqueue.h │ ├── mqv.cpp │ ├── mqv.h │ ├── nbtheory.cpp │ ├── nbtheory.h │ ├── network.cpp │ ├── network.h │ ├── nr.h │ ├── oaep.cpp │ ├── oaep.h │ ├── oids.h │ ├── osrng.cpp │ ├── osrng.h │ ├── panama.cpp │ ├── panama.h │ ├── pch.cpp │ ├── pch.h │ ├── pkcspad.cpp │ ├── pkcspad.h │ ├── polynomi.cpp │ ├── polynomi.h │ ├── pssr.cpp │ ├── pssr.h │ ├── pubkey.cpp │ ├── pubkey.h │ ├── pwdbased.h │ ├── queue.cpp │ ├── queue.h │ ├── rabin.cpp │ ├── rabin.h │ ├── randpool.cpp │ ├── randpool.h │ ├── rc2.cpp │ ├── rc2.h │ ├── rc5.cpp │ ├── rc5.h │ ├── rc6.cpp │ ├── rc6.h │ ├── rdtables.cpp │ ├── regtest.cpp │ ├── resource.h │ ├── rijndael.cpp │ ├── rijndael.h │ ├── ripemd.cpp │ ├── ripemd.h │ ├── rng.cpp │ ├── rng.h │ ├── rsa.cpp │ ├── rsa.h │ ├── rw.cpp │ ├── rw.h │ ├── safer.cpp │ ├── safer.h │ ├── salsa.cpp │ ├── salsa.h │ ├── seal.cpp │ ├── seal.h │ ├── secblock.h │ ├── seckey.h │ ├── seed.cpp │ ├── seed.h │ ├── serpent.cpp │ ├── serpent.h │ ├── serpentp.h │ ├── sha.cpp │ ├── sha.h │ ├── shacal2.cpp │ ├── shacal2.h │ ├── shark.cpp │ ├── shark.h │ ├── sharkbox.cpp │ ├── simple.cpp │ ├── simple.h │ ├── skipjack.cpp │ ├── skipjack.h │ ├── smartptr.h │ ├── socketft.cpp │ ├── socketft.h │ ├── sosemanuk.cpp │ ├── sosemanuk.h │ ├── square.cpp │ ├── square.h │ ├── squaretb.cpp │ ├── stdcpp.h │ ├── strciphr.cpp │ ├── strciphr.h │ ├── tea.cpp │ ├── tea.h │ ├── test.cpp │ ├── tftables.cpp │ ├── tiger.cpp │ ├── tiger.h │ ├── tigertab.cpp │ ├── trdlocal.cpp │ ├── trdlocal.h │ ├── trunhash.h │ ├── ttmac.cpp │ ├── ttmac.h │ ├── twofish.cpp │ ├── twofish.h │ ├── validat1.cpp │ ├── validat2.cpp │ ├── validat3.cpp │ ├── validate.h │ ├── vmac.cpp │ ├── vmac.h │ ├── wait.cpp │ ├── wait.h │ ├── wake.cpp │ ├── wake.h │ ├── whrlpool.cpp │ ├── whrlpool.h │ ├── winpipes.cpp │ ├── winpipes.h │ ├── words.h │ ├── x64dll.asm │ ├── x64masm.asm │ ├── xtr.cpp │ ├── xtr.h │ ├── xtrcrypt.cpp │ ├── xtrcrypt.h │ ├── zdeflate.cpp │ ├── zdeflate.h │ ├── zinflate.cpp │ ├── zinflate.h │ ├── zlib.cpp │ └── zlib.h ├── ecrypt │ ├── aes-ctr-bernstein.c │ ├── aes-ctr-hongjun.c │ ├── aes-table-hongjun.h │ ├── aes256-hongjun.h │ ├── chacha.c │ ├── ecrypt-config.h │ ├── ecrypt-machine.h │ ├── ecrypt-portable.h │ ├── ecrypt-sync-aes128-bernstein.h │ ├── ecrypt-sync-aes256-hongjun.h │ ├── ecrypt-sync-chacha.h │ ├── ecrypt-sync-hc-128.h │ ├── ecrypt-sync-hc-256.h │ ├── ecrypt-sync-lex.h │ ├── ecrypt-sync-rabbit.h │ ├── ecrypt-sync-rc4.h │ ├── ecrypt-sync-salsa20-12.h │ ├── ecrypt-sync-salsa20-8.h │ ├── ecrypt-sync-salsa20.h │ ├── ecrypt-sync-snow-2.0.h │ ├── ecrypt-sync-sosemanuk.h │ ├── ecrypt-sync-trivium.h │ ├── fsbench_ecrypt.cpp │ ├── fsbench_ecrypt.hpp │ ├── hc-128.c │ ├── hc-256.c │ ├── lex.c │ ├── rabbit.c │ ├── rc4.c │ ├── salsa20-12.c │ ├── salsa20-8.c │ ├── salsa20.c │ ├── snow-2.0.c │ ├── snow2_fast.c │ ├── snow2tab.h │ ├── sosemanuk.c │ ├── sosemanuk.h │ ├── table-bernstein.h │ └── trivium.c ├── farmhash │ ├── farmhash.cc │ └── farmhash.h ├── fastcrypto │ ├── rijndael-alg-fst.c │ ├── rijndael-alg-fst.h │ ├── umac.c │ ├── umac.h │ ├── vmac.c │ └── vmac.h ├── fastlz.c ├── fastlz.h ├── fse │ ├── fse.c │ └── fse.h ├── gipfeli │ ├── COPYING │ ├── README │ ├── compression.h │ ├── config.h │ ├── decompress.cc │ ├── entropy.cc │ ├── entropy.h │ ├── entropy_code_builder.cc │ ├── entropy_code_builder.h │ ├── enum.h │ ├── find_match_length.h │ ├── fsbench_gipfeli.cpp │ ├── fsbench_gipfeli.h │ ├── fsbench_gipfeli.hpp │ ├── gipfeli-internal.cc │ ├── gipfeli-internal.h │ ├── gipfeli.cc │ ├── gipfeli.h │ ├── integral_types.h │ ├── lz77.cc │ ├── lz77.h │ ├── read_bits.h │ ├── sinksource.h │ ├── stream.h │ └── stubs-internal.h ├── halibut-deflate.c ├── halibut-deflate.h ├── liblzg │ ├── extra │ │ ├── README.txt │ │ ├── lzgmini.c │ │ ├── lzgmini.js │ │ ├── lzgmini.lua │ │ ├── lzgmini.pas │ │ ├── lzgmini_6502.s │ │ ├── lzgmini_68k.h │ │ └── lzgmini_68k.s │ ├── include │ │ └── lzg.h │ ├── lib │ │ ├── Makefile │ │ ├── checksum.c │ │ ├── decode.c │ │ ├── encode.c │ │ ├── internal.h │ │ └── version.c │ └── tools │ │ ├── Makefile │ │ ├── benchmark.c │ │ ├── lzg.c │ │ └── unlzg.c ├── lodepng.cpp ├── lodepng.h ├── lrrle.c ├── lz4 │ ├── .gitattributes │ ├── .travis.yml │ ├── Makefile │ ├── NEWS │ ├── README.md │ ├── cmake_unofficial │ │ └── CMakeLists.txt │ ├── examples │ │ ├── HCStreaming_ringBuffer.c │ │ ├── Makefile │ │ ├── README.md │ │ ├── blockStreaming_doubleBuffer.c │ │ ├── blockStreaming_doubleBuffer.md │ │ ├── blockStreaming_lineByLine.c │ │ ├── blockStreaming_lineByLine.md │ │ ├── blockStreaming_ringBuffer.c │ │ ├── printVersion.c │ │ └── streaming_api_basics.md │ ├── lib │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── liblz4.pc.in │ │ ├── lz4.c │ │ ├── lz4.h │ │ ├── lz4frame.c │ │ ├── lz4frame.h │ │ ├── lz4frame_static.h │ │ ├── lz4hc.c │ │ ├── lz4hc.h │ │ ├── xxhash.c │ │ └── xxhash.h │ ├── lz4_Block_format.md │ ├── lz4_Frame_format.md │ ├── programs │ │ ├── COPYING │ │ ├── Makefile │ │ ├── bench.c │ │ ├── bench.h │ │ ├── datagen.c │ │ ├── datagen.h │ │ ├── datagencli.c │ │ ├── frametest.c │ │ ├── fullbench.c │ │ ├── fuzzer.c │ │ ├── lz4.1 │ │ ├── lz4cli.c │ │ ├── lz4io.c │ │ └── lz4io.h │ └── visual │ │ └── 2012 │ │ ├── datagen │ │ ├── datagen.vcxproj │ │ └── datagen.vcxproj.filters │ │ ├── frametest │ │ ├── frametest.vcxproj │ │ └── frametest.vcxproj.filters │ │ ├── fullbench │ │ ├── fullbench.vcxproj │ │ └── fullbench.vcxproj.filters │ │ ├── fuzzer │ │ ├── fuzzer.vcxproj │ │ └── fuzzer.vcxproj.filters │ │ ├── lz4.sln │ │ └── lz4 │ │ ├── lz4.vcxproj │ │ └── lz4.vcxproj.filters ├── lzf │ ├── lzf.h │ ├── lzfP.h │ ├── lzf_c.c │ ├── lzf_c_ultra.c │ ├── lzf_c_very.c │ └── lzf_d.c ├── lzfx.c ├── lzfx.h ├── lzham │ ├── LICENSE │ ├── README.md │ ├── include │ │ ├── lzham.h │ │ ├── lzham_dynamic_lib.h │ │ ├── lzham_exports.inc │ │ ├── lzham_static_lib.h │ │ └── zlib.h │ ├── lzhamcomp │ │ ├── lzham_comp.h │ │ ├── lzham_lzbase.cpp │ │ ├── lzham_lzbase.h │ │ ├── lzham_lzcomp.cpp │ │ ├── lzham_lzcomp_internal.cpp │ │ ├── lzham_lzcomp_internal.h │ │ ├── lzham_lzcomp_state.cpp │ │ ├── lzham_match_accel.cpp │ │ ├── lzham_match_accel.h │ │ ├── lzham_null_threading.h │ │ └── lzham_threading.h │ ├── lzhamdecomp │ │ ├── lzham_assert.cpp │ │ ├── lzham_assert.h │ │ ├── lzham_checksum.cpp │ │ ├── lzham_checksum.h │ │ ├── lzham_config.h │ │ ├── lzham_core.h │ │ ├── lzham_decomp.h │ │ ├── lzham_helpers.h │ │ ├── lzham_huffman_codes.cpp │ │ ├── lzham_huffman_codes.h │ │ ├── lzham_lzdecomp.cpp │ │ ├── lzham_lzdecompbase.cpp │ │ ├── lzham_lzdecompbase.h │ │ ├── lzham_math.h │ │ ├── lzham_mem.cpp │ │ ├── lzham_mem.h │ │ ├── lzham_platform.cpp │ │ ├── lzham_platform.h │ │ ├── lzham_prefix_coding.cpp │ │ ├── lzham_prefix_coding.h │ │ ├── lzham_symbol_codec.cpp │ │ ├── lzham_symbol_codec.h │ │ ├── lzham_timer.cpp │ │ ├── lzham_timer.h │ │ ├── lzham_traits.h │ │ ├── lzham_types.h │ │ ├── lzham_utils.h │ │ ├── lzham_vector.cpp │ │ └── lzham_vector.h │ ├── lzhamdll │ │ ├── lzham_api.cpp │ │ ├── lzham_dll_main.cpp │ │ └── lzhamdll.def │ └── lzhamlib │ │ └── lzham_lib.cpp ├── lzmat.h ├── lzmat_dec.c ├── lzmat_enc.c ├── lzo │ ├── COPYING │ ├── README │ ├── compr1b.h │ ├── compr1c.h │ ├── config1.h │ ├── config1a.h │ ├── config1b.h │ ├── config1c.h │ ├── config1f.h │ ├── config1x.h │ ├── config1y.h │ ├── config1z.h │ ├── config2a.h │ ├── lzo1.c │ ├── lzo1.h │ ├── lzo1_99.c │ ├── lzo1_cm.ch │ ├── lzo1_d.ch │ ├── lzo1a.c │ ├── lzo1a.h │ ├── lzo1a_99.c │ ├── lzo1a_cm.ch │ ├── lzo1a_cr.ch │ ├── lzo1a_de.h │ ├── lzo1b.h │ ├── lzo1b_1.c │ ├── lzo1b_2.c │ ├── lzo1b_3.c │ ├── lzo1b_4.c │ ├── lzo1b_5.c │ ├── lzo1b_6.c │ ├── lzo1b_7.c │ ├── lzo1b_8.c │ ├── lzo1b_9.c │ ├── lzo1b_99.c │ ├── lzo1b_9x.c │ ├── lzo1b_c.ch │ ├── lzo1b_cc.c │ ├── lzo1b_cc.h │ ├── lzo1b_cm.ch │ ├── lzo1b_cr.ch │ ├── lzo1b_d.ch │ ├── lzo1b_d1.c │ ├── lzo1b_d2.c │ ├── lzo1b_de.h │ ├── lzo1b_r.ch │ ├── lzo1b_rr.c │ ├── lzo1b_sm.ch │ ├── lzo1b_tm.ch │ ├── lzo1b_xx.c │ ├── lzo1c.h │ ├── lzo1c_1.c │ ├── lzo1c_2.c │ ├── lzo1c_3.c │ ├── lzo1c_4.c │ ├── lzo1c_5.c │ ├── lzo1c_6.c │ ├── lzo1c_7.c │ ├── lzo1c_8.c │ ├── lzo1c_9.c │ ├── lzo1c_99.c │ ├── lzo1c_9x.c │ ├── lzo1c_cc.c │ ├── lzo1c_cc.h │ ├── lzo1c_d1.c │ ├── lzo1c_d2.c │ ├── lzo1c_rr.c │ ├── lzo1c_xx.c │ ├── lzo1f.h │ ├── lzo1f_1.c │ ├── lzo1f_9x.c │ ├── lzo1f_d.ch │ ├── lzo1f_d1.c │ ├── lzo1f_d2.c │ ├── lzo1x.h │ ├── lzo1x_1.c │ ├── lzo1x_1k.c │ ├── lzo1x_1l.c │ ├── lzo1x_1o.c │ ├── lzo1x_9x.c │ ├── lzo1x_c.ch │ ├── lzo1x_d.ch │ ├── lzo1x_d1.c │ ├── lzo1x_d2.c │ ├── lzo1x_d3.c │ ├── lzo1x_o.c │ ├── lzo1x_oo.ch │ ├── lzo1y.h │ ├── lzo1y_1.c │ ├── lzo1y_9x.c │ ├── lzo1y_d1.c │ ├── lzo1y_d2.c │ ├── lzo1y_d3.c │ ├── lzo1y_o.c │ ├── lzo1z.h │ ├── lzo1z_9x.c │ ├── lzo1z_d1.c │ ├── lzo1z_d2.c │ ├── lzo1z_d3.c │ ├── lzo2a.h │ ├── lzo2a_9x.c │ ├── lzo2a_d.ch │ ├── lzo2a_d1.c │ ├── lzo2a_d2.c │ ├── lzo_asm.h │ ├── lzo_conf.h │ ├── lzo_crc.c │ ├── lzo_dict.h │ ├── lzo_dll.ch │ ├── lzo_func.ch │ ├── lzo_func.h │ ├── lzo_init.c │ ├── lzo_mchw.ch │ ├── lzo_ptr.c │ ├── lzo_ptr.h │ ├── lzo_str.c │ ├── lzo_supp.h │ ├── lzo_swd.ch │ ├── lzo_util.c │ ├── lzoconf.h │ ├── lzodefs.h │ ├── lzoutil.h │ ├── miniacc.h │ ├── stats1a.h │ ├── stats1b.h │ └── stats1c.h ├── lzss.cpp ├── lzss.hpp ├── lzv1.c ├── lzv1.h ├── lzx_compress │ ├── COPYING │ ├── ChangeLog │ ├── Makefile │ ├── hash_slide.c │ ├── hash_slide.h │ ├── lz_nonslide.c │ ├── lz_nonslide.h │ ├── lz_slide.c │ ├── lz_slide.h │ ├── lzx_compress.h │ ├── lzx_compress.man3 │ ├── lzx_compress.mdoc3 │ ├── lzx_config.h │ ├── lzx_constants.h │ ├── lzx_layer.c │ └── lzx_test.c ├── miniz.c ├── miniz.cpp ├── miniz.hpp ├── mmini │ ├── ChangeLog.txt │ ├── Makefile │ ├── huffman.c │ ├── lzl.c │ ├── mmini.h │ ├── mmini_test.c │ └── mminizip.c ├── nakamichi │ ├── Nakamichi_Aratama.c │ ├── Nakamichi_Butsuhira.c │ ├── Nakamichi_Butsuhira_branchless.c │ ├── Nakamichi_Daikuni.c │ ├── Nakamichi_Hanabi.c │ ├── Nakamichi_Hanazakari.c │ ├── Nakamichi_Hitomi.c │ ├── Nakamichi_Inazuma.c │ ├── Nakamichi_Jiten.c │ ├── Nakamichi_Kaibutsu.c │ ├── Nakamichi_Kaiko.c │ ├── Nakamichi_Kinezumi.c │ ├── Nakamichi_Kinroba.c │ ├── Nakamichi_Kinutora.c │ ├── Nakamichi_Kitsune.c │ ├── Nakamichi_Kumataka.c │ ├── Nakamichi_Nekomata.c │ ├── Nakamichi_Nin.c │ ├── Nakamichi_Nirenpatsu.c │ ├── Nakamichi_Sanagi.c │ ├── Nakamichi_Sanbashi.c │ ├── Nakamichi_Sanrenpatsu.c │ ├── Nakamichi_Sanshi.c │ ├── Nakamichi_Suiken.c │ ├── Nakamichi_Tengu.c │ ├── Nakamichi_Washi.c │ ├── Nakamichi_Yoko.c │ ├── Nakamichi_Zangetsu.c │ ├── Nakamichi_r1-RSSBO_1GB_Wordfetcher_TRIAD_NOmemcpy_FIX_Kaidanji_FIX.c │ ├── divsufsort │ │ ├── config.h │ │ ├── divsufsort.c │ │ ├── divsufsort.h │ │ ├── divsufsort_private.h │ │ ├── sssort.c │ │ ├── trsort.c │ │ └── utils.c │ ├── nakamichi.c │ └── nakamichi.h ├── pg_lz │ ├── pg_lzcompress.c │ └── pg_lzcompress.h ├── quicklz │ ├── quicklz.h │ ├── quicklz1.c │ ├── quicklz2.c │ └── quicklz3.c ├── quicklzzip.c ├── quicklzzip.h ├── sanmayce.c ├── sanmayce.h ├── scz_compress │ ├── Readme.txt │ ├── scz.cpp │ ├── scz.h │ ├── scz.hpp │ ├── scz_compress.c │ ├── scz_compress_lib.c │ ├── scz_core.c │ ├── scz_decompress.c │ ├── scz_decompress_lib.c │ └── scz_streams.c ├── siphash │ ├── siphash.hpp │ └── siphash24.c ├── snappy │ ├── COPYING │ ├── README │ ├── snappy-internal.h │ ├── snappy-sinksource.cc │ ├── snappy-sinksource.h │ ├── snappy-stubs-internal.cc │ ├── snappy-stubs-internal.h │ ├── snappy-stubs-public.h │ ├── snappy.cc │ └── snappy.h ├── tinf │ ├── bin │ │ └── tgunzip.exe │ ├── examples │ │ └── tgunzip │ │ │ ├── makefile.b32 │ │ │ ├── makefile.dj2 │ │ │ ├── makefile.dmc │ │ │ ├── makefile.elf │ │ │ ├── makefile.mgw │ │ │ ├── makefile.vc │ │ │ ├── makefile.wat │ │ │ └── tgunzip.c │ ├── lib │ │ └── empty.dir │ ├── readme.txt │ ├── src │ │ ├── adler32.c │ │ ├── crc32.c │ │ ├── makefile.b32 │ │ ├── makefile.dj2 │ │ ├── makefile.dmc │ │ ├── makefile.elf │ │ ├── makefile.mgw │ │ ├── makefile.vc │ │ ├── makefile.wat │ │ ├── nasm │ │ │ ├── crc32.nas │ │ │ ├── nasmlcm.inc │ │ │ └── tinfzlib.nas │ │ ├── tinf.h │ │ ├── tinfgzip.c │ │ ├── tinflate.c │ │ └── tinfzlib.c │ ├── tinf.cpp │ └── tinf.hpp ├── tornado │ ├── Common.cpp │ ├── Common.h │ ├── Compression.h │ ├── DataTables.cpp │ ├── EntropyCoder.cpp │ ├── LZ77_Coder.cpp │ ├── MatchFinder.cpp │ ├── OptimalParsing.cpp │ ├── Tornado.cpp │ ├── license.txt │ ├── tor_test.cpp │ └── tor_test.h ├── ucl │ ├── acc │ │ ├── ACC_LICENSE │ │ ├── acc.h │ │ ├── acc_arch.h │ │ ├── acc_auto.h │ │ ├── acc_cc.h │ │ ├── acc_chk.ch │ │ ├── acc_chkr.ch │ │ ├── acc_cxx.h │ │ ├── acc_defs.h │ │ ├── acc_incd.h │ │ ├── acc_ince.h │ │ ├── acc_inci.h │ │ ├── acc_init.h │ │ ├── acc_lib.ch │ │ ├── acc_lib.h │ │ ├── acc_mm.h │ │ ├── acc_os.h │ │ ├── acc_type.h │ │ └── acclib │ │ │ ├── bele.ch │ │ │ ├── dosalloc.ch │ │ │ ├── fnmatch.ch │ │ │ ├── getopt.ch │ │ │ ├── halloc.ch │ │ │ ├── hfread.ch │ │ │ ├── hmemcpy.ch │ │ │ ├── hread.ch │ │ │ ├── hsread.ch │ │ │ ├── hstring.ch │ │ │ ├── misc.ch │ │ │ ├── opendir.ch │ │ │ ├── perfctr.ch │ │ │ ├── rand.ch │ │ │ ├── rdtsc.ch │ │ │ ├── uclock.ch │ │ │ └── wildargv.ch │ ├── alloc.c │ ├── config.h │ ├── getbit.h │ ├── n2_99.ch │ ├── n2b_99.c │ ├── n2b_d.c │ ├── n2b_ds.c │ ├── n2b_to.c │ ├── n2d_99.c │ ├── n2d_d.c │ ├── n2d_ds.c │ ├── n2d_to.c │ ├── n2e_99.c │ ├── n2e_d.c │ ├── n2e_ds.c │ ├── n2e_to.c │ ├── ucl.h │ ├── ucl_conf.h │ ├── ucl_crc.c │ ├── ucl_dll.ch │ ├── ucl_init.c │ ├── ucl_mchw.ch │ ├── ucl_ptr.c │ ├── ucl_ptr.h │ ├── ucl_str.c │ ├── ucl_swd.ch │ ├── ucl_util.c │ └── uclconf.h ├── unlzx.c ├── wfLZ │ ├── wfLZ.c │ ├── wfLZ.h │ └── wflz.txt ├── xxhash.c ├── xxhash.h ├── z3lib │ ├── BSD-LICENCE │ ├── COPYING │ ├── fsbench_z3lib.cpp │ ├── fsbench_z3lib.hpp │ ├── z3blib.c │ ├── z3blib.h │ ├── z3crc32.h │ ├── z3dlib.c │ ├── z3dlib.h │ ├── z3lib.h │ └── z3liblib.h ├── zfs │ ├── zfs.h │ ├── zfs_fletcher.c │ └── zfs_lzjb2010.c ├── zlib-intel │ ├── README │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── crc_folding.c │ ├── deflate.c │ ├── deflate.h │ ├── deflate_medium.c │ ├── deflate_quick.c │ ├── fill_window_sse.c │ ├── gzguts.h │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── match.c │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── x86.c │ ├── x86.h │ ├── zconf.h │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── zlib │ ├── README │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── gzguts.h │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── trees.c │ ├── trees.h │ ├── zconf.h │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── zling │ ├── fsbench_zling.cpp │ ├── fsbench_zling.hpp │ ├── libzling.cpp │ ├── libzling.h │ ├── libzling_huffman.cpp │ ├── libzling_huffman.h │ ├── libzling_inc.h │ ├── libzling_lz.cpp │ ├── libzling_lz.h │ ├── libzling_utils.cpp │ ├── libzling_utils.h │ ├── msinttypes │ │ ├── changelog.txt │ │ ├── inttypes.h │ │ └── stdint.h │ ├── ztable_matchidx_base.inc │ ├── ztable_matchidx_bits.inc │ ├── ztable_matchidx_blen.inc │ └── ztable_matchidx_code.inc ├── zopfli │ ├── COPYING │ ├── README │ ├── blocksplitter.c │ ├── blocksplitter.h │ ├── cache.c │ ├── cache.h │ ├── deflate.c │ ├── deflate.h │ ├── gzip_container.c │ ├── gzip_container.h │ ├── hash.c │ ├── hash.h │ ├── katajainen.c │ ├── katajainen.h │ ├── lz77.c │ ├── lz77.h │ ├── squeeze.c │ ├── squeeze.h │ ├── tree.c │ ├── tree.h │ ├── util.c │ ├── util.h │ ├── zlib_container.c │ ├── zlib_container.h │ └── zopfli.h └── zstd │ ├── LICENSE │ ├── fse.c │ ├── fse.h │ ├── fse_static.h │ ├── zstd.c │ ├── zstd.h │ └── zstd_static.h ├── main.cpp ├── misc.hpp ├── scheduler.cpp ├── scheduler.hpp ├── simple_codecs.cpp ├── simple_codecs.hpp ├── threads.hpp ├── tools.cpp └── tools.hpp /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "density"] 2 | path = src/codecs/density 3 | url = https://github.com/centaurean/density.git 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.cdt.ui.prefs: -------------------------------------------------------------------------------- 1 | #Fri Mar 01 08:51:51 CET 2013 2 | eclipse.preferences.version=1 3 | formatter_profile=_Mine 4 | formatter_settings_version=1 5 | -------------------------------------------------------------------------------- /Results.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/Results.ods -------------------------------------------------------------------------------- /doc/Doxyfile.in: -------------------------------------------------------------------------------- 1 | PROJECT_NAME = "@PROJECT_NAME@" 2 | PROJECT_NUMBER = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@" 3 | OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@/../doc 4 | INPUT = @CMAKE_CURRENT_SOURCE_DIR@/../src 5 | PROJECT_BRIEF = "A feature-rich in-memory compression / encryption benchmark" 6 | GENERATE_TODOLIST = YES 7 | GENERATE_BUGLIST = YES 8 | CLASS_DIAGRAMS = YES 9 | FULL_PATH_NAMES = NO -------------------------------------------------------------------------------- /src/BUILDING: -------------------------------------------------------------------------------- 1 | First, open CMakeLists.txt and check if you want to edit some options. 2 | 3 | Then, regular CMake. 4 | If you're new to CMake, read http://www.cmake.org/cmake/help/runningcmake.html 5 | 6 | Please note that on some platforms the default CMake compilation mode is with optimisations disabled. 7 | To make sure they are enabled, 8 | a) if you're using command line, pass a flag to cmake: 9 | 10 | -DCMAKE_BUILD_TYPE=Release 11 | 12 | i.e. 13 | 14 | cmake -DCMAKE_BUILD_TYPE=Release . 15 | 16 | b) if you're using GUI, set CMAKE_BUILD_TYPE variable to 'Release' (w/out quotes). -------------------------------------------------------------------------------- /src/codecs/7z/7z.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _7Z_HPP_JS0pDFISjuay96H 2 | #define _7Z_HPP_JS0pDFISjuay96H 3 | 4 | #include "codecs.hpp" 5 | 6 | namespace FsBench7z 7 | { 8 | 9 | size_t deflate(char*in, size_t isize, char*out, size_t osize, void*_); 10 | size_t inflate(char*in, size_t isize, char*out, size_t osize, void*_); 11 | size_t deflate64(char*in, size_t isize, char*out, size_t osize, void*_); 12 | size_t inflate64(char*in, size_t isize, char*out, size_t osize, void*_); 13 | 14 | #if 0 15 | size_t unlzx(char*in, size_t isize, char*out, size_t osize, void*_); 16 | #endif 17 | } //FsBench7z 18 | 19 | #endif // _7Z_HPP_JS0pDFISjuay96H 20 | -------------------------------------------------------------------------------- /src/codecs/7z/C/7zAlloc.h: -------------------------------------------------------------------------------- 1 | /* 7zAlloc.h -- Allocation functions 2 | 2010-10-29 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_ALLOC_H 5 | #define __7Z_ALLOC_H 6 | 7 | #include 8 | 9 | void *SzAlloc(void *p, size_t size); 10 | void SzFree(void *p, void *address); 11 | 12 | void *SzAllocTemp(void *p, size_t size); 13 | void SzFreeTemp(void *p, void *address); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/7z/C/7zBuf.c: -------------------------------------------------------------------------------- 1 | /* 7zBuf.c -- Byte Buffer 2 | 2008-03-28 3 | Igor Pavlov 4 | Public domain */ 5 | 6 | #include "7zBuf.h" 7 | 8 | void Buf_Init(CBuf *p) 9 | { 10 | p->data = 0; 11 | p->size = 0; 12 | } 13 | 14 | int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc) 15 | { 16 | p->size = 0; 17 | if (size == 0) 18 | { 19 | p->data = 0; 20 | return 1; 21 | } 22 | p->data = (Byte *)alloc->Alloc(alloc, size); 23 | if (p->data != 0) 24 | { 25 | p->size = size; 26 | return 1; 27 | } 28 | return 0; 29 | } 30 | 31 | void Buf_Free(CBuf *p, ISzAlloc *alloc) 32 | { 33 | alloc->Free(alloc, p->data); 34 | p->data = 0; 35 | p->size = 0; 36 | } 37 | -------------------------------------------------------------------------------- /src/codecs/7z/C/7zVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VER_MAJOR 9 2 | #define MY_VER_MINOR 20 3 | #define MY_VER_BUILD 0 4 | #define MY_VERSION "9.20" 5 | #define MY_DATE "2010-11-18" 6 | #define MY_COPYRIGHT ": Igor Pavlov : Public domain" 7 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE 8 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2009-04-15 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DELTA_H 5 | #define __DELTA_H 6 | 7 | #include "Types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | #define DELTA_STATE_SIZE 256 14 | 15 | void Delta_Init(Byte *state); 16 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size); 17 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/codecs/7z/C/HuffEnc.h: -------------------------------------------------------------------------------- 1 | /* HuffEnc.h -- Huffman encoding 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __HUFF_ENC_H 5 | #define __HUFF_ENC_H 6 | 7 | #include "Types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /* 14 | Conditions: 15 | num <= 1024 = 2 ^ NUM_BITS 16 | Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS) 17 | maxLen <= 16 = kMaxLen 18 | Num_Items(p) >= HUFFMAN_TEMP_SIZE(num) 19 | */ 20 | 21 | void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen); 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /src/codecs/7z/C/RotateDefs.h: -------------------------------------------------------------------------------- 1 | /* RotateDefs.h -- Rotate functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __ROTATE_DEFS_H 5 | #define __ROTATE_DEFS_H 6 | 7 | #ifdef _MSC_VER 8 | 9 | #include 10 | #define rotlFixed(x, n) _rotl((x), (n)) 11 | #define rotrFixed(x, n) _rotr((x), (n)) 12 | 13 | #else 14 | 15 | #define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) 16 | #define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n)))) 17 | 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Sha256.h: -------------------------------------------------------------------------------- 1 | /* Sha256.h -- SHA-256 Hash 2 | 2010-06-11 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __CRYPTO_SHA256_H 5 | #define __CRYPTO_SHA256_H 6 | 7 | #include "Types.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define SHA256_DIGEST_SIZE 32 12 | 13 | typedef struct 14 | { 15 | UInt32 state[8]; 16 | UInt64 count; 17 | Byte buffer[64]; 18 | } CSha256; 19 | 20 | void Sha256_Init(CSha256 *p); 21 | void Sha256_Update(CSha256 *p, const Byte *data, size_t size); 22 | void Sha256_Final(CSha256 *p, Byte *digest); 23 | 24 | EXTERN_C_END 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_SORT_H 5 | #define __7Z_SORT_H 6 | 7 | #include "Types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | void HeapSort(UInt32 *p, UInt32 size); 14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, UInt32 size); */ 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/7z/7z.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "7z"=.\7z.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/Lzma/LzmaUtil.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "LzmaUtil"=.\LzmaUtil.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/Lzma/makefile: -------------------------------------------------------------------------------- 1 | MY_STATIC_LINK=1 2 | PROG = LZMAc.exe 3 | 4 | CFLAGS = $(CFLAGS) \ 5 | 6 | LIB_OBJS = \ 7 | $O\LzmaUtil.obj \ 8 | 9 | C_OBJS = \ 10 | $O\Alloc.obj \ 11 | $O\LzFind.obj \ 12 | $O\LzFindMt.obj \ 13 | $O\LzmaDec.obj \ 14 | $O\LzmaEnc.obj \ 15 | $O\7zFile.obj \ 16 | $O\7zStream.obj \ 17 | $O\Threads.obj \ 18 | 19 | OBJS = \ 20 | $(LIB_OBJS) \ 21 | $(C_OBJS) \ 22 | 23 | !include "../../../CPP/Build.mak" 24 | 25 | $(LIB_OBJS): $(*B).c 26 | $(COMPL_O2) 27 | $(C_OBJS): ../../$(*B).c 28 | $(COMPL_O2) 29 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/LzmaLib/LzmaLib.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | LzmaCompress 3 | LzmaUncompress 4 | 5 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/LzmaLib/LzmaLib.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "LzmaLib"=.\LzmaLib.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/LzmaLib/LzmaLibExports.c: -------------------------------------------------------------------------------- 1 | /* LzmaLibExports.c -- LZMA library DLL Entry point 2 | 2008-10-04 : Igor Pavlov : Public domain */ 3 | 4 | #include 5 | 6 | BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) 7 | { 8 | hInstance = hInstance; 9 | dwReason = dwReason; 10 | lpReserved = lpReserved; 11 | return TRUE; 12 | } 13 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/LzmaLib/makefile: -------------------------------------------------------------------------------- 1 | MY_STATIC_LINK=1 2 | SLIB = sLZMA.lib 3 | PROG = LZMA.dll 4 | SLIBPATH = $O\$(SLIB) 5 | 6 | DEF_FILE = LzmaLib.def 7 | CFLAGS = $(CFLAGS) \ 8 | 9 | LIB_OBJS = \ 10 | $O\LzmaLibExports.obj \ 11 | 12 | C_OBJS = \ 13 | $O\Alloc.obj \ 14 | $O\LzFind.obj \ 15 | $O\LzFindMt.obj \ 16 | $O\LzmaDec.obj \ 17 | $O\LzmaEnc.obj \ 18 | $O\LzmaLib.obj \ 19 | $O\Threads.obj \ 20 | 21 | OBJS = \ 22 | $(LIB_OBJS) \ 23 | $(C_OBJS) \ 24 | $O\resource.res 25 | 26 | !include "../../../CPP/Build.mak" 27 | 28 | $(SLIBPATH): $O $(OBJS) 29 | lib -out:$(SLIBPATH) $(OBJS) $(LIBS) 30 | 31 | $(LIB_OBJS): $(*B).c 32 | $(COMPL_O2) 33 | $(C_OBJS): ../../$(*B).c 34 | $(COMPL_O2) 35 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/LzmaLib/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../../CPP/7zip/MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("LZMA library", "LZMA") 4 | 5 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/SfxSetup/SfxSetup.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "SfxSetup"=.\SfxSetup.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/SfxSetup/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../../CPP/7zip/MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_APP("7z Setup SFX small", "7zS2.sfx") 4 | 5 | 1 ICON "setup.ico" 6 | 7 | -------------------------------------------------------------------------------- /src/codecs/7z/C/Util/SfxSetup/setup.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/C/Util/SfxSetup/setup.ico -------------------------------------------------------------------------------- /src/codecs/7z/C/XzEnc.h: -------------------------------------------------------------------------------- 1 | /* XzEnc.h -- Xz Encode 2 | 2009-04-15 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __XZ_ENC_H 5 | #define __XZ_ENC_H 6 | 7 | #include "Lzma2Enc.h" 8 | 9 | #include "Xz.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, 16 | const CLzma2EncProps *lzma2Props, Bool useSubblock, 17 | ICompressProgress *progress); 18 | 19 | SRes Xz_EncodeEmpty(ISeqOutStream *outStream); 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Aes.mak: -------------------------------------------------------------------------------- 1 | C_OBJS = $(C_OBJS) \ 2 | $O\Aes.obj 3 | 4 | !IF "$(CPU)" != "IA64" && "$(CPU)" != "MIPS" && "$(CPU)" != "ARM" 5 | ASM_OBJS = $(ASM_OBJS) \ 6 | $O\AesOpt.obj 7 | !ENDIF 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/7z.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "7z"=".\7z.dsp" - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/7zCompressionMode.cpp: -------------------------------------------------------------------------------- 1 | // CompressionMethod.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/7zHeader.cpp: -------------------------------------------------------------------------------- 1 | // 7zHeader.cpp 2 | 3 | #include "StdAfx.h" 4 | #include "7zHeader.h" 5 | 6 | namespace NArchive { 7 | namespace N7z { 8 | 9 | Byte kSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}; 10 | #ifdef _7Z_VOL 11 | Byte kFinishSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C + 1}; 12 | #endif 13 | 14 | }} 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/7zProperties.h: -------------------------------------------------------------------------------- 1 | // 7zProperties.h 2 | 3 | #ifndef __7Z_PROPERTIES_H 4 | #define __7Z_PROPERTIES_H 5 | 6 | #include "../../PropID.h" 7 | 8 | namespace NArchive { 9 | namespace N7z { 10 | 11 | enum 12 | { 13 | kpidPackedSize0 = kpidUserDefined, 14 | kpidPackedSize1, 15 | kpidPackedSize2, 16 | kpidPackedSize3, 17 | kpidPackedSize4 18 | }; 19 | 20 | }} 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/7zRegister.cpp: -------------------------------------------------------------------------------- 1 | // 7zRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "7zHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::N7z::CHandler; } 9 | #ifndef EXTRACT_ONLY 10 | static IOutArchive *CreateArcOut() { return new NArchive::N7z::CHandler; } 11 | #else 12 | #define CreateArcOut 0 13 | #endif 14 | 15 | static CArcInfo g_ArcInfo = 16 | { L"7z", L"7z", 0, 7, {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}, 6, false, CreateArc, CreateArcOut }; 17 | 18 | REGISTER_ARC(7z) 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/7z/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7z Plugin", "7z") 4 | 5 | 0 ICON "../Icons/7z.ico" 6 | 7 | STRINGTABLE 8 | BEGIN 9 | 100 "7z:0" 10 | END 11 | 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Archive.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | CreateObject PRIVATE 3 | GetHandlerProperty PRIVATE 4 | GetNumberOfFormats PRIVATE 5 | GetHandlerProperty2 PRIVATE 6 | CreateObject PRIVATE 7 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Archive2.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | CreateObject PRIVATE 3 | GetHandlerProperty PRIVATE 4 | GetNumberOfFormats PRIVATE 5 | GetHandlerProperty2 PRIVATE 6 | CreateObject PRIVATE 7 | GetNumberOfMethods PRIVATE 8 | GetMethodProperty PRIVATE 9 | SetLargePageMode PRIVATE 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Cab/CabHandler.h: -------------------------------------------------------------------------------- 1 | // CabHandler.h 2 | 3 | #ifndef __CAB_HANDLER_H 4 | #define __CAB_HANDLER_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IArchive.h" 8 | #include "CabIn.h" 9 | 10 | namespace NArchive { 11 | namespace NCab { 12 | 13 | class CHandler: 14 | public IInArchive, 15 | public CMyUnknownImp 16 | { 17 | public: 18 | MY_UNKNOWN_IMP1(IInArchive) 19 | 20 | INTERFACE_IInArchive(;) 21 | 22 | private: 23 | CMvDatabaseEx m_Database; 24 | }; 25 | 26 | }} 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Cab/CabHeader.cpp: -------------------------------------------------------------------------------- 1 | // CabHeader.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "CabHeader.h" 6 | 7 | namespace NArchive { 8 | namespace NCab { 9 | namespace NHeader { 10 | 11 | Byte kMarker[kMarkerSize] = {'M', 'S', 'C', 'F', 0, 0, 0, 0 }; 12 | 13 | // struct CSignatureInitializer { CSignatureInitializer() { kMarker[0]--; }; } g_SignatureInitializer; 14 | 15 | }}} 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Cab/CabRegister.cpp: -------------------------------------------------------------------------------- 1 | // CabRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "CabHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NCab::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Cab", L"cab", 0, 8, { 0x4D, 0x53, 0x43, 0x46 }, 4, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Cab) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Cab/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Chm/ChmHandler.h: -------------------------------------------------------------------------------- 1 | // ChmHandler.h 2 | 3 | #ifndef __ARCHIVE_CHM_HANDLER_H 4 | #define __ARCHIVE_CHM_HANDLER_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IArchive.h" 8 | #include "ChmIn.h" 9 | 10 | namespace NArchive { 11 | namespace NChm { 12 | 13 | class CHandler: 14 | public IInArchive, 15 | public CMyUnknownImp 16 | { 17 | public: 18 | MY_UNKNOWN_IMP1(IInArchive) 19 | 20 | INTERFACE_IInArchive(;) 21 | 22 | private: 23 | CFilesDatabase m_Database; 24 | CMyComPtr m_Stream; 25 | }; 26 | 27 | }} 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Chm/ChmHeader.cpp: -------------------------------------------------------------------------------- 1 | // Archive/Chm/Header.h 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "ChmHeader.h" 6 | 7 | namespace NArchive{ 8 | namespace NChm{ 9 | namespace NHeader{ 10 | 11 | UInt32 kItsfSignature = 0x46535449 + 1; 12 | UInt32 kItolSignature = 0x4C4F5449 + 1; 13 | static class CSignatureInitializer 14 | { 15 | public: 16 | CSignatureInitializer() 17 | { 18 | kItsfSignature--; 19 | kItolSignature--; 20 | } 21 | }g_SignatureInitializer; 22 | 23 | 24 | }}} 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Chm/ChmRegister.cpp: -------------------------------------------------------------------------------- 1 | // ChmRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "ChmHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NChm::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Chm", L"chm chi chq chw hxs hxi hxr hxq hxw lit", 0, 0xE9, { 'I', 'T', 'S', 'F' }, 4, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Chm) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Chm/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Com/ComHandler.h: -------------------------------------------------------------------------------- 1 | // ComHandler.h 2 | 3 | #ifndef __ARCHIVE_COM_HANDLER_H 4 | #define __ARCHIVE_COM_HANDLER_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IArchive.h" 8 | #include "ComIn.h" 9 | 10 | namespace NArchive { 11 | namespace NCom { 12 | 13 | class CHandler: 14 | public IInArchive, 15 | public IInArchiveGetStream, 16 | public CMyUnknownImp 17 | { 18 | CMyComPtr _stream; 19 | CDatabase _db; 20 | public: 21 | MY_UNKNOWN_IMP2(IInArchive, IInArchiveGetStream) 22 | INTERFACE_IInArchive(;) 23 | STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream); 24 | }; 25 | 26 | }} 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Com/ComRegister.cpp: -------------------------------------------------------------------------------- 1 | // ComRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "ComHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NCom::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Compound", L"msi msp doc xls ppt", 0, 0xE5, { 0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1 }, 8, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Com) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/CoderMixer.cpp: -------------------------------------------------------------------------------- 1 | // CoderMixer.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "CoderMixer.h" 6 | 7 | namespace NCoderMixer { 8 | 9 | void CCoderInfo::SetCoderInfo(const UInt64 *inSize, const UInt64 *outSize) 10 | { 11 | InSizeAssigned = (inSize != 0); 12 | if (InSizeAssigned) 13 | InSizeValue = *inSize; 14 | OutSizeAssigned = (outSize != 0); 15 | if (OutSizeAssigned) 16 | OutSizeValue = *outSize; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/CrossThreadProgress.cpp: -------------------------------------------------------------------------------- 1 | // CrossThreadProgress.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "CrossThreadProgress.h" 6 | 7 | STDMETHODIMP CCrossThreadProgress::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize) 8 | { 9 | InSize = inSize; 10 | OutSize = outSize; 11 | ProgressEvent.Set(); 12 | WaitEvent.Lock(); 13 | return Result; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/DummyOutStream.cpp: -------------------------------------------------------------------------------- 1 | // DummyOutStream.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "DummyOutStream.h" 6 | 7 | STDMETHODIMP CDummyOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | UInt32 realProcessedSize; 10 | HRESULT result; 11 | if(!_stream) 12 | { 13 | realProcessedSize = size; 14 | result = S_OK; 15 | } 16 | else 17 | result = _stream->Write(data, size, &realProcessedSize); 18 | _size += realProcessedSize; 19 | if(processedSize != NULL) 20 | *processedSize = realProcessedSize; 21 | return result; 22 | } 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/DummyOutStream.h: -------------------------------------------------------------------------------- 1 | // DummyOutStream.h 2 | 3 | #ifndef __DUMMYOUTSTREAM_H 4 | #define __DUMMYOUTSTREAM_H 5 | 6 | #include "../../IStream.h" 7 | #include "Common/MyCom.h" 8 | 9 | class CDummyOutStream: 10 | public ISequentialOutStream, 11 | public CMyUnknownImp 12 | { 13 | CMyComPtr _stream; 14 | UInt64 _size; 15 | public: 16 | void SetStream(ISequentialOutStream *outStream) { _stream = outStream; } 17 | void ReleaseStream() { _stream.Release(); } 18 | void Init() { _size = 0; } 19 | MY_UNKNOWN_IMP 20 | STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 21 | UInt64 GetSize() const { return _size; } 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/FindSignature.h: -------------------------------------------------------------------------------- 1 | // FindSignature.h 2 | 3 | #ifndef __FINDSIGNATURE_H 4 | #define __FINDSIGNATURE_H 5 | 6 | #include "../../IStream.h" 7 | 8 | HRESULT FindSignatureInStream(ISequentialInStream *stream, 9 | const Byte *signature, unsigned signatureSize, 10 | const UInt64 *limit, UInt64 &resPos); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/ItemNameUtils.h: -------------------------------------------------------------------------------- 1 | // Archive/Common/ItemNameUtils.h 2 | 3 | #ifndef __ARCHIVE_ITEMNAMEUTILS_H 4 | #define __ARCHIVE_ITEMNAMEUTILS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | namespace NArchive { 9 | namespace NItemName { 10 | 11 | UString MakeLegalName(const UString &name); 12 | UString GetOSName(const UString &name); 13 | UString GetOSName2(const UString &name); 14 | bool HasTailSlash(const AString &name, UINT codePage); 15 | 16 | #ifdef _WIN32 17 | inline UString WinNameToOSName(const UString &name) { return name; } 18 | #else 19 | UString WinNameToOSName(const UString &name); 20 | #endif 21 | 22 | }} 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp: -------------------------------------------------------------------------------- 1 | // OutStreamWithCRC.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "OutStreamWithCRC.h" 6 | 7 | STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | HRESULT result = S_OK; 10 | if (_stream) 11 | result = _stream->Write(data, size, &size); 12 | if (_calculate) 13 | _crc = CrcUpdate(_crc, data, size); 14 | _size += size; 15 | if (processedSize != NULL) 16 | *processedSize = size; 17 | return result; 18 | } 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/OutStreamWithSha1.cpp: -------------------------------------------------------------------------------- 1 | // OutStreamWithSha1.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "OutStreamWithSha1.h" 6 | 7 | STDMETHODIMP COutStreamWithSha1::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | HRESULT result = S_OK; 10 | if (_stream) 11 | result = _stream->Write(data, size, &size); 12 | if (_calculate) 13 | _sha.Update((const Byte *)data, size); 14 | _size += size; 15 | if (processedSize != NULL) 16 | *processedSize = size; 17 | return result; 18 | } 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Common/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Hfs/HfsHandler.h: -------------------------------------------------------------------------------- 1 | // HfsHandler.h 2 | 3 | #ifndef __ARCHIVE_HFS_HANDLER_H 4 | #define __ARCHIVE_HFS_HANDLER_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IArchive.h" 8 | #include "HfsIn.h" 9 | 10 | namespace NArchive { 11 | namespace NHfs { 12 | 13 | class CHandler: 14 | public IInArchive, 15 | public CMyUnknownImp 16 | { 17 | CMyComPtr _stream; 18 | CDatabase _db; 19 | public: 20 | MY_UNKNOWN_IMP1(IInArchive) 21 | INTERFACE_IInArchive(;) 22 | }; 23 | 24 | }} 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Hfs/HfsRegister.cpp: -------------------------------------------------------------------------------- 1 | // HfsRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "HfsHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NHfs::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"HFS", L"hfs", 0, 0xE3, { 'H', '+', 0, 4 }, 4, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Hfs) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/7z.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/7z.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/arj.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/arj.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/bz2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/bz2.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/cab.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/cab.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/cpio.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/cpio.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/deb.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/deb.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/dmg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/dmg.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/fat.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/fat.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/gz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/gz.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/hfs.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/hfs.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/iso.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/iso.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/lzh.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/lzh.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/lzma.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/lzma.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/ntfs.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/ntfs.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/rar.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/rar.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/rpm.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/rpm.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/split.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/split.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/squashfs.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/squashfs.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/tar.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/tar.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/vhd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/vhd.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/wim.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/wim.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/xar.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/xar.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/xz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/xz.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/z.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/z.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Icons/zip.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Icons/zip.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Iso/IsoHandler.h: -------------------------------------------------------------------------------- 1 | // IsoHandler.h 2 | 3 | #ifndef __ISO_HANDLER_H 4 | #define __ISO_HANDLER_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IArchive.h" 8 | 9 | #include "IsoIn.h" 10 | #include "IsoItem.h" 11 | 12 | namespace NArchive { 13 | namespace NIso { 14 | 15 | class CHandler: 16 | public IInArchive, 17 | public IInArchiveGetStream, 18 | public CMyUnknownImp 19 | { 20 | CMyComPtr _stream; 21 | CInArchive _archive; 22 | public: 23 | MY_UNKNOWN_IMP2(IInArchive, IInArchiveGetStream) 24 | INTERFACE_IInArchive(;) 25 | STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream); 26 | }; 27 | 28 | }} 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Iso/IsoHeader.cpp: -------------------------------------------------------------------------------- 1 | // Archive/Iso/Header.h 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "IsoHeader.h" 6 | 7 | namespace NArchive { 8 | namespace NIso { 9 | 10 | const char *kElToritoSpec = "EL TORITO SPECIFICATION\0\0\0\0\0\0\0\0\0"; 11 | 12 | const wchar_t *kMediaTypes[5] = 13 | { 14 | L"NoEmulation", 15 | L"1.2M", 16 | L"1.44M", 17 | L"2.88M", 18 | L"HardDisk" 19 | }; 20 | 21 | }} 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Iso/IsoIn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Archive/Iso/IsoIn.h -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Iso/IsoRegister.cpp: -------------------------------------------------------------------------------- 1 | // IsoRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "IsoHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NIso::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Iso", L"iso img", 0, 0xE7, { 'C', 'D', '0', '0', '1', 0x1 }, 7, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Iso) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Iso/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Nsis/NsisRegister.cpp: -------------------------------------------------------------------------------- 1 | // NsisRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "NsisHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NNsis::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Nsis", L"", 0, 0x9, NSIS_SIGNATURE, NArchive::NNsis::kSignatureSize, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Nsis) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Nsis/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Rar/RarHeader.cpp: -------------------------------------------------------------------------------- 1 | // Archive/Rar/Headers.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "RarHeader.h" 6 | 7 | namespace NArchive{ 8 | namespace NRar{ 9 | namespace NHeader{ 10 | 11 | Byte kMarker[kMarkerSize] = {0x52 + 1, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00}; 12 | 13 | class CMarkerInitializer 14 | { 15 | public: 16 | CMarkerInitializer() { kMarker[0]--; }; 17 | }; 18 | 19 | static CMarkerInitializer markerInitializer; 20 | 21 | }}} 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Rar/RarRegister.cpp: -------------------------------------------------------------------------------- 1 | // RarRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "RarHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NRar::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Rar", L"rar r00", 0, 3, {0x52 , 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00}, 7, false, CreateArc, 0, }; 12 | 13 | REGISTER_ARC(Rar) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Rar/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Rar/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../Common/MyWindows.h" 7 | #include "../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Tar/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Tar/TarIn.h: -------------------------------------------------------------------------------- 1 | // TarIn.h 2 | 3 | #ifndef __ARCHIVE_TAR_IN_H 4 | #define __ARCHIVE_TAR_IN_H 5 | 6 | #include "../../IStream.h" 7 | 8 | #include "TarItem.h" 9 | 10 | namespace NArchive { 11 | namespace NTar { 12 | 13 | HRESULT ReadItem(ISequentialInStream *stream, bool &filled, CItemEx &itemInfo, AString &error); 14 | 15 | }} 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Tar/TarOut.h: -------------------------------------------------------------------------------- 1 | // Archive/TarOut.h 2 | 3 | #ifndef __ARCHIVE_TAR_OUT_H 4 | #define __ARCHIVE_TAR_OUT_H 5 | 6 | #include "TarItem.h" 7 | 8 | #include "Common/MyCom.h" 9 | #include "../../IStream.h" 10 | 11 | namespace NArchive { 12 | namespace NTar { 13 | 14 | class COutArchive 15 | { 16 | CMyComPtr m_Stream; 17 | HRESULT WriteBytes(const void *buffer, UInt32 size); 18 | public: 19 | void Create(ISequentialOutStream *outStream); 20 | HRESULT WriteHeaderReal(const CItem &item); 21 | HRESULT WriteHeader(const CItem &item); 22 | HRESULT FillDataResidual(UInt64 dataSize); 23 | HRESULT WriteFinishHeader(); 24 | }; 25 | 26 | }} 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Tar/TarRegister.cpp: -------------------------------------------------------------------------------- 1 | // TarRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "TarHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NTar::CHandler; } 9 | #ifndef EXTRACT_ONLY 10 | static IOutArchive *CreateArcOut() { return new NArchive::NTar::CHandler; } 11 | #else 12 | #define CreateArcOut 0 13 | #endif 14 | 15 | static CArcInfo g_ArcInfo = 16 | { L"tar", L"tar", 0, 0xEE, { 'u', 's', 't', 'a', 'r' }, 5, false, CreateArc, CreateArcOut }; 17 | 18 | REGISTER_ARC(Tar) 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Udf/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Udf/UdfRegister.cpp: -------------------------------------------------------------------------------- 1 | // UdfRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "UdfHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NUdf::CHandler; } 9 | 10 | static CArcInfo g_ArcInfo = 11 | { L"Udf", L"iso img", 0, 0xE0, { 0, 'N', 'S', 'R', '0' }, 5, false, CreateArc, 0 }; 12 | 13 | REGISTER_ARC(Udf) 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Wim/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Wim/WimRegister.cpp: -------------------------------------------------------------------------------- 1 | // WimRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "WimHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NWim::CHandler; } 9 | #ifndef EXTRACT_ONLY 10 | static IOutArchive *CreateArcOut() { return new NArchive::NWim::COutHandler; } 11 | #else 12 | #define CreateArcOut 0 13 | #endif 14 | 15 | static CArcInfo g_ArcInfo = 16 | { L"wim", L"wim swm", 0, 0xE6, { 'M', 'S', 'W', 'I', 'M', 0, 0, 0 }, 8, false, CreateArc, CreateArcOut }; 17 | 18 | REGISTER_ARC(Wim) 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Zip/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/Zip/ZipRegister.cpp: -------------------------------------------------------------------------------- 1 | // ZipRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "ZipHandler.h" 8 | static IInArchive *CreateArc() { return new NArchive::NZip::CHandler; } 9 | #ifndef EXTRACT_ONLY 10 | static IOutArchive *CreateArcOut() { return new NArchive::NZip::CHandler; } 11 | #else 12 | #define CreateArcOut 0 13 | #endif 14 | 15 | static CArcInfo g_ArcInfo = 16 | { L"zip", L"zip jar xpi odt ods docx xlsx", 0, 1, { 0x50, 0x4B, 0x03, 0x04 }, 4, false, CreateArc, CreateArcOut }; 17 | 18 | REGISTER_ARC(Zip) 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Archive/makefile: -------------------------------------------------------------------------------- 1 | DIRS = \ 2 | 7z\~ \ 3 | Arj\~ \ 4 | BZip2\~ \ 5 | Cab\~ \ 6 | Chm\~ \ 7 | Cpio\~ \ 8 | Deb\~ \ 9 | GZip\~ \ 10 | Iso\~ \ 11 | Lzh\~ \ 12 | Nsis\~ \ 13 | Rar\~ \ 14 | RPM\~ \ 15 | Split\~ \ 16 | Tar\~ \ 17 | Z\~ \ 18 | Zip\~ \ 19 | 20 | all: $(DIRS) 21 | 22 | $(DIRS): 23 | !include "../SubBuild.mak" 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Asm.mak: -------------------------------------------------------------------------------- 1 | !IF "$(CPU)" == "ARM" 2 | $(ASM_OBJS): ../../../../Asm/Arm/$(*B).asm 3 | $(COMPL_ASM) 4 | !ELSEIF "$(CPU)" != "IA64" && "$(CPU)" != "MIPS" 5 | $(ASM_OBJS): ../../../../Asm/x86/$(*B).asm 6 | $(COMPL_ASM) 7 | !ENDIF 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone/Alone.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Alone"=.\Alone.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone/afxres.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_APP("7-Zip Standalone Console", "7za") 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone7z/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone7z/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Alone7z/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_APP("7-Zip Standalone Console", "7zr") 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Fm/FM.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "FM"=.\FM.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Fm/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Fm/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #define _WIN32_WINNT 0x0400 7 | 8 | // it's for Windows NT supporting (MENUITEMINFOW) 9 | #define WINVER 0x0400 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | // #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 20 | 21 | #include "Common/NewHandler.h" 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Fm/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../UI/FileManager/resource.rc" 2 | #include "../../UI/GUI/resource2.rc" 3 | 4 | STRINGTABLE 5 | BEGIN 6 | 100 "7z zip bz2 bzip2 tbz2 tbz rar arj z taz lzh lha cab iso 001 rpm deb cpio tar gz gzip tgz tpz4 wim swm lzma dmg hfs xar vhd fat ntfs xz" 7 | END 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7z/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7z/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7z/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7z Standalone Plugin", "7za") 4 | 5 | 101 ICON "../../Archive/Icons/7z.ico" 6 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtract/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtract/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtract/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7z Standalone Extracting Plugin", "7zxa") 4 | 5 | 101 ICON "../../Archive/Icons/7z.ico" 6 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zExtractR/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7z Standalone Extracting Plugin", "7zxr") 4 | 5 | 101 ICON "../../Archive/Icons/7z.ico" 6 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zF/Format7z.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "7z"=.\Format7z.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zF/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zF/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zR/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zR/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/Format7zR/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7z Standalone Plugin", "7zr") 4 | 5 | 101 ICON "../../Archive/Icons/7z.ico" 6 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "LzmaCon"=.\LzmaCon.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/LzmaCon/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXCon/7z.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Bundles/SFXCon/7z.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXCon/SFXCon.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "SFXCon"=.\SFXCon.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXCon/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXCon/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXCon/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_APP("7z Console SFX", "7z.sfx") 4 | 5 | 101 ICON "7z.ico" -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h: -------------------------------------------------------------------------------- 1 | // ExtractEngine.h 2 | 3 | #ifndef __EXTRACTENGINE_H 4 | #define __EXTRACTENGINE_H 5 | 6 | #include "../../UI/Common/LoadCodecs.h" 7 | 8 | HRESULT ExtractArchive(CCodecs *codecs, const UString &fileName, const UString &destFolder, 9 | bool showProgress, bool &isCorrupt, UString &errorMessage); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "SFXSetup"=.\SFXSetup.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | #include 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/resource.h: -------------------------------------------------------------------------------- 1 | #define IDI_ICON 1 2 | 3 | #define IDS_EXTRACTION_ERROR_TITLE 7 4 | #define IDS_EXTRACTION_ERROR_MESSAGE 8 5 | #define IDS_CANNOT_CREATE_FOLDER 9 6 | #define IDS_PROGRESS_EXTRACTING 69 7 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | #include "resource.h" 3 | 4 | MY_VERSION_INFO_APP("7z Setup SFX", "7zS.sfx") 5 | 6 | IDI_ICON ICON "setup.ico" 7 | 8 | STRINGTABLE 9 | BEGIN 10 | IDS_EXTRACTION_ERROR_TITLE "Extraction Failed" 11 | IDS_EXTRACTION_ERROR_MESSAGE "File is corrupt" 12 | IDS_CANNOT_CREATE_FOLDER "Cannot create folder '{0}'" 13 | IDS_PROGRESS_EXTRACTING "Extracting" 14 | END 15 | 16 | #include "../../UI/FileManager/ProgressDialog.rc" 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXSetup/setup.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Bundles/SFXSetup/setup.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXWin/7z.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/Bundles/SFXWin/7z.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXWin/SFXWin.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "SFXWin"=.\SFXWin.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXWin/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXWin/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #include 10 | #include 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/SFXWin/resource.h: -------------------------------------------------------------------------------- 1 | #define IDI_ICON 1 2 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Bundles/makefile: -------------------------------------------------------------------------------- 1 | DIRS = \ 2 | Alone\~ \ 3 | Alone7z\~ \ 4 | Fm\~ \ 5 | Format7z\~ \ 6 | Format7zF\~ \ 7 | Format7zR\~ \ 8 | Format7zExtract\~ \ 9 | Format7zExtractR\~ \ 10 | LzmaCon\~ \ 11 | SFXCon\~ \ 12 | SFXSetup\~ \ 13 | SFXWin\~ \ 14 | 15 | all: $(DIRS) 16 | 17 | $(DIRS): 18 | !include "../SubBuild.mak" 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/FilePathAutoRename.h: -------------------------------------------------------------------------------- 1 | // Util/FilePathAutoRename.h 2 | 3 | #ifndef __FILEPATHAUTORENAME_H 4 | #define __FILEPATHAUTORENAME_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | bool AutoRenamePath(UString &fullProcessedPath); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/MethodId.cpp: -------------------------------------------------------------------------------- 1 | // MethodId.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "MethodId.h" 6 | #include "../../Common/MyString.h" 7 | 8 | static inline wchar_t GetHex(Byte value) 9 | { 10 | return (wchar_t)((value < 10) ? ('0' + value) : ('A' + (value - 10))); 11 | } 12 | 13 | UString ConvertMethodIdToString(UInt64 id) 14 | { 15 | wchar_t s[32]; 16 | int len = 32; 17 | s[--len] = 0; 18 | do 19 | { 20 | s[--len] = GetHex((Byte)id & 0xF); 21 | id >>= 4; 22 | s[--len] = GetHex((Byte)id & 0xF); 23 | id >>= 4; 24 | } 25 | while (id != 0); 26 | return s + len; 27 | } 28 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/MethodId.h: -------------------------------------------------------------------------------- 1 | // MethodId.h 2 | 3 | #ifndef __7Z_METHOD_ID_H 4 | #define __7Z_METHOD_ID_H 5 | 6 | #include "../../Common/Types.h" 7 | 8 | typedef UInt64 CMethodId; 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/OffsetStream.h: -------------------------------------------------------------------------------- 1 | // OffsetStream.h 2 | 3 | #ifndef __OFFSETSTREAM_H 4 | #define __OFFSETSTREAM_H 5 | 6 | #include "Common/MyCom.h" 7 | #include "../IStream.h" 8 | 9 | class COffsetOutStream: 10 | public IOutStream, 11 | public CMyUnknownImp 12 | { 13 | UInt64 _offset; 14 | CMyComPtr _stream; 15 | public: 16 | HRESULT Init(IOutStream *stream, UInt64 offset); 17 | 18 | MY_UNKNOWN_IMP 19 | 20 | STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 21 | STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 22 | STDMETHOD(SetSize)(UInt64 newSize); 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../Common/MyWindows.h" 7 | #include "../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/StreamUtils.h: -------------------------------------------------------------------------------- 1 | // StreamUtils.h 2 | 3 | #ifndef __STREAMUTILS_H 4 | #define __STREAMUTILS_H 5 | 6 | #include "../IStream.h" 7 | 8 | HRESULT ReadStream(ISequentialInStream *stream, void *data, size_t *size); 9 | HRESULT ReadStream_FALSE(ISequentialInStream *stream, void *data, size_t size); 10 | HRESULT ReadStream_FAIL(ISequentialInStream *stream, void *data, size_t size); 11 | HRESULT WriteStream(ISequentialOutStream *stream, const void *data, size_t size); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Common/VirtThread.h: -------------------------------------------------------------------------------- 1 | // VirtThread.h 2 | 3 | #ifndef __VIRTTHREAD_H 4 | #define __VIRTTHREAD_H 5 | 6 | #include "../../Windows/Synchronization.h" 7 | #include "../../Windows/Thread.h" 8 | 9 | struct CVirtThread 10 | { 11 | NWindows::NSynchronization::CAutoResetEvent StartEvent; 12 | NWindows::NSynchronization::CAutoResetEvent FinishedEvent; 13 | NWindows::CThread Thread; 14 | bool ExitEvent; 15 | 16 | ~CVirtThread(); 17 | WRes Create(); 18 | void Start(); 19 | void WaitFinish() { FinishedEvent.Lock(); } 20 | virtual void Execute() = 0; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BZip2Crc.cpp: -------------------------------------------------------------------------------- 1 | // BZip2Crc.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BZip2Crc.h" 6 | 7 | UInt32 CBZip2Crc::Table[256]; 8 | 9 | static const UInt32 kBZip2CrcPoly = 0x04c11db7; /* AUTODIN II, Ethernet, & FDDI */ 10 | 11 | void CBZip2Crc::InitTable() 12 | { 13 | for (UInt32 i = 0; i < 256; i++) 14 | { 15 | UInt32 r = (i << 24); 16 | for (int j = 8; j > 0; j--) 17 | r = (r & 0x80000000) ? ((r << 1) ^ kBZip2CrcPoly) : (r << 1); 18 | Table[i] = r; 19 | } 20 | } 21 | 22 | class CBZip2CrcTableInit 23 | { 24 | public: 25 | CBZip2CrcTableInit() { CBZip2Crc::InitTable(); } 26 | } g_BZip2CrcTableInit; 27 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BZip2Register.cpp: -------------------------------------------------------------------------------- 1 | // BZip2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "BZip2Decoder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NBZip2::CDecoder); } 10 | #if !defined(EXTRACT_ONLY) && !defined(BZIP2_EXTRACT_ONLY) 11 | #include "BZip2Encoder.h" 12 | static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NBZip2::CEncoder); } 13 | #else 14 | #define CreateCodecOut 0 15 | #endif 16 | 17 | static CCodecInfo g_CodecInfo = 18 | { CreateCodec, CreateCodecOut, 0x040202, L"BZip2", 1, false }; 19 | 20 | REGISTER_CODEC(BZip2) 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/Bcj2Register.cpp: -------------------------------------------------------------------------------- 1 | // Bcj2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Bcj2Coder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressCoder2 *)(new NCompress::NBcj2::CDecoder()); } 10 | #ifndef EXTRACT_ONLY 11 | static void *CreateCodecOut() { return (void *)(ICompressCoder2 *)(new NCompress::NBcj2::CEncoder()); } 12 | #else 13 | #define CreateCodecOut 0 14 | #endif 15 | 16 | static CCodecInfo g_CodecInfo = 17 | { CreateCodec, CreateCodecOut, 0x0303011B, L"BCJ2", 4, false }; 18 | 19 | REGISTER_CODEC(BCJ2) 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BcjCoder.cpp: -------------------------------------------------------------------------------- 1 | // BcjCoder.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BcjCoder.h" 6 | 7 | UInt32 CBCJ_x86_Encoder::SubFilter(Byte *data, UInt32 size) 8 | { 9 | return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 1); 10 | } 11 | 12 | UInt32 CBCJ_x86_Decoder::SubFilter(Byte *data, UInt32 size) 13 | { 14 | return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 0); 15 | } 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BcjCoder.h: -------------------------------------------------------------------------------- 1 | // BcjCoder.h 2 | 3 | #ifndef __COMPRESS_BCJ_CODER_H 4 | #define __COMPRESS_BCJ_CODER_H 5 | 6 | #include "../../../C/Bra.h" 7 | 8 | #include "BranchCoder.h" 9 | 10 | struct CBranch86 11 | { 12 | UInt32 _prevMask; 13 | void x86Init() { x86_Convert_Init(_prevMask); } 14 | }; 15 | 16 | MyClassB(BCJ_x86, 0x01, 3, CBranch86 , 17 | virtual void SubInit() { x86Init(); }) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BcjRegister.cpp: -------------------------------------------------------------------------------- 1 | // BcjRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "BcjCoder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressFilter *)(new CBCJ_x86_Decoder()); } 10 | #ifndef EXTRACT_ONLY 11 | static void *CreateCodecOut() { return (void *)(ICompressFilter *)(new CBCJ_x86_Encoder()); } 12 | #else 13 | #define CreateCodecOut 0 14 | #endif 15 | 16 | static CCodecInfo g_CodecInfo = 17 | { CreateCodec, CreateCodecOut, 0x03030103, L"BCJ", 1, true }; 18 | 19 | REGISTER_CODEC(BCJ) 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BitlDecoder.cpp: -------------------------------------------------------------------------------- 1 | // BitlDecoder.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BitlDecoder.h" 6 | 7 | namespace NBitl { 8 | 9 | Byte kInvertTable[256]; 10 | 11 | struct CInverterTableInitializer 12 | { 13 | CInverterTableInitializer() 14 | { 15 | for (int i = 0; i < 256; i++) 16 | { 17 | int x = ((i & 0x55) << 1) | ((i & 0xAA) >> 1); 18 | x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2); 19 | kInvertTable[i] = (Byte)(((x & 0x0F) << 4) | ((x & 0xF0) >> 4)); 20 | } 21 | } 22 | } g_InverterTableInitializer; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BranchCoder.cpp: -------------------------------------------------------------------------------- 1 | // BranchCoder.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BranchCoder.h" 6 | 7 | STDMETHODIMP CBranchConverter::Init() 8 | { 9 | _bufferPos = 0; 10 | SubInit(); 11 | return S_OK; 12 | } 13 | 14 | STDMETHODIMP_(UInt32) CBranchConverter::Filter(Byte *data, UInt32 size) 15 | { 16 | UInt32 processedSize = SubFilter(data, size); 17 | _bufferPos += processedSize; 18 | return processedSize; 19 | } 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/BranchMisc.h: -------------------------------------------------------------------------------- 1 | // BranchMisc.h 2 | 3 | #ifndef __COMPRESS_BRANCH_MISC_H 4 | #define __COMPRESS_BRANCH_MISC_H 5 | 6 | #include "BranchCoder.h" 7 | 8 | MyClassA(BC_ARM, 0x05, 1) 9 | MyClassA(BC_ARMT, 0x07, 1) 10 | MyClassA(BC_PPC, 0x02, 5) 11 | MyClassA(BC_SPARC, 0x08, 5) 12 | MyClassA(BC_IA64, 0x04, 1) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/Codec.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | CreateObject PRIVATE 3 | GetNumberOfMethods PRIVATE 4 | GetMethodProperty PRIVATE 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/CopyRegister.cpp: -------------------------------------------------------------------------------- 1 | // CopyRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "CopyCoder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::CCopyCoder); } 10 | 11 | static CCodecInfo g_CodecInfo = 12 | { CreateCodec, CreateCodec, 0x00, L"Copy", 1, false }; 13 | 14 | REGISTER_CODEC(Copy) 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/LzOutWindow.cpp: -------------------------------------------------------------------------------- 1 | // LzOutWindow.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "LzOutWindow.h" 6 | 7 | void CLzOutWindow::Init(bool solid) 8 | { 9 | if (!solid) 10 | COutBuffer::Init(); 11 | #ifdef _NO_EXCEPTIONS 12 | ErrorCode = S_OK; 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/Lzma2Register.cpp: -------------------------------------------------------------------------------- 1 | // Lzma2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Lzma2Decoder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLzma2::CDecoder); } 10 | #ifndef EXTRACT_ONLY 11 | #include "Lzma2Encoder.h" 12 | static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLzma2::CEncoder); } 13 | #else 14 | #define CreateCodecOut 0 15 | #endif 16 | 17 | static CCodecInfo g_CodecInfo = 18 | { CreateCodec, CreateCodecOut, 0x21, L"LZMA2", 1, false }; 19 | 20 | REGISTER_CODEC(LZMA2) 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/LzmaRegister.cpp: -------------------------------------------------------------------------------- 1 | // LzmaRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "LzmaDecoder.h" 8 | 9 | static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CDecoder); } 10 | #ifndef EXTRACT_ONLY 11 | #include "LzmaEncoder.h" 12 | static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CEncoder); } 13 | #else 14 | #define CreateCodecOut 0 15 | #endif 16 | 17 | static CCodecInfo g_CodecInfo = 18 | { CreateCodec, CreateCodecOut, 0x030101, L"LZMA", 1, false }; 19 | 20 | REGISTER_CODEC(LZMA) 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/PpmdRegister.cpp: -------------------------------------------------------------------------------- 1 | // PpmdRegister.cpp 2 | // 2009-05-30 : Igor Pavlov : Public domain 3 | 4 | #include "StdAfx.h" 5 | 6 | #include "../Common/RegisterCodec.h" 7 | 8 | #include "PpmdDecoder.h" 9 | 10 | static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NPpmd::CDecoder); } 11 | #ifndef EXTRACT_ONLY 12 | #include "PpmdEncoder.h" 13 | static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NPpmd::CEncoder); } 14 | #else 15 | #define CreateCodecOut 0 16 | #endif 17 | 18 | static CCodecInfo g_CodecInfo = 19 | { CreateCodec, CreateCodecOut, 0x030401, L"PPMD", 1, false }; 20 | 21 | REGISTER_CODEC(PPMD) 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/RarCodecsRegister.cpp: -------------------------------------------------------------------------------- 1 | // RarCodecsRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Rar1Decoder.h" 8 | #include "Rar2Decoder.h" 9 | #include "Rar3Decoder.h" 10 | 11 | #define CREATE_CODEC(x) static void *CreateCodec ## x() { return (void *)(ICompressCoder *)(new NCompress::NRar ## x::CDecoder); } 12 | 13 | CREATE_CODEC(1) 14 | CREATE_CODEC(2) 15 | CREATE_CODEC(3) 16 | 17 | #define RAR_CODEC(x, name) { CreateCodec ## x, 0, 0x040300 + x, L"Rar" name, 1, false } 18 | 19 | static CCodecInfo g_CodecsInfo[] = 20 | { 21 | RAR_CODEC(1, L"1"), 22 | RAR_CODEC(2, L"2"), 23 | RAR_CODEC(3, L"3"), 24 | }; 25 | 26 | REGISTER_CODECS(Rar) 27 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Compress/makefile: -------------------------------------------------------------------------------- 1 | DIRS = \ 2 | LZMA_Alone\~ \ 3 | 4 | all: $(DIRS) 5 | 6 | $(DIRS): 7 | !include "../SubBuild.mak" 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crc.mak: -------------------------------------------------------------------------------- 1 | C_OBJS = $(C_OBJS) \ 2 | $O\7zCrc.obj 3 | !IF "$(CPU)" == "IA64" || "$(CPU)" == "MIPS" 4 | C_OBJS = $(C_OBJS) \ 5 | !ELSE 6 | ASM_OBJS = $(ASM_OBJS) \ 7 | !ENDIF 8 | $O\7zCrcOpt.obj 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crypto/7zAesRegister.cpp: -------------------------------------------------------------------------------- 1 | // 7zAesRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | #include "7zAes.h" 7 | 8 | static void *CreateCodec() { return (void *)(ICompressFilter *)(new NCrypto::NSevenZ::CDecoder()); } 9 | #ifndef EXTRACT_ONLY 10 | static void *CreateCodecOut() { return (void *)(ICompressFilter *)(new NCrypto::NSevenZ::CEncoder()); } 11 | #else 12 | #define CreateCodecOut 0 13 | #endif 14 | 15 | static CCodecInfo g_CodecInfo = 16 | { CreateCodec, CreateCodecOut, 0x06F10701, L"7zAES", 1, true }; 17 | 18 | REGISTER_CODEC(7zAES) 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crypto/Codec.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | CreateObject PRIVATE 3 | GetNumberOfMethods PRIVATE 4 | GetMethodProperty PRIVATE 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crypto/Pbkdf2HmacSha1.h: -------------------------------------------------------------------------------- 1 | // Pbkdf2HmacSha1.h 2 | // Password-Based Key Derivation Function (RFC 2898, PKCS #5) based on HMAC-SHA-1 3 | 4 | #ifndef __CRYPTO_PBKDF2_HMAC_SHA1_H 5 | #define __CRYPTO_PBKDF2_HMAC_SHA1_H 6 | 7 | #include 8 | #include "../../Common/Types.h" 9 | 10 | namespace NCrypto { 11 | namespace NSha1 { 12 | 13 | void Pbkdf2Hmac(const Byte *pwd, size_t pwdSize, const Byte *salt, size_t saltSize, 14 | UInt32 numIterations, Byte *key, size_t keySize); 15 | 16 | void Pbkdf2Hmac32(const Byte *pwd, size_t pwdSize, const UInt32 *salt, size_t saltSize, 17 | UInt32 numIterations, UInt32 *key, size_t keySize); 18 | 19 | }} 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crypto/RandGen.h: -------------------------------------------------------------------------------- 1 | // RandGen.h 2 | 3 | #ifndef __CRYPTO_RAND_GEN_H 4 | #define __CRYPTO_RAND_GEN_H 5 | 6 | #include "Sha1.h" 7 | 8 | class CRandomGenerator 9 | { 10 | Byte _buff[NCrypto::NSha1::kDigestSize]; 11 | bool _needInit; 12 | 13 | void Init(); 14 | public: 15 | CRandomGenerator(): _needInit(true) {}; 16 | void Generate(Byte *data, unsigned size); 17 | }; 18 | 19 | extern CRandomGenerator g_RandomGenerator; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/Crypto/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../Common/MyWindows.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/IDecl.h: -------------------------------------------------------------------------------- 1 | // IDecl.h 2 | 3 | #ifndef __IDECL_H 4 | #define __IDECL_H 5 | 6 | #include "../Common/MyUnknown.h" 7 | 8 | #define DECL_INTERFACE_SUB(i, base, groupId, subId) \ 9 | DEFINE_GUID(IID_ ## i, \ 10 | 0x23170F69, 0x40C1, 0x278A, 0, 0, 0, (groupId), 0, (subId), 0, 0); \ 11 | struct i: public base 12 | 13 | #define DECL_INTERFACE(i, groupId, subId) DECL_INTERFACE_SUB(i, IUnknown, groupId, subId) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/IPassword.h: -------------------------------------------------------------------------------- 1 | // IPassword.h 2 | 3 | #ifndef __IPASSWORD_H 4 | #define __IPASSWORD_H 5 | 6 | #include "../Common/MyUnknown.h" 7 | #include "../Common/Types.h" 8 | 9 | #include "IDecl.h" 10 | 11 | #define PASSWORD_INTERFACE(i, x) DECL_INTERFACE(i, 5, x) 12 | 13 | PASSWORD_INTERFACE(ICryptoGetTextPassword, 0x10) 14 | { 15 | STDMETHOD(CryptoGetTextPassword)(BSTR *password) PURE; 16 | }; 17 | 18 | PASSWORD_INTERFACE(ICryptoGetTextPassword2, 0x11) 19 | { 20 | STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password) PURE; 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/MyVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VER_MAJOR 9 2 | #define MY_VER_MINOR 20 3 | #define MY_VER_BUILD 0 4 | #define MY_VERSION "9.20" 5 | #define MY_7ZIP_VERSION "7-Zip 9.20" 6 | #define MY_DATE "2010-11-18" 7 | #define MY_COPYRIGHT "Copyright (c) 1999-2010 Igor Pavlov" 8 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " " MY_DATE 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/SubBuild.mak: -------------------------------------------------------------------------------- 1 | cd $(@D) 2 | $(MAKE) -nologo $(TARGETS) 3 | cd .. 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Agent/UpdateCallbackAgent.h: -------------------------------------------------------------------------------- 1 | // UpdateCallbackAgent.h 2 | 3 | #ifndef __UPDATECALLBACKAGENT_H 4 | #define __UPDATECALLBACKAGENT_H 5 | 6 | #include "../Common/UpdateCallback.h" 7 | #include "IFolderArchive.h" 8 | 9 | class CUpdateCallbackAgent: public IUpdateCallbackUI 10 | { 11 | INTERFACE_IUpdateCallbackUI(;) 12 | CMyComPtr _cryptoGetTextPassword; 13 | CMyComPtr Callback; 14 | CMyComPtr _compressProgress; 15 | public: 16 | void SetCallback(IFolderArchiveUpdateCallback *callback); 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Client7z/Client7z.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Client7z"=.\Client7z.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Client7z/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Client7z/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include 7 | #include 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/ArchiveName.h: -------------------------------------------------------------------------------- 1 | // ArchiveName.h 2 | 3 | #ifndef __ARCHIVENAME_H 4 | #define __ARCHIVENAME_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | UString CreateArchiveName(const UString &srcName, bool fromPrev, bool keepName); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/DefaultName.h: -------------------------------------------------------------------------------- 1 | // DefaultName.h 2 | 3 | #ifndef __DEFAULTNAME_H 4 | #define __DEFAULTNAME_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | UString GetDefaultName2(const UString &fileName, 9 | const UString &extension, const UString &addSubExtension); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/ExtractMode.h: -------------------------------------------------------------------------------- 1 | // ExtractMode.h 2 | 3 | #ifndef __EXTRACT_MODE_H 4 | #define __EXTRACT_MODE_H 5 | 6 | namespace NExtract { 7 | 8 | namespace NPathMode 9 | { 10 | enum EEnum 11 | { 12 | kFullPathnames, 13 | kCurrentPathnames, 14 | kNoPathnames 15 | }; 16 | } 17 | 18 | namespace NOverwriteMode 19 | { 20 | enum EEnum 21 | { 22 | kAskBefore, 23 | kWithoutPrompt, 24 | kSkipExisting, 25 | kAutoRename, 26 | kAutoRenameExisting 27 | }; 28 | } 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/ExtractingFilePath.h: -------------------------------------------------------------------------------- 1 | // ExtractingFilePath.h 2 | 3 | #ifndef __EXTRACTING_FILE_PATH_H 4 | #define __EXTRACTING_FILE_PATH_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | UString MakePathNameFromParts(const UStringVector &parts); 9 | void MakeCorrectPath(UStringVector &pathParts); 10 | UString GetCorrectFsPath(const UString &path); 11 | UString GetCorrectFullFsPath(const UString &path); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/PropIDUtils.h: -------------------------------------------------------------------------------- 1 | // PropIDUtils.h 2 | 3 | #ifndef __PROPID_UTILS_H 4 | #define __PROPID_UTILS_H 5 | 6 | #include "Common/MyString.h" 7 | #include "Common/Types.h" 8 | 9 | void ConvertUInt32ToHex(UInt32 value, wchar_t *s); 10 | UString ConvertPropertyToString(const PROPVARIANT &propVariant, PROPID propID, bool full = true); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/Property.h: -------------------------------------------------------------------------------- 1 | // Property.h 2 | 3 | #ifndef __PROPERTY_H 4 | #define __PROPERTY_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | struct CProperty 9 | { 10 | UString Name; 11 | UString Value; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/SetProperties.h: -------------------------------------------------------------------------------- 1 | // SetProperties.h 2 | 3 | #ifndef __SETPROPERTIES_H 4 | #define __SETPROPERTIES_H 5 | 6 | #include "Property.h" 7 | 8 | HRESULT SetProperties(IUnknown *unknown, const CObjectVector &properties); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/SortUtils.cpp: -------------------------------------------------------------------------------- 1 | // SortUtils.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "SortUtils.h" 6 | #include "Common/Wildcard.h" 7 | 8 | static int CompareStrings(const int *p1, const int *p2, void *param) 9 | { 10 | const UStringVector &strings = *(const UStringVector *)param; 11 | return CompareFileNames(strings[*p1], strings[*p2]); 12 | } 13 | 14 | void SortFileNames(const UStringVector &strings, CIntVector &indices) 15 | { 16 | indices.Clear(); 17 | int numItems = strings.Size(); 18 | indices.Reserve(numItems); 19 | for(int i = 0; i < numItems; i++) 20 | indices.Add(i); 21 | indices.Sort(CompareStrings, (void *)&strings); 22 | } 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/SortUtils.h: -------------------------------------------------------------------------------- 1 | // SortUtils.h 2 | 3 | #ifndef __SORTUTLS_H 4 | #define __SORTUTLS_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | void SortFileNames(const UStringVector &strings, CIntVector &indices); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/TempFiles.cpp: -------------------------------------------------------------------------------- 1 | // TempFiles.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "TempFiles.h" 6 | 7 | #include "Windows/FileDir.h" 8 | #include "Windows/FileIO.h" 9 | 10 | using namespace NWindows; 11 | using namespace NFile; 12 | 13 | void CTempFiles::Clear() 14 | { 15 | while(!Paths.IsEmpty()) 16 | { 17 | NDirectory::DeleteFileAlways((LPCWSTR)Paths.Back()); 18 | Paths.DeleteBack(); 19 | } 20 | } 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/TempFiles.h: -------------------------------------------------------------------------------- 1 | // TempFiles.h 2 | 3 | #ifndef __TEMPFILES_H 4 | #define __TEMPFILES_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | class CTempFiles 9 | { 10 | void Clear(); 11 | public: 12 | UStringVector Paths; 13 | ~CTempFiles() { Clear(); } 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/UpdatePair.h: -------------------------------------------------------------------------------- 1 | // UpdatePair.h 2 | 3 | #ifndef __UPDATE_PAIR_H 4 | #define __UPDATE_PAIR_H 5 | 6 | #include "DirItem.h" 7 | #include "UpdateAction.h" 8 | 9 | #include "../../Archive/IArchive.h" 10 | 11 | struct CUpdatePair 12 | { 13 | NUpdateArchive::NPairState::EEnum State; 14 | int ArcIndex; 15 | int DirIndex; 16 | CUpdatePair(): ArcIndex(-1), DirIndex(-1) {} 17 | }; 18 | 19 | void GetUpdatePairInfoList( 20 | const CDirItems &dirItems, 21 | const CObjectVector &arcItems, 22 | NFileTimeType::EEnum fileTimeType, 23 | CRecordVector &updatePairs); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Common/WorkDir.h: -------------------------------------------------------------------------------- 1 | // WorkDir.h 2 | 3 | #ifndef __WORKDIR_H 4 | #define __WORKDIR_H 5 | 6 | #include "ZipRegistry.h" 7 | 8 | UString GetWorkDir(const NWorkDir::CInfo &workDirInfo, const UString &path); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/BenchCon.h: -------------------------------------------------------------------------------- 1 | // BenchCon.h 2 | 3 | #ifndef __BENCH_CON_H 4 | #define __BENCH_CON_H 5 | 6 | #include 7 | 8 | #include "../../Common/CreateCoder.h" 9 | 10 | HRESULT LzmaBenchCon( 11 | DECL_EXTERNAL_CODECS_LOC_VARS 12 | FILE *f, UInt32 numIterations, UInt32 numThreads, UInt32 dictionary); 13 | 14 | HRESULT CrcBenchCon(FILE *f, UInt32 numIterations, UInt32 numThreads, UInt32 dictionary); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/Console.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Console"=".\Console.dsp" - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/ConsoleClose.h: -------------------------------------------------------------------------------- 1 | // ConsoleCloseUtils.h 2 | 3 | #ifndef __CONSOLECLOSEUTILS_H 4 | #define __CONSOLECLOSEUTILS_H 5 | 6 | namespace NConsoleClose { 7 | 8 | bool TestBreakSignal(); 9 | 10 | class CCtrlHandlerSetter 11 | { 12 | public: 13 | CCtrlHandlerSetter(); 14 | virtual ~CCtrlHandlerSetter(); 15 | }; 16 | 17 | class CCtrlBreakException 18 | {}; 19 | 20 | void CheckCtrlBreak(); 21 | 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/List.h: -------------------------------------------------------------------------------- 1 | // List.h 2 | 3 | #ifndef __LIST_H 4 | #define __LIST_H 5 | 6 | #include "Common/Wildcard.h" 7 | #include "../Common/LoadCodecs.h" 8 | 9 | HRESULT ListArchives(CCodecs *codecs, const CIntVector &formatIndices, 10 | bool stdInMode, 11 | UStringVector &archivePaths, UStringVector &archivePathsFull, 12 | const NWildcard::CCensorNode &wildcardCensor, 13 | bool enableHeaders, bool techMode, 14 | #ifndef _NO_CRYPTO 15 | bool &passwordEnabled, UString &password, 16 | #endif 17 | UInt64 &errors); 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/OpenCallbackConsole.h: -------------------------------------------------------------------------------- 1 | // OpenCallbackConsole.h 2 | 3 | #ifndef __OPENCALLBACKCONSOLE_H 4 | #define __OPENCALLBACKCONSOLE_H 5 | 6 | #include "Common/StdOutStream.h" 7 | #include "../Common/ArchiveOpenCallback.h" 8 | 9 | class COpenCallbackConsole: public IOpenCallbackUI 10 | { 11 | public: 12 | INTERFACE_IOpenCallbackUI(;) 13 | 14 | CStdOutStream *OutStream; 15 | 16 | #ifndef _NO_CRYPTO 17 | bool PasswordIsDefined; 18 | bool PasswordWasAsked; 19 | UString Password; 20 | COpenCallbackConsole(): PasswordIsDefined(false), PasswordWasAsked(false) {} 21 | #endif 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../../Common/MyWindows.h" 7 | #include "../../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/UserInputUtils.h: -------------------------------------------------------------------------------- 1 | // UserInputUtils.h 2 | 3 | #ifndef __USERINPUTUTILS_H 4 | #define __USERINPUTUTILS_H 5 | 6 | #include "Common/StdOutStream.h" 7 | 8 | namespace NUserAnswerMode { 9 | 10 | enum EEnum 11 | { 12 | kYes, 13 | kNo, 14 | kYesAll, 15 | kNoAll, 16 | kAutoRenameAll, 17 | kQuit 18 | }; 19 | } 20 | 21 | NUserAnswerMode::EEnum ScanUserYesNoAllQuit(CStdOutStream *outStream); 22 | UString GetPassword(CStdOutStream *outStream); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Console/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_APP("7-Zip Console", "7z") 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/7-zip.dll.manifest: -------------------------------------------------------------------------------- 1 | 7-Zip Extension. 2 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/Explorer.def: -------------------------------------------------------------------------------- 1 | ; 7-zip.def 2 | 3 | LIBRARY "7-zip" 4 | 5 | EXPORTS 6 | DllCanUnloadNow PRIVATE 7 | DllGetClassObject PRIVATE 8 | DllRegisterServer PRIVATE 9 | DllUnregisterServer PRIVATE 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/Explorer.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Explorer"=".\Explorer.dsp" - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/OptionsDialog.h: -------------------------------------------------------------------------------- 1 | // OptionsDialog.h 2 | 3 | #ifndef __SEVENZIP_OPTIONSDIALOG_H 4 | #define __SEVENZIP_OPTIONSDIALOG_H 5 | 6 | #include "../FileManager/PluginInterface.h" 7 | #include "Common/MyCom.h" 8 | 9 | // {23170F69-40C1-278D-1000-000100020000} 10 | DEFINE_GUID(CLSID_CSevenZipOptions, 11 | 0x23170F69, 0x40C1, 0x278D, 0x10, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00); 12 | 13 | class CSevenZipOptions: 14 | public IPluginOptions, 15 | public CMyUnknownImp 16 | { 17 | public: 18 | MY_UNKNOWN_IMP 19 | STDMETHOD(PluginOptions)(HWND hWnd, IPluginOptionsCallback *callback); 20 | STDMETHOD(GetFileExtensions)(BSTR *extensions); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/RegistryContextMenu.h: -------------------------------------------------------------------------------- 1 | // RegistryContextMenu.h 2 | 3 | #ifndef __REGISTRY_CONTEXT_MENU_H 4 | #define __REGISTRY_CONTEXT_MENU_H 5 | 6 | namespace NZipRootRegistry { 7 | 8 | #ifndef UNDER_CE 9 | bool CheckContextMenuHandler(); 10 | void AddContextMenuHandler(); 11 | void DeleteContextMenuHandler(); 12 | #endif 13 | 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "stdafx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #define _WIN32_WINNT 0x0400 7 | // it's hack for Windows NT supporting 8 | #define WINVER 0x0400 9 | 10 | // #define _WIN32_IE 0x0500 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include "Common/NewHandler.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Explorer/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | #include "resource2.rc" 3 | 4 | MY_VERSION_INFO_DLL("7-Zip Shell Extension", "7-zip") 5 | 6 | #ifndef UNDER_CE 7 | 1 24 MOVEABLE PURE "7-zip.dll.manifest" 8 | #endif 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/Far.def: -------------------------------------------------------------------------------- 1 | ; 7-ZipFar.def : Declares the module parameters for the DLL. 2 | 3 | LIBRARY "7-ZipFar" 4 | 5 | EXPORTS 6 | SetStartupInfo 7 | OpenPlugin 8 | OpenFilePlugin 9 | ClosePlugin 10 | GetFindData 11 | FreeFindData 12 | SetDirectory 13 | GetPluginInfo 14 | Configure 15 | GetOpenPluginInfo 16 | GetFiles 17 | PutFiles 18 | DeleteFiles 19 | ProcessKey 20 | 21 | ;SetStartupInfoW 22 | ;OpenPluginW 23 | ;OpenFilePluginW 24 | ;ClosePluginW 25 | ;GetFindDataW 26 | ;FreeFindDataW 27 | ;SetDirectoryW 28 | ;GetPluginInfoW 29 | ;ConfigureW 30 | ;GetOpenPluginInfoW 31 | ;GetFilesW 32 | ;PutFilesW 33 | ;DeleteFilesW 34 | ;ProcessKeyW 35 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/Far.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Far"=.\Far.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/OverwriteDialog.h: -------------------------------------------------------------------------------- 1 | // OverwriteDialog.h 2 | 3 | #ifndef OVERWRITEDIALOG_H 4 | #define OVERWRITEDIALOG_H 5 | 6 | #include "Common/MyString.h" 7 | #include "Common/Types.h" 8 | 9 | namespace NOverwriteDialog { 10 | 11 | struct CFileInfo 12 | { 13 | bool SizeIsDefined; 14 | bool TimeIsDefined; 15 | UInt64 Size; 16 | FILETIME Time; 17 | UString Name; 18 | }; 19 | 20 | namespace NResult 21 | { 22 | enum EEnum 23 | { 24 | kYes, 25 | kYesToAll, 26 | kNo, 27 | kNoToAll, 28 | kAutoRename, 29 | kCancel 30 | }; 31 | } 32 | 33 | NResult::EEnum Execute(const CFileInfo &oldFileInfo, const CFileInfo &newFileInfo); 34 | 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #define _CRT_SECURE_NO_DEPRECATE 7 | #include 8 | #include 9 | 10 | #include "Common/NewHandler.h" 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/Far/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | 3 | MY_VERSION_INFO_DLL("7-Zip Plugin for FAR Manager", "7-ZipFar") 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/7zFM.exe.manifest: -------------------------------------------------------------------------------- 1 | 7-Zip File manager. 2 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/7zipLogo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/7zipLogo.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/AboutDialog.h: -------------------------------------------------------------------------------- 1 | // AboutDialog.h 2 | 3 | #ifndef __ABOUTDIALOG_H 4 | #define __ABOUTDIALOG_H 5 | 6 | #include "AboutDialogRes.h" 7 | #include "Windows/Control/Dialog.h" 8 | 9 | class CAboutDialog: public NWindows::NControl::CModalDialog 10 | { 11 | public: 12 | virtual bool OnInit(); 13 | virtual void OnHelp(); 14 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); 15 | INT_PTR Create(HWND wndParent = 0) { return CModalDialog::Create(IDD_ABOUT, wndParent); } 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/AboutDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_ABOUT 507 2 | #define IDI_LOGO 138 3 | #define IDC_ABOUT_STATIC_REGISTER_INFO 1010 4 | #define IDC_ABOUT_BUTTON_HOMEPAGE 1020 5 | #define IDC_ABOUT_BUTTON_SUPPORT 1021 6 | #define IDC_ABOUT_BUTTON_REGISTER 1022 7 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Add.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Add.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Add2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Add2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/BrowseDialog.rc: -------------------------------------------------------------------------------- 1 | #include "BrowseDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 180 5 | #define yc 160 6 | 7 | IDD_DIALOG_BROWSE MY_RESIZE_DIALOG 8 | CAPTION "7-Zip: Browse" 9 | { 10 | LTEXT "", IDC_BROWSE_PATH, m + 20, m + 3, xc - 20, 8 11 | CONTROL "List1", IDC_BROWSE_LIST, "SysListView32", 12 | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 13 | m, m + 16, xc, yc - bys - m - 16 14 | PUSHBUTTON "OK", IDOK, bx2, by, bxs, bys 15 | PUSHBUTTON "Cancel", IDCANCEL, bx1, by, bxs, bys 16 | PUSHBUTTON "..", IDC_BROWSE_PARENT, m, m, 16, 14 17 | } 18 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/BrowseDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_BROWSE 509 2 | #define IDC_BROWSE_LIST 1000 3 | #define IDC_BROWSE_PATH 1001 4 | #define IDC_BROWSE_PARENT 1002 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ClassDefs.cpp: -------------------------------------------------------------------------------- 1 | // ClassDefs.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "Common/MyInitGuid.h" 6 | 7 | #include "../Agent/Agent.h" 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ComboDialog.rc: -------------------------------------------------------------------------------- 1 | #include "ComboDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 240 5 | #define yc 64 6 | 7 | IDD_DIALOG_COMBO MY_RESIZE_DIALOG 8 | CAPTION "Combo" 9 | { 10 | LTEXT "", IDC_COMBO_STATIC, m, m, xc, 8 11 | COMBOBOX IDC_COMBO_COMBO, m, 20, xc, 65, MY_COMBO_WITH_EDIT 12 | OK_CANCEL 13 | } 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ComboDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_COMBO 505 2 | 3 | #define IDC_COMBO_STATIC 1000 4 | #define IDC_COMBO_COMBO 1001 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Copy.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Copy.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Copy2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Copy2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/CopyDialog.rc: -------------------------------------------------------------------------------- 1 | #include "CopyDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 320 5 | #define yc 144 6 | 7 | #define y 40 8 | 9 | IDD_DIALOG_COPY MY_RESIZE_DIALOG 10 | CAPTION "Copy" 11 | { 12 | LTEXT "", IDC_COPY_STATIC, m, m, xc, 8 13 | COMBOBOX IDC_COPY_COMBO, m, 20, xc - bxsDots - m, 65, MY_COMBO_WITH_EDIT 14 | PUSHBUTTON "...", IDC_COPY_SET_PATH, xs - m - bxsDots, 18, bxsDots, bys, WS_GROUP 15 | LTEXT "", IDC_COPY_INFO, m, y, xc, by - y - 1, SS_NOPREFIX | SS_LEFTNOWORDWRAP 16 | OK_CANCEL 17 | } 18 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/CopyDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_COPY 506 2 | 3 | #define IDC_COPY_STATIC 1000 4 | #define IDC_COPY_COMBO 1001 5 | #define IDC_COPY_SET_PATH 1002 6 | #define IDC_COPY_INFO 1003 7 | 8 | #define IDS_SET_FOLDER 210 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Delete.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Delete.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Delete2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Delete2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/DialogSize.h: -------------------------------------------------------------------------------- 1 | // DialogSize.h 2 | 3 | #ifndef __DIALOG_SIZE_H 4 | #define __DIALOG_SIZE_H 5 | 6 | #include "Windows/Control/Dialog.h" 7 | 8 | #ifdef UNDER_CE 9 | #define BIG_DIALOG_SIZE(x, y) bool isBig = NWindows::NControl::IsDialogSizeOK(x, y); 10 | #define SIZED_DIALOG(big) (isBig ? big : big ## _2) 11 | #else 12 | #define BIG_DIALOG_SIZE(x, y) 13 | #define SIZED_DIALOG(big) big 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/EditPage.h: -------------------------------------------------------------------------------- 1 | // EditPage.h 2 | 3 | #ifndef __EDIT_PAGE_H 4 | #define __EDIT_PAGE_H 5 | 6 | #include "Windows/Control/PropertyPage.h" 7 | #include "Windows/Control/Edit.h" 8 | 9 | class CEditPage: public NWindows::NControl::CPropertyPage 10 | { 11 | NWindows::NControl::CEdit _editor; 12 | NWindows::NControl::CEdit _diff; 13 | public: 14 | virtual bool OnInit(); 15 | virtual void OnNotifyHelp(); 16 | virtual bool OnCommand(int code, int itemID, LPARAM param); 17 | virtual LONG OnApply(); 18 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/EditPage.rc: -------------------------------------------------------------------------------- 1 | #include "EditPageRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 200 5 | #define yc 80 6 | 7 | IDD_EDIT MY_PAGE 8 | #include "EditPage2.rc" 9 | 10 | #ifdef UNDER_CE 11 | 12 | #undef xc 13 | 14 | #define xc SMALL_PAGE_SIZE_X 15 | 16 | IDD_EDIT_2 MY_PAGE 17 | #include "EditPage2.rc" 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/EditPage2.rc: -------------------------------------------------------------------------------- 1 | CAPTION "Editor" 2 | { 3 | LTEXT "&Editor:", IDC_EDIT_STATIC_EDITOR, m, m, xc, 8 4 | EDITTEXT IDC_EDIT_EDIT_EDITOR, m, 20, xc - m - bxsDots, 14, ES_AUTOHSCROLL 5 | PUSHBUTTON "...", IDC_EDIT_BUTTON_EDITOR, xs - m - bxsDots, 19, bxsDots, bys 6 | LTEXT "&Diff:", IDC_EDIT_STATIC_DIFF, m, 40, xc, 8 7 | EDITTEXT IDC_EDIT_EDIT_DIFF, m, 52, xc - m - bxsDots, 14, ES_AUTOHSCROLL 8 | PUSHBUTTON "...", IDC_EDIT_BUTTON_DIFF, xs - m - bxsDots, 51, bxsDots, bys 9 | } 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/EditPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_EDIT 542 2 | #define IDD_EDIT_2 642 3 | 4 | #define IDC_EDIT_STATIC_EDITOR 1000 5 | #define IDC_EDIT_EDIT_EDITOR 1001 6 | #define IDC_EDIT_BUTTON_EDITOR 1002 7 | 8 | #define IDC_EDIT_STATIC_DIFF 1010 9 | #define IDC_EDIT_EDIT_DIFF 1011 10 | #define IDC_EDIT_BUTTON_DIFF 1012 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/EnumFormatEtc.h: -------------------------------------------------------------------------------- 1 | // EnumFormatEtc.h 2 | 3 | #ifndef __ENUMFORMATETC_H 4 | #define __ENUMFORMATETC_H 5 | 6 | #include 7 | 8 | HRESULT CreateEnumFormatEtc(UINT numFormats, const FORMATETC *formats, IEnumFORMATETC **enumFormat); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Extract.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Extract.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Extract2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Extract2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FM.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "FM"=.\FM.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FM.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/FM.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FileFolderPluginOpen.h: -------------------------------------------------------------------------------- 1 | // FileFolderPluginOpen.h 2 | 3 | #ifndef __FILE_FOLDER_PLUGIN_OPEN_H 4 | #define __FILE_FOLDER_PLUGIN_OPEN_H 5 | 6 | HRESULT OpenFileFolderPlugin(IInStream *inStream, const UString &path, const UString &arcFormat, 7 | HMODULE *module, IFolderFolder **resultFolder, HWND parentWindow, bool &encrypted, UString &password); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FoldersPage.rc: -------------------------------------------------------------------------------- 1 | #include "FoldersPageRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 196 5 | #define yc 100 6 | 7 | IDD_FOLDERS MY_PAGE 8 | #include "FoldersPage2.rc" 9 | 10 | #ifdef UNDER_CE 11 | 12 | #undef xc 13 | #define xc SMALL_PAGE_SIZE_X 14 | 15 | IDD_FOLDERS_2 MY_PAGE 16 | #include "FoldersPage2.rc" 17 | 18 | #endif 19 | 20 | STRINGTABLE 21 | BEGIN 22 | IDS_FOLDERS_SET_WORK_PATH_TITLE "Specify a location for temporary archive files." 23 | END 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FoldersPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_FOLDERS 571 2 | #define IDD_FOLDERS_2 671 3 | 4 | #define IDS_FOLDERS_SET_WORK_PATH_TITLE 877 5 | 6 | #define IDC_FOLDERS_STATIC_WORKING_FOLDER 1001 7 | 8 | #define IDC_FOLDERS_WORK_RADIO_SYSTEM 1011 9 | #define IDC_FOLDERS_WORK_RADIO_CURRENT 1012 10 | #define IDC_FOLDERS_WORK_RADIO_SPECIFIED 1013 11 | #define IDC_FOLDERS_WORK_EDIT_PATH 1014 12 | #define IDC_FOLDERS_WORK_BUTTON_PATH 1015 13 | #define IDC_FOLDERS_WORK_CHECK_FOR_REMOVABLE 1017 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/FormatUtils.h: -------------------------------------------------------------------------------- 1 | // FormatUtils.h 2 | 3 | #ifndef __FORMATUTILS_H 4 | #define __FORMATUTILS_H 5 | 6 | #include "Common/Types.h" 7 | #include "Common/MyString.h" 8 | 9 | UString NumberToString(UInt64 number); 10 | 11 | UString MyFormatNew(const UString &format, const UString &argument); 12 | UString MyFormatNew(UINT resourceID, 13 | #ifdef LANG 14 | UInt32 langID, 15 | #endif 16 | const UString &argument); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/HelpUtils.cpp: -------------------------------------------------------------------------------- 1 | // HelpUtils.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include 6 | 7 | #include "Common/StringConvert.h" 8 | #include "HelpUtils.h" 9 | #include "ProgramLocation.h" 10 | 11 | static LPCWSTR kHelpFileName = L"7-zip.chm::/"; 12 | 13 | #ifdef UNDER_CE 14 | void ShowHelpWindow(HWND, LPCWSTR) 15 | { 16 | } 17 | #else 18 | void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile) 19 | { 20 | UString path; 21 | if (!::GetProgramFolderPath(path)) 22 | return; 23 | path += kHelpFileName; 24 | path += topicFile; 25 | HtmlHelp(hwnd, GetSystemString(path), HH_DISPLAY_TOPIC, NULL); 26 | } 27 | #endif 28 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/HelpUtils.h: -------------------------------------------------------------------------------- 1 | // HelpUtils.h 2 | 3 | #ifndef __HELPUTILS_H 4 | #define __HELPUTILS_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Info.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Info.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Info2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Info2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/LangPage.h: -------------------------------------------------------------------------------- 1 | // LangPage.h 2 | 3 | #ifndef __LANG_PAGE_H 4 | #define __LANG_PAGE_H 5 | 6 | #include "Windows/Control/PropertyPage.h" 7 | #include "Windows/Control/ComboBox.h" 8 | 9 | class CLangPage: public NWindows::NControl::CPropertyPage 10 | { 11 | NWindows::NControl::CComboBox _langCombo; 12 | UStringVector _paths; 13 | public: 14 | bool LangWasChanged; 15 | CLangPage() { LangWasChanged = false; } 16 | virtual bool OnInit(); 17 | virtual void OnNotifyHelp(); 18 | virtual bool OnCommand(int code, int itemID, LPARAM param); 19 | virtual LONG OnApply(); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/LangPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_LANG 544 2 | #define IDD_LANG_2 644 3 | 4 | #define IDS_LANG_ENGLISH 995 5 | #define IDS_LANG_NATIVE 996 6 | 7 | #define IDC_LANG_STATIC_LANG 1000 8 | #define IDC_LANG_COMBO_LANG 1001 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ListViewDialog.rc: -------------------------------------------------------------------------------- 1 | #include "ListViewDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 320 5 | #define yc 240 6 | 7 | IDD_DIALOG_LISTVIEW MY_RESIZE_DIALOG 8 | CAPTION "ListView" 9 | { 10 | CONTROL "List1", IDC_LISTVIEW_LIST, "SysListView32", LVS_REPORT | LVS_SHOWSELALWAYS | 11 | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP, 12 | m, m, xc, yc - bys - m 13 | OK_CANCEL 14 | } 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ListViewDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_LISTVIEW 508 2 | #define IDC_LISTVIEW_LIST 1000 3 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MenuPage.rc: -------------------------------------------------------------------------------- 1 | #include "MenuPageRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 196 5 | #define yc 174 6 | 7 | IDD_MENU MY_PAGE 8 | #include "MenuPage2.rc" 9 | 10 | #ifdef UNDER_CE 11 | 12 | #undef m 13 | #undef xc 14 | #undef yc 15 | 16 | #define m 4 17 | #define xc (SMALL_PAGE_SIZE_X + 8) 18 | 19 | #define yc 112 20 | 21 | IDD_MENU_2 MY_PAGE 22 | #include "MenuPage2.rc" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MenuPage2.rc: -------------------------------------------------------------------------------- 1 | #define y 40 2 | 3 | CAPTION "7-Zip" 4 | BEGIN 5 | CONTROL "Integrate 7-Zip to shell context menu", IDC_SYSTEM_INTEGRATE_TO_CONTEXT_MENU, 6 | MY_CHECKBOX, m, m, xc, 10 7 | CONTROL "Cascaded context menu", IDC_SYSTEM_CASCADED_MENU, 8 | MY_CHECKBOX, m, m + 14, xc, 10 9 | LTEXT "Context menu items:", IDC_SYSTEM_STATIC_CONTEXT_MENU_ITEMS, 10 | m, m + 28, xc, 8 11 | CONTROL "List", IDC_SYSTEM_OPTIONS_LIST, "SysListView32", 12 | LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP, 13 | m, m + y, xc, yc - y 14 | END 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MenuPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_MENU 570 2 | #define IDD_MENU_2 670 3 | 4 | #define IDC_SYSTEM_INTEGRATE_TO_CONTEXT_MENU 1010 5 | #define IDC_SYSTEM_CASCADED_MENU 1011 6 | #define IDC_SYSTEM_STATIC_CONTEXT_MENU_ITEMS 1020 7 | #define IDC_SYSTEM_OPTIONS_LIST 1022 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MessagesDialog.rc: -------------------------------------------------------------------------------- 1 | #include "MessagesDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 440 5 | #define yc 160 6 | 7 | IDD_DIALOG_MESSAGES MY_RESIZE_DIALOG 8 | CAPTION "7-Zip: Diagnostic messages" 9 | { 10 | DEFPUSHBUTTON "&Close", IDOK, bx, by, bxs, bys 11 | CONTROL "List1", IDC_MESSAGE_LIST, "SysListView32", 12 | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP, 13 | m, m, xc, yc - bys - m 14 | } 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MessagesDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDS_MESSAGES_DIALOG_MESSAGE_COLUMN 503 2 | #define IDD_DIALOG_MESSAGES 503 3 | #define IDC_MESSAGE_LIST 1000 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Move.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Move.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Move2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Move2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/MyLoadMenu.h: -------------------------------------------------------------------------------- 1 | // MyLoadMenu.h 2 | 3 | #ifndef __MY_LOAD_MENU_H 4 | #define __MY_LOAD_MENU_H 5 | 6 | void OnMenuActivating(HWND hWnd, HMENU hMenu, int position); 7 | // void OnMenuUnActivating(HWND hWnd, HMENU hMenu, int id); 8 | // void OnMenuUnActivating(HWND hWnd); 9 | 10 | bool OnMenuCommand(HWND hWnd, int id); 11 | void MyLoadMenu(); 12 | void LoadFileMenu(HMENU hMenu, int startPos, bool programMenu, 13 | bool isFsFolder, int numItems, bool allAreFiles); 14 | bool ExecuteFileCommand(int id); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PasswordDialog.h: -------------------------------------------------------------------------------- 1 | // PasswordDialog.h 2 | 3 | #ifndef __PASSWORDDIALOG_H 4 | #define __PASSWORDDIALOG_H 5 | 6 | #include "Windows/Control/Dialog.h" 7 | #include "Windows/Control/Edit.h" 8 | #include "PasswordDialogRes.h" 9 | 10 | class CPasswordDialog: public NWindows::NControl::CModalDialog 11 | { 12 | NWindows::NControl::CEdit _passwordControl; 13 | virtual void OnOK(); 14 | virtual bool OnInit(); 15 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); 16 | public: 17 | UString Password; 18 | INT_PTR Create(HWND parentWindow = 0) { return CModalDialog::Create(IDD_DIALOG_PASSWORD, parentWindow); } 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PasswordDialog.rc: -------------------------------------------------------------------------------- 1 | #include "PasswordDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 140 5 | #define yc 72 6 | 7 | IDD_DIALOG_PASSWORD MY_DIALOG 8 | CAPTION "Enter password" 9 | BEGIN 10 | LTEXT "&Enter password:", IDC_STATIC_PASSWORD_HEADER, m, m, xc, 8 11 | EDITTEXT IDC_EDIT_PASSWORD, m, 20, xc, 14, ES_PASSWORD | ES_AUTOHSCROLL 12 | CONTROL "&Show password", IDC_CHECK_PASSWORD_SHOW, MY_CHECKBOX, m, 42, xc, 10 13 | OK_CANCEL 14 | END 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PasswordDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_PASSWORD 501 2 | #define IDC_STATIC_PASSWORD_HEADER 1000 3 | #define IDC_EDIT_PASSWORD 1001 4 | #define IDC_CHECK_PASSWORD_SHOW 1002 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PluginsPage.rc: -------------------------------------------------------------------------------- 1 | #include "PluginsPageRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 96 5 | #define yc 80 6 | 7 | IDD_PLUGINS MY_PAGE 8 | CAPTION "Plugins" 9 | BEGIN 10 | LTEXT "&Plugins:", IDC_PLUGINS_STATIC_PLUGINS, m, m, xc, 8 11 | CONTROL "List1", IDC_PLUGINS_LIST, "SysListView32", 12 | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP, 13 | m, 20, xc, 40 14 | PUSHBUTTON "Options...", IDC_PLUGINS_BUTTON_OPTIONS, m, by, bxs, bys 15 | END 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PluginsPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_PLUGINS 541 2 | #define IDC_PLUGINS_STATIC_PLUGINS 1000 3 | #define IDC_PLUGINS_LIST 1001 4 | #define IDC_PLUGINS_BUTTON_OPTIONS 1002 5 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ProgramLocation.cpp: -------------------------------------------------------------------------------- 1 | // ProgramLocation.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../../C/Types.h" 6 | 7 | #include "ProgramLocation.h" 8 | 9 | #include "Windows/DLL.h" 10 | 11 | using namespace NWindows; 12 | 13 | extern HINSTANCE g_hInstance; 14 | 15 | bool GetProgramFolderPath(UString &folder) 16 | { 17 | if (!NDLL::MyGetModuleFileName(g_hInstance, folder)) 18 | return false; 19 | int pos = folder.ReverseFind(WCHAR_PATH_SEPARATOR); 20 | if (pos < 0) 21 | return false; 22 | folder = folder.Left(pos + 1); 23 | return true; 24 | } 25 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ProgramLocation.h: -------------------------------------------------------------------------------- 1 | // ProgramLocation.h 2 | 3 | #ifndef __PROGRAM_LOCATION_H 4 | #define __PROGRAM_LOCATION_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | bool GetProgramFolderPath(UString &folder); // normalized 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ProgressDialog.rc: -------------------------------------------------------------------------------- 1 | #include "ProgressDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 172 5 | #define yc 44 6 | 7 | IDD_DIALOG_PROGRESS MY_DIALOG 8 | CAPTION "Progress" 9 | BEGIN 10 | PUSHBUTTON "Cancel", IDCANCEL, bx, by, bxs, bys 11 | CONTROL "Progress1", IDC_PROGRESS1, "msctls_progress32", PBS_SMOOTH | WS_BORDER, m, m, xc, 14 12 | END 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/ProgressDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_PROGRESS 500 2 | 3 | #define IDC_PROGRESS1 1000 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/PropertyName.h: -------------------------------------------------------------------------------- 1 | // PropertyName.h 2 | 3 | #ifndef __PROPERTYNAME_H 4 | #define __PROPERTYNAME_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | UString GetNameOfProperty(PROPID propID, const wchar_t *name); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SettingsPage.h: -------------------------------------------------------------------------------- 1 | // SettingsPage.h 2 | 3 | #ifndef __SETTINGSPAGE_H 4 | #define __SETTINGSPAGE_H 5 | 6 | #include "Windows/Control/PropertyPage.h" 7 | #include "Windows/Control/Edit.h" 8 | 9 | class CSettingsPage: public NWindows::NControl::CPropertyPage 10 | { 11 | // void EnableSubItems(); 12 | bool OnButtonClicked(int buttonID, HWND buttonHWND); 13 | public: 14 | virtual bool OnInit(); 15 | virtual void OnNotifyHelp(); 16 | virtual LONG OnApply(); 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SettingsPage.rc: -------------------------------------------------------------------------------- 1 | #include "SettingsPageRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 200 5 | #define yc 120 6 | 7 | IDD_SETTINGS MY_PAGE 8 | #include "SettingsPage2.rc" 9 | 10 | 11 | #ifdef UNDER_CE 12 | 13 | #undef m 14 | #undef xc 15 | 16 | #define m 4 17 | #define xc (SMALL_PAGE_SIZE_X + 8) 18 | 19 | IDD_SETTINGS_2 MY_PAGE 20 | #include "SettingsPage2.rc" 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SettingsPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_SETTINGS 543 2 | #define IDD_SETTINGS_2 643 3 | 4 | #define IDC_SETTINGS_SHOW_DOTS 1000 5 | #define IDC_SETTINGS_SHOW_REAL_FILE_ICONS 1001 6 | 7 | #define IDC_SETTINGS_SHOW_SYSTEM_MENU 1010 8 | #define IDC_SETTINGS_FULL_ROW 1011 9 | #define IDC_SETTINGS_SHOW_GRID 1013 10 | #define IDC_SETTINGS_SINGLE_CLICK 1014 11 | #define IDC_SETTINGS_UNDERLINE 1015 12 | #define IDC_SETTINGS_ALTERNATIVE_SELECTION 1016 13 | #define IDC_SETTINGS_LARGE_PAGES 1017 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SplitDialog.rc: -------------------------------------------------------------------------------- 1 | #include "SplitDialogRes.h" 2 | #include "../../GuiCommon.rc" 3 | 4 | #define xc 288 5 | #define yc 96 6 | 7 | IDD_DIALOG_SPLIT MY_RESIZE_DIALOG 8 | CAPTION "Split File" 9 | BEGIN 10 | LTEXT "&Split to:", IDC_STATIC_SPLIT_PATH, m, m, xc, 8 11 | COMBOBOX IDC_COMBO_SPLIT_PATH, m, 20, xc - bxsDots - m, 64, MY_COMBO_WITH_EDIT 12 | PUSHBUTTON "...", IDC_BUTTON_SPLIT_PATH, xs - m - bxsDots, 18, bxsDots, bys, WS_GROUP 13 | LTEXT "Split to &volumes, bytes:", IDC_STATIC_SPLIT_VOLUME, m, 44, xc, 8 14 | COMBOBOX IDC_COMBO_SPLIT_VOLUME, m, 56, 96, 52, MY_COMBO_WITH_EDIT 15 | OK_CANCEL 16 | END 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SplitDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_SPLIT 504 2 | #define IDC_STATIC_SPLIT_PATH 1000 3 | #define IDC_COMBO_SPLIT_PATH 1001 4 | #define IDC_BUTTON_SPLIT_PATH 1002 5 | #define IDC_STATIC_SPLIT_VOLUME 1010 6 | #define IDC_COMBO_SPLIT_VOLUME 1011 7 | 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SplitUtils.h: -------------------------------------------------------------------------------- 1 | // SplitUtils.h 2 | 3 | #ifndef __SPLITUTILS_H 4 | #define __SPLITUTILS_H 5 | 6 | #include "Common/MyString.h" 7 | #include "Common/Types.h" 8 | #include "Windows/Control/ComboBox.h" 9 | 10 | bool ParseVolumeSizes(const UString &s, CRecordVector &values); 11 | void AddVolumeItems(NWindows::NControl::CComboBox &volumeCombo); 12 | 13 | UInt64 GetNumberOfVolumes(UInt64 size, CRecordVector &volSizes); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #define _WIN32_WINNT 0x0400 7 | 8 | // it's for Windows NT supporting (MENUITEMINFOW) 9 | #define WINVER 0x0400 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | // #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 20 | 21 | #include "Common/NewHandler.h" 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/StringUtils.h: -------------------------------------------------------------------------------- 1 | // StringUtils.h 2 | 3 | #ifndef __STRINGUTILS_H 4 | #define __STRINGUTILS_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | void SplitStringToTwoStrings(const UString &src, UString &dest1, UString &dest2); 9 | 10 | void SplitString(const UString &srcString, UStringVector &destStrings); 11 | UString JoinStrings(const UStringVector &srcStrings); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/SystemPageRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_SYSTEM 540 2 | #define IDD_SYSTEM_2 640 3 | #define IDS_PLUGIN 990 4 | // #define IDC_SYSTEM_INTEGRATE_TO_CONTEXT_MENU 1010 5 | #define IDC_SYSTEM_STATIC_ASSOCIATE 1020 6 | #define IDC_SYSTEM_LIST_ASSOCIATE 1021 7 | #define IDC_SYSTEM_LIST_PLUGINS 1022 8 | #define IDC_SYSTEM_SELECT_ALL 1023 9 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Test.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Test.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/Test2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/FileManager/Test2.bmp -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/resourceGui.h: -------------------------------------------------------------------------------- 1 | #define IDI_ICON 1 2 | 3 | #define IDS_INCORRECT_VOLUME_SIZE 95 4 | 5 | #define IDS_FILES_COLON 2274 6 | #define IDS_FOLDERS_COLON 2275 7 | #define IDS_SIZE_COLON 2276 8 | 9 | #define IDS_PROGRESS_TESTING 4100 10 | #define IDS_MESSAGE_NO_ERRORS 4200 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/FileManager/resourceGui.rc: -------------------------------------------------------------------------------- 1 | #include "resourceGui.h" 2 | 3 | STRINGTABLE 4 | BEGIN 5 | IDS_INCORRECT_VOLUME_SIZE "Incorrect volume size" 6 | 7 | IDS_FILES_COLON "Files:" 8 | IDS_FOLDERS_COLON "Folders:" 9 | IDS_SIZE_COLON "Size:" 10 | 11 | IDS_PROGRESS_TESTING "Testing" 12 | IDS_MESSAGE_NO_ERRORS "There are no errors" 13 | END 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/7zG.exe.manifest: -------------------------------------------------------------------------------- 1 | 7-Zip GUI. 2 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/ExtractDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_DIALOG_EXTRACT 552 2 | #define IDD_DIALOG_EXTRACT_2 652 3 | 4 | #define IDC_STATIC_EXTRACT_EXTRACT_TO 1020 5 | #define IDC_EXTRACT_COMBO_PATH 1021 6 | #define IDC_EXTRACT_BUTTON_SET_PATH 1022 7 | 8 | #define IDC_EXTRACT_COMBO_PATH_MODE 1030 9 | #define IDC_EXTRACT_COMBO_OVERWRITE_MODE 1031 10 | 11 | #define IDC_EXTRACT_PATH_MODE 1040 12 | #define IDC_EXTRACT_OVERWRITE_MODE 1050 13 | 14 | #define IDC_EXTRACT_FILES 1060 15 | 16 | #define IDC_EXTRACT_PASSWORD 1100 17 | #define IDC_EXTRACT_EDIT_PASSWORD 1101 18 | #define IDC_EXTRACT_CHECK_SHOW_PASSWORD 1102 19 | 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/FM.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/7z/CPP/7zip/UI/GUI/FM.ico -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/GUI.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "GUI"=.\GUI.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // StdAfx.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include "Common/NewHandler.h" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/resource.rc: -------------------------------------------------------------------------------- 1 | #include "../../MyVersionInfo.rc" 2 | #include 3 | 4 | #include "resource2.rc" 5 | #include "../FileManager/resourceGui.rc" 6 | 7 | MY_VERSION_INFO_APP("7-Zip GUI", "7zg") 8 | 9 | IDI_ICON ICON "FM.ico" 10 | 11 | #ifndef UNDER_CE 12 | 1 24 MOVEABLE PURE "7zG.exe.manifest" 13 | #endif 14 | 15 | #ifdef UNDER_CE 16 | #include "../FileManager/PropertyName.rc" 17 | #endif 18 | #include "../FileManager/OverwriteDialog.rc" 19 | #include "../FileManager/PasswordDialog.rc" 20 | #include "../FileManager/ProgressDialog2.rc" 21 | #include "Extract.rc" 22 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/resource2.h: -------------------------------------------------------------------------------- 1 | #define IDS_COMPRESSED_COLON 2277 2 | #define IDS_ARCHIVES_COLON 2278 3 | #define IDS_PROGRESS_COMPRESSING 98 4 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/GUI/resource2.rc: -------------------------------------------------------------------------------- 1 | #include "ExtractDialog.rc" 2 | #include "CompressDialog.rc" 3 | #include "BenchmarkDialog.rc" 4 | #include "resource2.h" 5 | 6 | STRINGTABLE 7 | BEGIN 8 | IDS_COMPRESSED_COLON "Compressed size:" 9 | IDS_ARCHIVES_COLON "Archives:" 10 | IDS_PROGRESS_COMPRESSING "Compressing" 11 | END 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/UI/makefile: -------------------------------------------------------------------------------- 1 | DIRS = \ 2 | Client7z\~ \ 3 | Console\~ \ 4 | Explorer\~ \ 5 | Far\~ \ 6 | FileManager\~ \ 7 | GUI\~ \ 8 | 9 | all: $(DIRS) 10 | 11 | $(DIRS): 12 | !include "../SubBuild.mak" 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/7zip/makefile: -------------------------------------------------------------------------------- 1 | DIRS = \ 2 | UI\~ \ 3 | Bundles\~ \ 4 | 5 | all: $(DIRS) 6 | 7 | $(DIRS): 8 | cd $(@D) 9 | $(MAKE) -nologo 10 | cd .. 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/CRC.cpp: -------------------------------------------------------------------------------- 1 | // Common/CRC.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../C/7zCrc.h" 6 | 7 | struct CCRCTableInit { CCRCTableInit() { CrcGenerateTable(); } } g_CRCTableInit; 8 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/ComTry.h: -------------------------------------------------------------------------------- 1 | // ComTry.h 2 | 3 | #ifndef __COM_TRY_H 4 | #define __COM_TRY_H 5 | 6 | #include "MyWindows.h" 7 | // #include "Exception.h" 8 | // #include "NewHandler.h" 9 | 10 | #define COM_TRY_BEGIN try { 11 | #define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; } 12 | 13 | // catch(const CNewException &) { return E_OUTOFMEMORY; } 14 | // catch(const CSystemException &e) { return e.ErrorCode; } 15 | // catch(...) { return E_FAIL; } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/Defs.h: -------------------------------------------------------------------------------- 1 | // Common/Defs.h 2 | 3 | #ifndef __COMMON_DEFS_H 4 | #define __COMMON_DEFS_H 5 | 6 | template inline T MyMin(T a, T b) 7 | { return a < b ? a : b; } 8 | template inline T MyMax(T a, T b) 9 | { return a > b ? a : b; } 10 | 11 | template inline int MyCompare(T a, T b) 12 | { return a < b ? -1 : (a == b ? 0 : 1); } 13 | 14 | inline int BoolToInt(bool value) 15 | { return (value ? 1: 0); } 16 | 17 | inline bool IntToBool(int value) 18 | { return (value != 0); } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/IntToString.h: -------------------------------------------------------------------------------- 1 | // Common/IntToString.h 2 | 3 | #ifndef __COMMON_INT_TO_STRING_H 4 | #define __COMMON_INT_TO_STRING_H 5 | 6 | #include 7 | #include "Types.h" 8 | 9 | void ConvertUInt64ToString(UInt64 value, char *s, UInt32 base = 10); 10 | void ConvertUInt64ToString(UInt64 value, wchar_t *s); 11 | void ConvertInt64ToString(Int64 value, char *s); 12 | void ConvertInt64ToString(Int64 value, wchar_t *s); 13 | 14 | void ConvertUInt32ToString(UInt32 value, char *s); 15 | void ConvertUInt32ToString(UInt32 value, wchar_t *s); 16 | 17 | void ConvertUInt32ToHexWithZeros(UInt32 value, char *s); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/Lang.h: -------------------------------------------------------------------------------- 1 | // Common/Lang.h 2 | 3 | #ifndef __COMMON_LANG_H 4 | #define __COMMON_LANG_H 5 | 6 | #include "MyVector.h" 7 | #include "MyString.h" 8 | #include "Types.h" 9 | 10 | struct CLangPair 11 | { 12 | UInt32 Value; 13 | UString String; 14 | }; 15 | 16 | class CLang 17 | { 18 | CObjectVector _langPairs; 19 | public: 20 | bool Open(LPCWSTR fileName); 21 | void Clear() { _langPairs.Clear(); } 22 | int FindItem(UInt32 value) const; 23 | bool GetMessage(UInt32 value, UString &message) const; 24 | }; 25 | 26 | #endif 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/ListFileUtils.h: -------------------------------------------------------------------------------- 1 | // Common/ListFileUtils.h 2 | 3 | #ifndef __COMMON_LISTFILEUTILS_H 4 | #define __COMMON_LISTFILEUTILS_H 5 | 6 | #include "MyString.h" 7 | #include "Types.h" 8 | 9 | bool ReadNamesFromListFile(LPCWSTR fileName, UStringVector &strings, UINT codePage = CP_OEMCP); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/MyException.h: -------------------------------------------------------------------------------- 1 | // Common/Exception.h 2 | 3 | #ifndef __COMMON_EXCEPTION_H 4 | #define __COMMON_EXCEPTION_H 5 | 6 | #include "MyWindows.h" 7 | 8 | struct CSystemException 9 | { 10 | HRESULT ErrorCode; 11 | CSystemException(HRESULT errorCode): ErrorCode(errorCode) {} 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/MyInitGuid.h: -------------------------------------------------------------------------------- 1 | // Common/MyInitGuid.h 2 | 3 | #ifndef __COMMON_MY_INITGUID_H 4 | #define __COMMON_MY_INITGUID_H 5 | 6 | #ifdef _WIN32 7 | #ifdef UNDER_CE 8 | #include 9 | #endif 10 | #include 11 | #ifdef UNDER_CE 12 | DEFINE_GUID(IID_IUnknown, 13 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 14 | #endif 15 | #else 16 | #define INITGUID 17 | #include "MyGuidDef.h" 18 | DEFINE_GUID(IID_IUnknown, 19 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/MyMap.h: -------------------------------------------------------------------------------- 1 | // MyMap.h 2 | 3 | #ifndef __COMMON_MYMAP_H 4 | #define __COMMON_MYMAP_H 5 | 6 | #include "MyVector.h" 7 | #include "Types.h" 8 | 9 | class CMap32 10 | { 11 | struct CNode 12 | { 13 | UInt32 Key; 14 | UInt32 Keys[2]; 15 | UInt32 Values[2]; 16 | UInt16 Len; 17 | Byte IsLeaf[2]; 18 | }; 19 | CRecordVector Nodes; 20 | 21 | public: 22 | 23 | void Clear() { Nodes.Clear(); } 24 | bool Find(UInt32 key, UInt32 &valueRes) const; 25 | bool Set(UInt32 key, UInt32 value); // returns true, if there is such key already 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/MyUnknown.h: -------------------------------------------------------------------------------- 1 | // MyUnknown.h 2 | 3 | #ifndef __MY_UNKNOWN_H 4 | #define __MY_UNKNOWN_H 5 | 6 | #ifdef _WIN32 7 | #include 8 | #include 9 | #else 10 | #include "MyWindows.h" 11 | #endif 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/NewHandler.h: -------------------------------------------------------------------------------- 1 | // Common/NewHandler.h 2 | 3 | #ifndef __COMMON_NEWHANDLER_H 4 | #define __COMMON_NEWHANDLER_H 5 | 6 | class CNewException {}; 7 | 8 | #ifdef _WIN32 9 | void 10 | #ifdef _MSC_VER 11 | __cdecl 12 | #endif 13 | operator delete(void *p) throw(); 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/Random.cpp: -------------------------------------------------------------------------------- 1 | // Common/Random.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include 6 | 7 | #ifndef _WIN32 8 | #include 9 | #endif 10 | 11 | #include "Random.h" 12 | 13 | void CRandom::Init(unsigned int seed) { srand(seed); } 14 | 15 | void CRandom::Init() 16 | { 17 | Init((unsigned int) 18 | #ifdef _WIN32 19 | GetTickCount() 20 | #else 21 | time(NULL) 22 | #endif 23 | ); 24 | } 25 | 26 | int CRandom::Generate() const { return rand(); } 27 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/Random.h: -------------------------------------------------------------------------------- 1 | // Common/Random.h 2 | 3 | #ifndef __COMMON_RANDOM_H 4 | #define __COMMON_RANDOM_H 5 | 6 | class CRandom 7 | { 8 | public: 9 | void Init(); 10 | void Init(unsigned int seed); 11 | int Generate() const; 12 | }; 13 | 14 | #endif 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | // #include "MyWindows.h" 7 | #include "NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/StringToInt.h: -------------------------------------------------------------------------------- 1 | // Common/StringToInt.h 2 | 3 | #ifndef __COMMON_STRINGTOINT_H 4 | #define __COMMON_STRINGTOINT_H 5 | 6 | #include 7 | #include "Types.h" 8 | 9 | UInt64 ConvertStringToUInt64(const char *s, const char **end); 10 | UInt64 ConvertOctStringToUInt64(const char *s, const char **end); 11 | UInt64 ConvertHexStringToUInt64(const char *s, const char **end); 12 | UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end); 13 | 14 | Int64 ConvertStringToInt64(const char *s, const char **end); 15 | 16 | #endif 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/TextConfig.h: -------------------------------------------------------------------------------- 1 | // Common/TextConfig.h 2 | 3 | #ifndef __COMMON_TEXTCONFIG_H 4 | #define __COMMON_TEXTCONFIG_H 5 | 6 | #include "MyVector.h" 7 | #include "MyString.h" 8 | 9 | struct CTextConfigPair 10 | { 11 | UString ID; 12 | UString String; 13 | }; 14 | 15 | bool GetTextConfig(const AString &text, CObjectVector &pairs); 16 | 17 | int FindTextConfigItem(const CObjectVector &pairs, const UString &id); 18 | UString GetTextConfigValue(const CObjectVector &pairs, const UString &id); 19 | 20 | #endif 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/Types.h: -------------------------------------------------------------------------------- 1 | // Common/Types.h 2 | 3 | #ifndef __COMMON_TYPES_H 4 | #define __COMMON_TYPES_H 5 | 6 | #include "../../C/Types.h" 7 | 8 | typedef int HRes; 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Common/UTFConvert.h: -------------------------------------------------------------------------------- 1 | // Common/UTFConvert.h 2 | 3 | #ifndef __COMMON_UTFCONVERT_H 4 | #define __COMMON_UTFCONVERT_H 5 | 6 | #include "MyString.h" 7 | 8 | bool ConvertUTF8ToUnicode(const AString &utfString, UString &resultString); 9 | bool ConvertUnicodeToUTF8(const UString &unicodeString, AString &resultString); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Clipboard.h: -------------------------------------------------------------------------------- 1 | // Windows/Clipboard.h 2 | 3 | #ifndef __CLIPBOARD_H 4 | #define __CLIPBOARD_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | namespace NWindows { 9 | 10 | class CClipboard 11 | { 12 | bool m_Open; 13 | public: 14 | CClipboard(): m_Open(false) {}; 15 | ~CClipboard(); 16 | bool Open(HWND wndNewOwner); 17 | bool Close(); 18 | }; 19 | 20 | bool ClipboardIsFormatAvailableHDROP(); 21 | 22 | // bool ClipboardGetFileNames(UStringVector &names); 23 | // bool ClipboardGetTextString(AString &s); 24 | bool ClipboardSetText(HWND owner, const UString &s); 25 | 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/CommonDialog.h: -------------------------------------------------------------------------------- 1 | // Windows/CommonDialog.h 2 | 3 | #ifndef __WINDOWS_COMMON_DIALOG_H 4 | #define __WINDOWS_COMMON_DIALOG_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | namespace NWindows{ 9 | 10 | bool MyGetOpenFileName(HWND hwnd, LPCWSTR title, LPCWSTR fullFileName, 11 | LPCWSTR s, UString &resPath 12 | #ifdef UNDER_CE 13 | , bool openFolder = false 14 | #endif 15 | ); 16 | 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Console.cpp: -------------------------------------------------------------------------------- 1 | // Windows/Console.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "Windows/Console.h" 6 | 7 | namespace NWindows{ 8 | namespace NConsole{ 9 | 10 | }} 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Control/Edit.h: -------------------------------------------------------------------------------- 1 | // Windows/Control/Edit.h 2 | 3 | #ifndef __WINDOWS_CONTROL_EDIT_H 4 | #define __WINDOWS_CONTROL_EDIT_H 5 | 6 | #include "Windows/Window.h" 7 | 8 | namespace NWindows { 9 | namespace NControl { 10 | 11 | class CEdit: public CWindow 12 | { 13 | public: 14 | void SetPasswordChar(WPARAM c) { SendMessage(EM_SETPASSWORDCHAR, c); } 15 | }; 16 | 17 | }} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Control/ImageList.cpp: -------------------------------------------------------------------------------- 1 | // Windows/Control/ImageList.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "Windows/Control/ImageList.h" 6 | 7 | namespace NWindows { 8 | namespace NControl { 9 | 10 | }} 11 | 12 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Control/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../../Common/MyWindows.h" 7 | #include "../../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Defs.h: -------------------------------------------------------------------------------- 1 | // Windows/Defs.h 2 | 3 | #ifndef __WINDOWS_DEFS_H 4 | #define __WINDOWS_DEFS_H 5 | 6 | #include "../Common/MyWindows.h" 7 | 8 | #ifdef _WIN32 9 | inline bool LRESULTToBool(LRESULT v) { return (v != FALSE); } 10 | inline bool BOOLToBool(BOOL v) { return (v != FALSE); } 11 | inline BOOL BoolToBOOL(bool v) { return (v ? TRUE: FALSE); } 12 | #endif 13 | 14 | inline VARIANT_BOOL BoolToVARIANT_BOOL(bool v) { return (v ? VARIANT_TRUE: VARIANT_FALSE); } 15 | inline bool VARIANT_BOOLToBool(VARIANT_BOOL v) { return (v != VARIANT_FALSE); } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/FileMapping.cpp: -------------------------------------------------------------------------------- 1 | // Windows/FileMapping.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "Windows/FileMapping.h" 6 | 7 | namespace NWindows { 8 | namespace NFile { 9 | namespace NMapping { 10 | 11 | 12 | }}} 13 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/MemoryLock.h: -------------------------------------------------------------------------------- 1 | // Windows/MemoryLock.h 2 | 3 | #ifndef __WINDOWS_MEMORYLOCK_H 4 | #define __WINDOWS_MEMORYLOCK_H 5 | 6 | namespace NWindows { 7 | namespace NSecurity { 8 | 9 | #ifndef UNDER_CE 10 | bool EnableLockMemoryPrivilege(bool enable = true); 11 | #endif 12 | 13 | }} 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/NationalTime.h: -------------------------------------------------------------------------------- 1 | // Windows/NationalTime.h 2 | 3 | #ifndef __WINDOWS_NATIONALTIME_H 4 | #define __WINDOWS_NATIONALTIME_H 5 | 6 | #include "Common/String.h" 7 | 8 | namespace NWindows { 9 | namespace NNational { 10 | namespace NTime { 11 | 12 | bool MyGetTimeFormat(LCID locale, DWORD flags, CONST SYSTEMTIME *time, 13 | LPCTSTR format, CSysString &resultString); 14 | 15 | bool MyGetDateFormat(LCID locale, DWORD flags, CONST SYSTEMTIME *time, 16 | LPCTSTR format, CSysString &resultString); 17 | 18 | }}} 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/ProcessMessages.cpp: -------------------------------------------------------------------------------- 1 | // Windows/ProcessMessages.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "ProcessMessages.h" 6 | 7 | namespace NWindows { 8 | 9 | void ProcessMessages(HWND window) 10 | { 11 | MSG msg; 12 | while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) ) 13 | { 14 | if (window == (HWND) NULL || !IsDialogMessage(window, &msg)) 15 | { 16 | TranslateMessage(&msg); 17 | DispatchMessage(&msg); 18 | } 19 | } 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/ProcessMessages.h: -------------------------------------------------------------------------------- 1 | // Windows/ProcessMessages.h 2 | 3 | #ifndef __WINDOWS_PROCESSMESSAGES_H 4 | #define __WINDOWS_PROCESSMESSAGES_H 5 | 6 | namespace NWindows { 7 | 8 | void ProcessMessages(HWND window); 9 | 10 | } 11 | 12 | #endif 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/PropVariantConversions.h: -------------------------------------------------------------------------------- 1 | // Windows/PropVariantConversions.h 2 | 3 | #ifndef __PROP_VARIANT_CONVERSIONS_H 4 | #define __PROP_VARIANT_CONVERSIONS_H 5 | 6 | #include "Common/MyString.h" 7 | #include "Common/Types.h" 8 | 9 | bool ConvertFileTimeToString(const FILETIME &ft, char *s, bool includeTime = true, bool includeSeconds = true); 10 | UString ConvertFileTimeToString(const FILETIME &ft, bool includeTime = true, bool includeSeconds = true); 11 | UString ConvertPropVariantToString(const PROPVARIANT &prop); 12 | UInt64 ConvertPropVariantToUInt64(const PROPVARIANT &prop); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/StdAfx.h: -------------------------------------------------------------------------------- 1 | // StdAfx.h 2 | 3 | #ifndef __STDAFX_H 4 | #define __STDAFX_H 5 | 6 | #include "../Common/MyWindows.h" 7 | #include "../Common/NewHandler.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Synchronization.cpp: -------------------------------------------------------------------------------- 1 | // Windows/Synchronization.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "Synchronization.h" 6 | 7 | namespace NWindows { 8 | namespace NSynchronization { 9 | 10 | }} 11 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/System.h: -------------------------------------------------------------------------------- 1 | // Windows/System.h 2 | 3 | #ifndef __WINDOWS_SYSTEM_H 4 | #define __WINDOWS_SYSTEM_H 5 | 6 | #include "../Common/Types.h" 7 | 8 | namespace NWindows { 9 | namespace NSystem { 10 | 11 | UInt32 GetNumberOfProcessors(); 12 | UInt64 GetRamSize(); 13 | 14 | }} 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/7z/CPP/Windows/Time.h: -------------------------------------------------------------------------------- 1 | // Windows/Time.h 2 | 3 | #ifndef __WINDOWS_TIME_H 4 | #define __WINDOWS_TIME_H 5 | 6 | #include "Common/Types.h" 7 | 8 | namespace NWindows { 9 | namespace NTime { 10 | 11 | bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); 12 | bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); 13 | void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); 14 | bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); 15 | bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, 16 | unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds); 17 | void GetCurUtcFileTime(FILETIME &ft); 18 | 19 | }} 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/CityHash/citybyteswap.h: -------------------------------------------------------------------------------- 1 | #ifndef _BYTESWAP_H 2 | #define _BYTESWAP_H 3 | 4 | static inline uint16 bswap_16(uint16 x) { 5 | return (x>>8) | (x<<8); 6 | } 7 | 8 | static inline uint32 bswap_32(uint32 x) { 9 | return (bswap_16(x&0xffff)<<16) | (bswap_16(x>>16)); 10 | } 11 | 12 | static inline uint64 bswap_64(uint64 x) { 13 | return (((uint64)bswap_32(x&0xffffffffull))<<32) | (bswap_32(x>>32)); 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/CrapWow.h: -------------------------------------------------------------------------------- 1 | #include "stdint.h" 2 | uint32_t CrapWow( const uint8_t *key, uint32_t len, uint32_t seed ); -------------------------------------------------------------------------------- /src/codecs/LZWC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LZWC.h 3 | * 4 | * Created on: 15 Jan 2013 5 | * Author: m 6 | */ 7 | 8 | #ifndef LZWC_H_ 9 | #define LZWC_H_ 10 | 11 | 12 | size_t lzwc_compress(const unsigned char* input, size_t input_size, unsigned char* output, size_t output_size); 13 | size_t lzwc_decompress(const unsigned char* input, size_t input_size, unsigned char* output, size_t output_size); 14 | 15 | #endif /* LZWC_H_ */ 16 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/Keccak-avr8-settings.h: -------------------------------------------------------------------------------- 1 | #define cKeccakR 1088 2 | #define cKeccakFixedOutputLengthInBytes 32 3 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/Keccak-avr8-util.h: -------------------------------------------------------------------------------- 1 | /* 2 | The Keccak sponge function, designed by Guido Bertoni, Joan Daemen, 3 | Michaël Peeters and Gilles Van Assche. For more information, feedback or 4 | questions, please refer to our website: http://keccak.noekeon.org/ 5 | 6 | Implementation by Ronny Van Keer, 7 | hereby denoted as "the implementer". 8 | 9 | To the extent possible under law, the implementer has waived all copyright 10 | and related or neighboring rights to the source code in this file. 11 | http://creativecommons.org/publicdomain/zero/1.0/ 12 | */ 13 | 14 | const void * xorBytes( void* dest, const void* src, unsigned char n ); 15 | const void * xorLanes( void* dest, const void* src, unsigned char n ); 16 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/KeccakF-1600-int-set.h: -------------------------------------------------------------------------------- 1 | #define ProvideFast576 2 | #define ProvideFast832 3 | #define ProvideFast1024 4 | #define ProvideFast1088 5 | #define ProvideFast1152 6 | #define ProvideFast1344 7 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/KeccakF-1600-opt32-settings.h: -------------------------------------------------------------------------------- 1 | #define Unrolling 2 2 | //#define UseBebigokimisa 3 | //#define UseInterleaveTables 4 | #define UseSchedule 3 5 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/KeccakF-1600-opt64-settings.h: -------------------------------------------------------------------------------- 1 | #define Unrolling 24 2 | #define UseBebigokimisa 3 | //#define UseSSE 4 | //#define UseOnlySIMD64 5 | //#define UseMMX 6 | //#define UseSHLD 7 | //#define UseXOP 8 | -------------------------------------------------------------------------------- /src/codecs/SHA3/Keccak/crypto_hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/SHA3/Keccak/crypto_hash.h -------------------------------------------------------------------------------- /src/codecs/SHA3/SWIFFTX/SHA3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/SHA3/SWIFFTX/SHA3.h -------------------------------------------------------------------------------- /src/codecs/Yappy.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | typedef uint8_t ui8; 4 | typedef uint16_t ui16; 5 | typedef uint32_t ui32; 6 | typedef uint64_t ui64; 7 | 8 | ui8 *YappyUnCompress(const ui8 *data, const ui8 *end, ui8 *to); 9 | 10 | void YappyFillTables(); 11 | 12 | ui8 *YappyCompress(const ui8 *data, ui8 *to, size_t len, int level); -------------------------------------------------------------------------------- /src/codecs/_patches/cityhash.diff: -------------------------------------------------------------------------------- 1 | Only in CityHash: byteswap.h 2 | diff src/city.cc CityHash/city.cc 3 | 30c30 4 | < #include "config.h" 5 | --- 6 | > //#include "config.h" 7 | 63c63 8 | < #else 9 | --- 10 | > #elif defined(__GLIBC__) 11 | 66a67,70 12 | > #else 13 | > 14 | > #include "citybyteswap.h" 15 | > 16 | diff src/city.h CityHash/city.h 17 | 65a66 18 | > typedef uint16_t uint16; 19 | -------------------------------------------------------------------------------- /src/codecs/_patches/quicklzzip.diff: -------------------------------------------------------------------------------- 1 | 17c17 2 | < __inline out(unsigned int data, unsigned int len) 3 | --- 4 | > static __inline out(unsigned int data, unsigned int len) 5 | 25c25 6 | < __inline unsigned int revbits(unsigned int n, int numbits) 7 | --- 8 | > static __inline unsigned int revbits(unsigned int n, int numbits) 9 | 44c44 10 | < __inline encode_offset(unsigned int offset) 11 | --- 12 | > static __inline encode_offset(unsigned int offset) 13 | 80c80 14 | < __inline encode_literal(unsigned int lit) 15 | --- 16 | > static __inline encode_literal(unsigned int lit) 17 | 102c102 18 | < __inline encode_matchlen(unsigned int matchlen) 19 | --- 20 | > static __inline encode_matchlen(unsigned int matchlen) 21 | -------------------------------------------------------------------------------- /src/codecs/_patches/tornado2.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/_patches/tornado2.diff -------------------------------------------------------------------------------- /src/codecs/_patches/zlib.diff: -------------------------------------------------------------------------------- 1 | 1756c1756 2 | < #if defined(STDC) || defined(Z_HAVE_STDARG_H) 3 | --- 4 | > #if 0 && (defined(STDC) || defined(Z_HAVE_STDARG_H)) 5 | -------------------------------------------------------------------------------- /src/codecs/bcl/doc/manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bcl/doc/manual.pdf -------------------------------------------------------------------------------- /src/codecs/bcl/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | This stylesheet is for the readme.html document. 3 | */ 4 | 5 | body { 6 | font-family: arial,sans-serif; 7 | padding: 0 20px; 8 | } 9 | 10 | p { 11 | text-align: justify; 12 | } 13 | 14 | h2 { 15 | font-family: tahoma,arial,sans-serif; 16 | padding-top: 0.5em; 17 | } 18 | 19 | h3 { 20 | padding-top: 0.5em; 21 | } 22 | 23 | #title h1, #title p { 24 | text-align: center; 25 | } 26 | 27 | p.footer { 28 | font-size: 80%; 29 | font-style: italic; 30 | color: #808080; 31 | border-top: solid 1px #a0a0a0; 32 | margin-top: 30px; 33 | padding-top: 10px; 34 | } 35 | -------------------------------------------------------------------------------- /src/codecs/brotli/dec/README: -------------------------------------------------------------------------------- 1 | This directory holds the decoder for brotli compression format. 2 | 3 | Brotli is proposed to be used at the byte-compression level in WOFF 2.0 format. 4 | -------------------------------------------------------------------------------- /src/codecs/brotli/enc/README: -------------------------------------------------------------------------------- 1 | This directory holds the encoder for brotli compression format. 2 | 3 | Brotli is proposed to be used at the byte-compression level in WOFF 2.0 format. 4 | -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/entities.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/manual.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/manual.html -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/sample1.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/sample1.bz2 -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/sample1.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/sample1.ref -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/sample2.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/sample2.bz2 -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/sample2.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/sample2.ref -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/sample3.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/bzip2-1.0.6/sample3.bz2 -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/words0: -------------------------------------------------------------------------------- 1 | 2 | If compilation produces errors, or a large number of warnings, 3 | please read README.COMPILATION.PROBLEMS -- you might be able to 4 | adjust the flags in this Makefile to improve matters. 5 | 6 | Also in README.COMPILATION.PROBLEMS are some hints that may help 7 | if your build produces an executable which is unable to correctly 8 | handle so-called 'large files' -- files of size 2GB or more. 9 | 10 | -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/words1: -------------------------------------------------------------------------------- 1 | 2 | Doing 6 tests (3 compress, 3 uncompress) ... 3 | If there's a problem, things might stop at this point. 4 | 5 | -------------------------------------------------------------------------------- /src/codecs/bzip2-1.0.6/words2: -------------------------------------------------------------------------------- 1 | 2 | Checking test results. If any of the four "cmp"s which follow 3 | report any differences, something is wrong. If you can't easily 4 | figure out what, please let me know (jseward@bzip.org). 5 | 6 | -------------------------------------------------------------------------------- /src/codecs/crush/crush.hpp: -------------------------------------------------------------------------------- 1 | namespace crush 2 | { 3 | uint32_t compress(int level, uint8_t* buf, int size, uint8_t* outbuf); 4 | uint32_t decompress(uint8_t* inbuf, uint8_t* outbuf, int outsize); 5 | } 6 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/adhoc.cpp.proto: -------------------------------------------------------------------------------- 1 | #include "filters.h" 2 | #include "files.h" 3 | #include "base64.h" 4 | #include "hex.h" 5 | #include 6 | 7 | USING_NAMESPACE(CryptoPP) 8 | USING_NAMESPACE(std) 9 | 10 | extern int (*AdhocTest)(int argc, char *argv[]); 11 | 12 | int MyAdhocTest(int argc, char *argv[]) 13 | { 14 | return 0; 15 | } 16 | 17 | static int s_i = (AdhocTest = &MyAdhocTest, 0); 18 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/aes.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_AES_H 2 | #define CRYPTOPP_AES_H 3 | 4 | #include "rijndael.h" 5 | 6 | NAMESPACE_BEGIN(CryptoPP) 7 | 8 | //! AES winner, announced on 10/2/2000 9 | DOCUMENTED_TYPEDEF(Rijndael, AES); 10 | 11 | typedef RijndaelEncryption AESEncryption; 12 | typedef RijndaelDecryption AESDecryption; 13 | 14 | NAMESPACE_END 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/bench.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_BENCH_H 2 | #define CRYPTOPP_BENCH_H 3 | 4 | #include "cryptlib.h" 5 | 6 | extern const double CLOCK_TICKS_PER_SECOND; 7 | 8 | void BenchmarkAll(double t, double hertz); 9 | void BenchmarkAll2(double t, double hertz); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/cryptlib_bds.cpp: -------------------------------------------------------------------------------- 1 | //--------------------------------------------------------------------------- 2 | 3 | /* 4 | #include 5 | #pragma hdrstop 6 | */ 7 | #define Library 8 | 9 | // To add a file to the library use the Project menu 'Add to Project'. 10 | 11 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/dh.cpp: -------------------------------------------------------------------------------- 1 | // dh.cpp - written and placed in the public domain by Wei Dai 2 | 3 | #include "pch.h" 4 | 5 | #ifndef CRYPTOPP_IMPORTS 6 | 7 | #include "dh.h" 8 | 9 | NAMESPACE_BEGIN(CryptoPP) 10 | 11 | void DH_TestInstantiations() 12 | { 13 | DH dh1; 14 | DH dh2(NullRNG(), 10); 15 | } 16 | 17 | NAMESPACE_END 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/elgamal.cpp: -------------------------------------------------------------------------------- 1 | // elgamal.cpp - written and placed in the public domain by Wei Dai 2 | 3 | #include "pch.h" 4 | #include "elgamal.h" 5 | #include "asn.h" 6 | #include "nbtheory.h" 7 | 8 | NAMESPACE_BEGIN(CryptoPP) 9 | 10 | void ElGamal_TestInstantiations() 11 | { 12 | ElGamalEncryptor test1(1, 1, 1); 13 | ElGamalDecryptor test2(NullRNG(), 123); 14 | ElGamalEncryptor test3(test2); 15 | } 16 | 17 | NAMESPACE_END 18 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/mqv.cpp: -------------------------------------------------------------------------------- 1 | // mqv.cpp - written and placed in the public domain by Wei Dai 2 | 3 | #include "pch.h" 4 | #include "mqv.h" 5 | 6 | NAMESPACE_BEGIN(CryptoPP) 7 | 8 | void TestInstantiations_MQV() 9 | { 10 | MQV mqv; 11 | } 12 | 13 | NAMESPACE_END 14 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/nr.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_NR_H 2 | #define CRYPTOPP_NR_H 3 | 4 | #include "gfpcrypt.h" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/pch.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_PCH_H 2 | #define CRYPTOPP_PCH_H 3 | 4 | #ifdef CRYPTOPP_GENERATE_X64_MASM 5 | 6 | #include "cpu.h" 7 | 8 | #else 9 | 10 | #include "config.h" 11 | 12 | #ifdef USE_PRECOMPILED_HEADERS 13 | #include "simple.h" 14 | #include "secblock.h" 15 | #include "misc.h" 16 | #include "smartptr.h" 17 | #endif 18 | 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by cryptopp.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 101 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/simple.cpp: -------------------------------------------------------------------------------- 1 | // simple.cpp - written and placed in the public domain by Wei Dai 2 | 3 | #include "pch.h" 4 | 5 | #ifndef CRYPTOPP_IMPORTS 6 | 7 | #include "simple.h" 8 | #include "secblock.h" 9 | 10 | NAMESPACE_BEGIN(CryptoPP) 11 | 12 | NAMESPACE_END 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/tiger.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_TIGER_H 2 | #define CRYPTOPP_TIGER_H 3 | 4 | #include "config.h" 5 | #include "iterhash.h" 6 | 7 | NAMESPACE_BEGIN(CryptoPP) 8 | 9 | /// Tiger 10 | class Tiger : public IteratedHashWithStaticTransform 11 | { 12 | public: 13 | static void InitState(HashWordType *state); 14 | static void Transform(word64 *digest, const word64 *data); 15 | void TruncatedFinal(byte *hash, size_t size); 16 | static const char * StaticAlgorithmName() {return "Tiger";} 17 | 18 | protected: 19 | static const word64 table[4*256+3]; 20 | }; 21 | 22 | NAMESPACE_END 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/codecs/cryptopp/whrlpool.h: -------------------------------------------------------------------------------- 1 | #ifndef CRYPTOPP_WHIRLPOOL_H 2 | #define CRYPTOPP_WHIRLPOOL_H 3 | 4 | #include "config.h" 5 | #include "iterhash.h" 6 | 7 | NAMESPACE_BEGIN(CryptoPP) 8 | 9 | //! Whirlpool 10 | class Whirlpool : public IteratedHashWithStaticTransform 11 | { 12 | public: 13 | static void InitState(HashWordType *state); 14 | static void Transform(word64 *digest, const word64 *data); 15 | void TruncatedFinal(byte *hash, size_t size); 16 | static const char * StaticAlgorithmName() {return "Whirlpool";} 17 | }; 18 | 19 | NAMESPACE_END 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/codecs/gipfeli/config.h: -------------------------------------------------------------------------------- 1 | /* Some basic macro definitions for high performance. 2 | * If something is not supported by your system, turn it off. 3 | * This will be substituted by automatic script in future.*/ 4 | 5 | /* Define to 1 if the compiler supports __builtin_ctz and friends. */ 6 | #define HAVE_BUILTIN_CTZ 1 7 | 8 | /* Define to 1 if the compiler supports __builtin_expect. */ 9 | #define HAVE_BUILTIN_EXPECT 1 10 | -------------------------------------------------------------------------------- /src/codecs/gipfeli/fsbench_gipfeli.h: -------------------------------------------------------------------------------- 1 | namespace FsBenchGipfeli 2 | { 3 | size_t compress(char*in,size_t isize,char*out,size_t osize,void*_); 4 | size_t decompress(char*in,size_t isize,char*out,size_t osize,void*_); 5 | size_t max_size(size_t input_size) ; 6 | 7 | } // FsBenchGipfeli -------------------------------------------------------------------------------- /src/codecs/gipfeli/fsbench_gipfeli.hpp: -------------------------------------------------------------------------------- 1 | namespace FsBenchGipfeli 2 | { 3 | size_t compress(char*in,size_t isize,char*out,size_t osize,void*_); 4 | size_t decompress(char*in,size_t isize,char*out,size_t osize,void*_); 5 | size_t max_size(size_t input_size) ; 6 | 7 | } // FsBenchGipfeli -------------------------------------------------------------------------------- /src/codecs/gipfeli/gipfeli.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/gipfeli/gipfeli.cc -------------------------------------------------------------------------------- /src/codecs/lz4/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior 2 | * text eol=lf 3 | 4 | # Explicitly declare source files 5 | *.c text eol=lf 6 | *.h text eol=lf 7 | 8 | # Denote files that should not be modified. 9 | *.odt binary 10 | *.png binary 11 | # Visual Studio 12 | *.sln binary 13 | *.suo binary 14 | *.vcxproj* binary 15 | 16 | -------------------------------------------------------------------------------- /src/codecs/lz4/examples/README.md: -------------------------------------------------------------------------------- 1 | # LZ4 examples 2 | 3 | ## Documents 4 | 5 | - [Streaming API Basics](streaming_api_basics.md) 6 | - Examples 7 | - [Double Buffer](blockStreaming_doubleBuffer.md) 8 | - [Line by Line Text Compression](blockStreaming_lineByLine.md) 9 | -------------------------------------------------------------------------------- /src/codecs/lz4/examples/printVersion.c: -------------------------------------------------------------------------------- 1 | // LZ4 trivial example : print Library version number 2 | // Copyright : Takayuki Matsuoka & Yann Collet 3 | 4 | 5 | #include 6 | #include "lz4.h" 7 | 8 | int main(int argc, char** argv) 9 | { 10 | (void)argc; (void)argv; 11 | printf("Hello World ! LZ4 Library version = %d\n", LZ4_versionNumber()); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /src/codecs/lz4/lib/liblz4.pc.in: -------------------------------------------------------------------------------- 1 | # LZ4 - Fast LZ compression algorithm 2 | # Copyright (C) 2011-2014, Yann Collet. 3 | # BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 4 | 5 | prefix=@PREFIX@ 6 | libdir=@LIBDIR@ 7 | includedir=@INCLUDEDIR@ 8 | 9 | Name: lz4 10 | Description: fast lossless compression algorithm library 11 | URL: http://code.google.com/p/lz4/ 12 | Version: @VERSION@ 13 | Libs: -L@LIBDIR@ -llz4 14 | Cflags: -I@INCLUDEDIR@ 15 | -------------------------------------------------------------------------------- /src/codecs/lzham/include/zlib.h: -------------------------------------------------------------------------------- 1 | #define LZHAM_DEFINE_ZLIB_API 2 | #include "lzham.h" -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamcomp/lzham_threading.h: -------------------------------------------------------------------------------- 1 | // File: lzham_threading.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | 4 | #include "lzham_null_threading.h" 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamdecomp/lzham_checksum.h: -------------------------------------------------------------------------------- 1 | // File: lzham_checksum.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #pragma once 4 | 5 | namespace lzham 6 | { 7 | const uint cInitAdler32 = 1U; 8 | uint adler32(const void* pBuf, size_t buflen, uint adler32 = cInitAdler32); 9 | 10 | const uint cInitCRC32 = 0U; 11 | uint crc32(uint crc, const lzham_uint8 *ptr, size_t buf_len); 12 | 13 | } // namespace lzham 14 | -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamdecomp/lzham_config.h: -------------------------------------------------------------------------------- 1 | // File: lzham_config.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #pragma once 4 | 5 | #if defined(_DEBUG) || defined(DEBUG) 6 | #define LZHAM_BUILD_DEBUG 7 | 8 | #ifndef DEBUG 9 | #define DEBUG 10 | #endif 11 | #else 12 | #define LZHAM_BUILD_RELEASE 13 | 14 | #ifndef NDEBUG 15 | #define NDEBUG 16 | #endif 17 | 18 | #ifdef DEBUG 19 | #error DEBUG cannot be defined in LZHAM_BUILD_RELEASE 20 | #endif 21 | #endif 22 | #define LZHAM_BUFFERED_PRINTF 0 23 | #define LZHAM_PERF_SECTIONS 0 -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamdecomp/lzham_huffman_codes.h: -------------------------------------------------------------------------------- 1 | // File: lzham_huffman_codes.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #pragma once 4 | 5 | namespace lzham 6 | { 7 | //const uint cHuffmanMaxSupportedSyms = 600; 8 | const uint cHuffmanMaxSupportedSyms = 1024; 9 | 10 | uint get_generate_huffman_codes_table_size(); 11 | 12 | bool generate_huffman_codes(void* pContext, uint num_syms, const uint16* pFreq, uint8* pCodesizes, uint& max_code_size, uint& total_freq_ret); 13 | 14 | } // namespace lzham 15 | -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamdll/lzham_dll_main.cpp: -------------------------------------------------------------------------------- 1 | // File: lzham_dll_main.cpp 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #include "lzham_core.h" 4 | 5 | BOOL APIENTRY DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved) 6 | { 7 | hModule, fdwReason, lpReserved; 8 | 9 | switch( fdwReason ) 10 | { 11 | case DLL_PROCESS_ATTACH: 12 | { 13 | break; 14 | } 15 | case DLL_PROCESS_DETACH: 16 | { 17 | break; 18 | } 19 | } 20 | 21 | return TRUE; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/codecs/lzham/lzhamdll/lzhamdll.def: -------------------------------------------------------------------------------- 1 | LIBRARY lzhamdll 2 | EXPORTS 3 | lzham_get_version @1 4 | lzham_set_memory_callbacks @2 5 | lzham_compress_init @3 6 | lzham_compress_reinit @4 7 | lzham_compress @5 8 | lzham_compress_deinit @6 9 | lzham_compress_memory @7 10 | lzham_decompress_init @8 11 | lzham_decompress @9 12 | lzham_decompress_deinit @10 13 | lzham_decompress_memory @11 14 | lzham_decompress_reinit @12 15 | -------------------------------------------------------------------------------- /src/codecs/lzv1.h: -------------------------------------------------------------------------------- 1 | /* ugly type names */ 2 | 3 | typedef unsigned char uch; 4 | typedef unsigned short ush; 5 | typedef unsigned int uit; 6 | 7 | #undef ONLY_64K /* 64k-max encoder is faster */ 8 | /* but only veeeery slightly */ 9 | 10 | 11 | int 12 | wLZV1 (uch * in, uch * out, ush * heap, int len, int out_len); 13 | 14 | int 15 | rLZV1 (uch const *const in, uch * const out, int ilen, int len); -------------------------------------------------------------------------------- /src/codecs/lzx_compress/ChangeLog: -------------------------------------------------------------------------------- 1 | 2002-06-17 Matthew T. Russotto 2 | Switched to non-sliding version of Lempel-Ziv for 3 | major performance boost 4 | -------------------------------------------------------------------------------- /src/codecs/lzx_compress/lzx_config.h: -------------------------------------------------------------------------------- 1 | 2 | #if BYTE_ORDER == BIG_ENDIAN 3 | #define LZX_BIG_ENDIAN 4 | #endif 5 | 6 | #define NONSLIDE 7 | #define LAZY -------------------------------------------------------------------------------- /src/codecs/miniz.hpp: -------------------------------------------------------------------------------- 1 | #ifndef __MINIZ_H_ahUIght8 2 | #define __MINIZ_H_ahUIght8 3 | 4 | #include 5 | 6 | size_t miniz_c(char*in, size_t isize, char*out, size_t osize, void*mode); 7 | size_t miniz_d(char*in, size_t isize, char*out, size_t osize, void*_); 8 | 9 | #endif // __MINIZ_H_ahUIght8 10 | -------------------------------------------------------------------------------- /src/codecs/mmini/ChangeLog.txt: -------------------------------------------------------------------------------- 1 | -------------- 2 | CHANGE LOG 3 | -------------- 4 | 5 | Version 0.5: 6 | * PRE-RELEASE, DO NOT USE (yet). 7 | 8 | -------------------------------------------------------------------------------- /src/codecs/nakamichi/nakamichi.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | typedef int64_t nssize_t; 5 | #define MAX_NSIZE 2147483647L 6 | 7 | //////////// 8 | // ERRROS // 9 | //////////// 10 | 11 | #define N_STREAM_ERROR ((nssize_t)(-1ULL)) 12 | #define N_BUFFER_TOO_SMALL ((nssize_t)(-2ULL)) 13 | #define N_OUT_OF_MEMORY ((nssize_t)(-3ULL)) 14 | #define N_INVALID_ARGUMENT ((nssize_t)(-4ULL)) 15 | #define N_GENERIC_ERROR ((nssize_t)(-5ULL)) 16 | 17 | #define N_ERROR(code) ((code) < 0) 18 | 19 | nssize_t DecompressM(const void * _in, nssize_t in_size, void * _out, nssize_t out_size); 20 | nssize_t CompressM (const void * _in, nssize_t in_size, void * _out, nssize_t out_size); -------------------------------------------------------------------------------- /src/codecs/quicklzzip.h: -------------------------------------------------------------------------------- 1 | void new_zip(void); 2 | unsigned int add_file(char *filename); 3 | unsigned int add_data(char *source, char *destination, unsigned int size, unsigned int eof); 4 | unsigned int end_file(char *destination); 5 | unsigned int end_zip(char *destination); 6 | 7 | unsigned int qlz_deflate(unsigned char *source, unsigned char *destination, unsigned int bitoffset, unsigned int size, unsigned int last); 8 | -------------------------------------------------------------------------------- /src/codecs/scz_compress/scz.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _SCZ_HPP_Jp07BDFISjuay96H 2 | #define _SCZ_HPP_Jp07BDFISjuay96H 3 | 4 | #include "abstractCodecs.hpp" 5 | #include "codecs.hpp" 6 | 7 | struct Scz : CodecWithIntModes 8 | { 9 | Scz(): 10 | CodecWithIntModes("scz", _SCZ_VERSION, compress, decompress, 64, 16777214, "16777214") 11 | {} 12 | static size_t compress (char * in, size_t isize, char * out, size_t osize, void * mode); 13 | static size_t decompress(char * in, size_t isize, char * out, size_t osize, void * mode); 14 | virtual void cleanup(); 15 | 16 | }; 17 | 18 | #endif // _SCZ_HPP_Jp07BDFISjuay96H 19 | -------------------------------------------------------------------------------- /src/codecs/siphash/siphash.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * siphash24.hpp 3 | * 4 | * Created on: 16 Dec 2012 5 | * Author: m 6 | */ 7 | 8 | #ifndef SIPHASH24_H_o9H7gs 9 | #define SIPHASH24_H_o9H7gs 10 | 11 | namespace FsBenchSipHash 12 | { 13 | extern "C" 14 | { 15 | int crypto_auth( unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned char *k ); 16 | } 17 | } 18 | 19 | #endif /* SIPHASH24_H_o9H7gs */ 20 | -------------------------------------------------------------------------------- /src/codecs/tinf/bin/tgunzip.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tinf/bin/tgunzip.exe -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.dj2: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## DJGPP makefile 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | ## http://www.ibsensoftware.com/ 10 | ## 11 | 12 | target = tgunzip.exe 13 | objects = tgunzip.o 14 | libs = ../../lib/libtinf.a 15 | 16 | cflags = -s -Wall -Os -fomit-frame-pointer -I../../src 17 | ldflags = $(cflags) 18 | 19 | .PHONY: all clean 20 | 21 | all: $(target) 22 | 23 | $(target): $(objects) 24 | gcc $(ldflags) -o $@ $^ $(libs) 25 | 26 | %.o : %.c 27 | gcc $(cflags) -o $@ -c $< 28 | 29 | clean: 30 | $(RM) $(objects) $(target) 31 | -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.dmc: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## Digital Mars C/C++ makefile (GNU Make) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | ## http://www.ibsensoftware.com/ 10 | ## 11 | 12 | target = tgunzip.exe 13 | objects = tgunzip.obj 14 | libs = ..\..\lib\tinf.lib 15 | temps = tgunzip.map 16 | 17 | cflags = -s -mn -o+all -I..\..\src 18 | ldflags = $(cflags) 19 | 20 | .PHONY: all clean 21 | 22 | all: $(target) 23 | 24 | $(target): $(objects) 25 | dmc $(ldflags) -o$@ $^ $(libs) 26 | 27 | %.obj : %.c 28 | dmc $(cflags) -c $< 29 | 30 | clean: 31 | $(RM) $(objects) $(target) $(temps) 32 | -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.elf: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## GCC makefile (Linux, FreeBSD, BeOS and QNX) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | ## http://www.ibsensoftware.com/ 10 | ## 11 | 12 | target = tgunzip 13 | objects = tgunzip.o 14 | libs = ../../lib/libtinf.a 15 | 16 | cflags = -s -Wall -Os -I../../src 17 | ldflags = $(cflags) 18 | 19 | .PHONY: all clean 20 | 21 | all: $(target) 22 | 23 | $(target): $(objects) 24 | gcc $(ldflags) -o $@ $^ $(libs) 25 | 26 | %.o : %.c 27 | gcc $(cflags) -c $< 28 | 29 | clean: 30 | $(RM) $(objects) $(target) 31 | -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.mgw: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## MinGW / Cygwin makefile 5 | ## 6 | ## Copyright (c) 1998-2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | 10 | target = tgunzip.exe 11 | objects = tgunzip.o 12 | libs = ../../lib/libtinf.a 13 | 14 | cflags = -s -Wall -Os -fomit-frame-pointer -I../../src 15 | ldflags = $(cflags) 16 | 17 | .PHONY: all clean 18 | 19 | all: $(target) 20 | 21 | $(target): $(objects) 22 | gcc $(ldflags) -o $@ $^ $(libs) 23 | 24 | %.o : %.c 25 | gcc $(cflags) -o $@ -c $< 26 | 27 | clean: 28 | $(RM) $(target) $(objects) 29 | -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.vc: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## Visual C/C++ makefile (GNU Make) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | 10 | target = tgunzip.exe 11 | objects = tgunzip.obj 12 | libs = ../../lib/tinf.lib 13 | 14 | cflags = /nologo /W3 /O1 /G6 /W3 /Gy /GF /I..\..\src 15 | ldflags = /nologo /release /opt:ref /opt:icf 16 | 17 | .PHONY: all clean 18 | 19 | all: $(target) 20 | 21 | $(target): $(objects) 22 | link $(ldflags) /out:$@ $^ $(libs) 23 | 24 | %.obj : %.c 25 | cl $(cflags) -c $< 26 | 27 | clean: 28 | $(RM) $(target) $(objects) 29 | -------------------------------------------------------------------------------- /src/codecs/tinf/examples/tgunzip/makefile.wat: -------------------------------------------------------------------------------- 1 | ## 2 | ## tgunzip - gzip decompressor example 3 | ## 4 | ## Watcom / OpenWatcom C/C++ makefile (GNU Make) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | ## http://www.ibsensoftware.com/ 10 | ## 11 | 12 | target = tgunzip.exe 13 | objects = tgunzip.obj 14 | libs = ../../lib/tinf.lib 15 | system = nt 16 | 17 | cflags = -bt=$(system) -d0 -ox -I..\..\src 18 | ldflags = system $(system) 19 | 20 | .PHONY: all clean 21 | 22 | all: $(target) 23 | 24 | $(target): $(objects) 25 | wlink $(ldflags) name $@ file {$^} library {$(libs)} 26 | 27 | %.obj : %.c 28 | wcc386 $(cflags) $< 29 | 30 | clean: 31 | $(RM) $(objects) $(target) 32 | -------------------------------------------------------------------------------- /src/codecs/tinf/lib/empty.dir: -------------------------------------------------------------------------------- 1 | --- empty dir --- -------------------------------------------------------------------------------- /src/codecs/tinf/src/makefile.dmc: -------------------------------------------------------------------------------- 1 | ## 2 | ## tinflib - tiny inflate library (inflate, gzip, zlib) 3 | ## 4 | ## Digital Mars C/C++ makefile (GNU Make) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | ## http://www.ibsensoftware.com/ 10 | ## 11 | 12 | target = ..\lib\tinf.lib 13 | objects = tinflate.obj tinfgzip.obj tinfzlib.obj adler32.obj crc32.obj 14 | 15 | cflags = -s -mn -o+all 16 | 17 | .PHONY: all clean 18 | 19 | all: $(target) 20 | 21 | $(target): $(objects) 22 | $(RM) $@ 23 | lib -c $@ $^ 24 | 25 | %.obj : %.c 26 | dmc $(cflags) -c $< 27 | 28 | %.obj : %.nas 29 | nasm -o $@ -f obj -D_OBJ_ -O3 $< 30 | 31 | clean: 32 | $(RM) $(objects) $(target) $(temps) 33 | -------------------------------------------------------------------------------- /src/codecs/tinf/src/makefile.mgw: -------------------------------------------------------------------------------- 1 | ## 2 | ## tinflib - tiny inflate library (inflate, gzip, zlib) 3 | ## 4 | ## MinGW / Cygwin makefile 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | 10 | target = ../lib/libtinf.a 11 | objects = tinflate.o tinfgzip.o tinfzlib.o adler32.o crc32.o 12 | 13 | cflags = -s -Wall -Os -fomit-frame-pointer 14 | 15 | .PHONY: all clean 16 | 17 | all: $(target) 18 | 19 | $(target): $(objects) 20 | $(RM) $@ 21 | ar -frsv $@ $^ 22 | ranlib $@ 23 | 24 | %.o : %.c 25 | gcc $(cflags) -o $@ -c $< 26 | 27 | %.o : %.nas 28 | nasm -o $@ -f win32 -O3 -Inasm/ $< 29 | 30 | clean: 31 | $(RM) $(target) $(objects) 32 | -------------------------------------------------------------------------------- /src/codecs/tinf/src/makefile.vc: -------------------------------------------------------------------------------- 1 | ## 2 | ## tinflib - tiny inflate library (inflate, gzip, zlib) 3 | ## 4 | ## Visual C++ Makefile (GNU Make) 5 | ## 6 | ## Copyright (c) 2003 by Joergen Ibsen / Jibz 7 | ## All Rights Reserved 8 | ## 9 | 10 | target = ../lib/tinf.lib 11 | objects = tinflate.obj tinfgzip.obj tinfzlib.obj adler32.obj crc32.obj 12 | 13 | cflags = /nologo /W3 /O1 /G6 /W3 /Gy /GF 14 | 15 | .PHONY: all clean 16 | 17 | all: $(target) 18 | 19 | $(target): $(objects) 20 | $(RM) $@ 21 | lib /OUT:$@ $^ 22 | 23 | %.obj : %.c 24 | cl $(cflags) -c $< 25 | 26 | %.obj : %.nas 27 | nasm -o $@ -f win32 -O3 -Inasm/ $< 28 | 29 | clean: 30 | $(RM) $(target) $(objects) 31 | -------------------------------------------------------------------------------- /src/codecs/tinf/tinf.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "tinf.hpp" 3 | 4 | extern "C" 5 | { 6 | #include "tinf.h" 7 | } 8 | 9 | namespace FsBenchTinf 10 | { 11 | 12 | size_t inflate(char * in, size_t isize, char * out, size_t osize, void *) 13 | { 14 | tinf_init();//FIXME: Do init() only once 15 | unsigned int _osize = (unsigned int)osize; 16 | int ret = tinf_uncompress(out, & _osize, in, isize); 17 | if(ret != TINF_OK) 18 | return CODING_ERROR; 19 | return _osize; 20 | } 21 | 22 | } // FsBenchTinf -------------------------------------------------------------------------------- /src/codecs/tinf/tinf.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _TINF_HPP_Jp07BDFISjuay96H 2 | #define _TINF_HPP_Jp07BDFISjuay96H 3 | 4 | #include "codecs.hpp" 5 | 6 | namespace FsBenchTinf 7 | { 8 | 9 | size_t inflate(char * in, size_t isize, char * out, size_t osize, void *); 10 | 11 | } //FsBenchTinf 12 | 13 | 14 | #endif // _TINF_HPP_Jp07BDFISjuay96H -------------------------------------------------------------------------------- /src/codecs/tornado/Common.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/Common.cpp -------------------------------------------------------------------------------- /src/codecs/tornado/Common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/Common.h -------------------------------------------------------------------------------- /src/codecs/tornado/Compression.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/Compression.h -------------------------------------------------------------------------------- /src/codecs/tornado/DataTables.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/DataTables.cpp -------------------------------------------------------------------------------- /src/codecs/tornado/EntropyCoder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/EntropyCoder.cpp -------------------------------------------------------------------------------- /src/codecs/tornado/Tornado.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/tornado/Tornado.cpp -------------------------------------------------------------------------------- /src/codecs/tornado/license.txt: -------------------------------------------------------------------------------- 1 | This code is provided on the GPL license. 2 | If you need a commercial license to use the code, please write to Bulat.Ziganshin@gmail.com 3 | -------------------------------------------------------------------------------- /src/codecs/tornado/tor_test.h: -------------------------------------------------------------------------------- 1 | #ifndef TOR_TEST_H_p9U8Nb 2 | #define TOR_TEST_H_p9U8Nb 3 | 4 | #if __cplusplus >= 201103L // C++ 2011 5 | #include 6 | #else 7 | extern "C" 8 | { 9 | #include 10 | } 11 | #endif // C++ 2011 12 | 13 | uint32_t tor_compress(uint8_t method, uint8_t* inbuf, uint8_t* outbuf, uint32_t size); 14 | uint32_t tor_decompress(uint8_t* inbuf, uint8_t* outbuf, uint32_t size); 15 | 16 | #endif // TOR_TEST_H_p9U8Nb -------------------------------------------------------------------------------- /src/codecs/z3lib/fsbench_z3lib.hpp: -------------------------------------------------------------------------------- 1 | #ifndef FSBENCH_Z3LIB_HPP_kfaj0KI6g 2 | #define FSBENCH_Z3LIB_HPP_kfaj0KI6g 3 | 4 | extern "C" 5 | { 6 | #include "z3lib.h" 7 | #include "z3blib.h" 8 | #include "z3dlib.h" 9 | } 10 | 11 | #include 12 | 13 | namespace FsBenchZ3Lib 14 | { 15 | 16 | const size_t mem_size = std::max(Z3DD_MEMSIZE, Z3DE_MEMSIZE_MIN); 17 | 18 | size_t z3lib_c(char * in, size_t isize, char * out, size_t osize, void * memory); 19 | size_t z3lib_d(char * in, size_t isize, char * out, size_t osize, void * memory); 20 | 21 | } 22 | 23 | 24 | #endif // FSBENCH_Z3LIB_HPP_kfaj0KI6g -------------------------------------------------------------------------------- /src/codecs/zfs/zfs.h: -------------------------------------------------------------------------------- 1 | #ifndef ZFS_H_dyUG8 2 | #define ZFS_H_dyUG8 3 | 4 | #include 5 | #include 6 | 7 | #define uchar_t unsigned char 8 | 9 | 10 | size_t lzjb_compress2010(uchar_t *s_start, uchar_t *d_start, size_t s_len, size_t d_len, int n); 11 | size_t lzjb_decompress2010(uchar_t *s_start, uchar_t *d_start, size_t s_len, size_t d_len, int n); 12 | 13 | void fletcher_2_native (const void *buf, uint64_t size, uint64_t *zcp); 14 | void fletcher_2_byteswap(const void *buf, uint64_t size, uint64_t *zcp); 15 | void fletcher_4_native (const void *buf, uint64_t size, uint64_t *zcp); 16 | void fletcher_4_byteswap(const void *buf, uint64_t size, uint64_t *zcp); 17 | 18 | #endif //LZJB2010_H_dyUG8 19 | -------------------------------------------------------------------------------- /src/codecs/zlib-intel/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /src/codecs/zlib-intel/x86.h: -------------------------------------------------------------------------------- 1 | /* cpu.h -- check for CPU features 2 | * Copyright (C) 2013 Intel Corporation Jim Kukunas 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #ifndef CPU_H 7 | #define CPU_H 8 | 9 | extern int x86_cpu_has_sse2; 10 | extern int x86_cpu_has_sse42; 11 | extern int x86_cpu_has_pclmulqdq; 12 | 13 | void x86_check_features(void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/codecs/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /src/codecs/zling/fsbench_zling.hpp: -------------------------------------------------------------------------------- 1 | #ifndef FSBENCH_ZLING_HPP_ 2 | #define FSBENCH_ZLING_HPP_ 3 | 4 | #include 5 | 6 | 7 | namespace FsBenchZling 8 | { 9 | 10 | size_t zling_c(char * in, size_t isize, char * out, size_t osize, void * _); 11 | size_t zling_d(char * in, size_t isize, char * out, size_t osize, void * _); 12 | 13 | } 14 | 15 | 16 | #endif /* FSBENCH_ZLING_HPP_ */ 17 | -------------------------------------------------------------------------------- /src/codecs/zling/msinttypes/changelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g1mv/fsbench-density/cb719fdb07354e0c39a255d8d12f3cbd50b44406/src/codecs/zling/msinttypes/changelog.txt -------------------------------------------------------------------------------- /src/codecs/zling/ztable_matchidx_base.inc: -------------------------------------------------------------------------------- 1 | 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192, 2 | 256, 384, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 3 | -------------------------------------------------------------------------------- /src/codecs/zling/ztable_matchidx_blen.inc: -------------------------------------------------------------------------------- 1 | 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 2 | 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3 | -------------------------------------------------------------------------------- /src/misc.hpp: -------------------------------------------------------------------------------- 1 | #ifndef __FSBENCH_COMMON_HPP_AJNDF87k 2 | 3 | #define __FSBENCH_COMMON_HPP_AJNDF87k 4 | #define UNUSED(p) (void)(p) 5 | #define ARRAY_ELEMS(arr) (sizeof(arr) / sizeof((arr)[0])) 6 | 7 | #define STRIGIFY(x) #x 8 | 9 | 10 | #define __STDC_CONSTANT_MACROS 11 | #define __STDC_LIMIT_MACROS 12 | 13 | #if __cplusplus >= 201103L // C++ 2011 14 | #include 15 | #include 16 | #else 17 | extern "C" 18 | { 19 | #include 20 | #include 21 | } 22 | #endif // C++ 2011 23 | 24 | #endif 25 | --------------------------------------------------------------------------------