Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Compress/ShrinkDecoder.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/Compress/ShrinkDecoder.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,38 @@ 1.4 +// ShrinkDecoder.h 1.5 + 1.6 +#ifndef __COMPRESS_SHRINK_DECODER_H 1.7 +#define __COMPRESS_SHRINK_DECODER_H 1.8 + 1.9 +#include "../../Common/MyCom.h" 1.10 + 1.11 +#include "../ICoder.h" 1.12 + 1.13 +namespace NCompress { 1.14 +namespace NShrink { 1.15 + 1.16 +const int kNumMaxBits = 13; 1.17 +const UInt32 kNumItems = 1 << kNumMaxBits; 1.18 + 1.19 +class CDecoder : 1.20 + public ICompressCoder, 1.21 + public CMyUnknownImp 1.22 +{ 1.23 + UInt16 _parents[kNumItems]; 1.24 + Byte _suffixes[kNumItems]; 1.25 + Byte _stack[kNumItems]; 1.26 + bool _isFree[kNumItems]; 1.27 + bool _isParent[kNumItems]; 1.28 + 1.29 +public: 1.30 + MY_UNKNOWN_IMP 1.31 + 1.32 + HRESULT CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream, 1.33 + const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress); 1.34 + 1.35 + STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream, 1.36 + const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress); 1.37 +}; 1.38 + 1.39 +}} 1.40 + 1.41 +#endif