Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Archive/7z/7zDecode.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/7z/7zDecode.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,68 @@ 1.4 +// 7zDecode.h 1.5 + 1.6 +#ifndef __7Z_DECODE_H 1.7 +#define __7Z_DECODE_H 1.8 + 1.9 +#include "../../IStream.h" 1.10 +#include "../../IPassword.h" 1.11 + 1.12 +#include "../Common/CoderMixer2.h" 1.13 +#include "../Common/CoderMixer2MT.h" 1.14 +#ifdef _ST_MODE 1.15 +#include "../Common/CoderMixer2ST.h" 1.16 +#endif 1.17 + 1.18 +#include "../../Common/CreateCoder.h" 1.19 + 1.20 +#include "7zItem.h" 1.21 + 1.22 +namespace NArchive { 1.23 +namespace N7z { 1.24 + 1.25 +struct CBindInfoEx: public NCoderMixer::CBindInfo 1.26 +{ 1.27 + CRecordVector<CMethodId> CoderMethodIDs; 1.28 + void Clear() 1.29 + { 1.30 + CBindInfo::Clear(); 1.31 + CoderMethodIDs.Clear(); 1.32 + } 1.33 +}; 1.34 + 1.35 +class CDecoder 1.36 +{ 1.37 + bool _bindInfoExPrevIsDefined; 1.38 + CBindInfoEx _bindInfoExPrev; 1.39 + 1.40 + bool _multiThread; 1.41 + #ifdef _ST_MODE 1.42 + NCoderMixer::CCoderMixer2ST *_mixerCoderSTSpec; 1.43 + #endif 1.44 + NCoderMixer::CCoderMixer2MT *_mixerCoderMTSpec; 1.45 + NCoderMixer::CCoderMixer2 *_mixerCoderCommon; 1.46 + 1.47 + CMyComPtr<ICompressCoder2> _mixerCoder; 1.48 + CObjectVector<CMyComPtr<IUnknown> > _decoders; 1.49 + // CObjectVector<CMyComPtr<ICompressCoder2> > _decoders2; 1.50 +public: 1.51 + CDecoder(bool multiThread); 1.52 + HRESULT Decode( 1.53 + DECL_EXTERNAL_CODECS_LOC_VARS 1.54 + IInStream *inStream, 1.55 + UInt64 startPos, 1.56 + const UInt64 *packSizes, 1.57 + const CFolder &folder, 1.58 + ISequentialOutStream *outStream, 1.59 + ICompressProgressInfo *compressProgress 1.60 + #ifndef _NO_CRYPTO 1.61 + , ICryptoGetTextPassword *getTextPasswordSpec, bool &passwordIsDefined 1.62 + #endif 1.63 + #ifdef COMPRESS_MT 1.64 + , bool mtMode, UInt32 numThreads 1.65 + #endif 1.66 + ); 1.67 +}; 1.68 + 1.69 +}} 1.70 + 1.71 +#endif