Mercurial > vba-linux
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // ShrinkDecoder.h | |
2 | |
3 #ifndef __COMPRESS_SHRINK_DECODER_H | |
4 #define __COMPRESS_SHRINK_DECODER_H | |
5 | |
6 #include "../../Common/MyCom.h" | |
7 | |
8 #include "../ICoder.h" | |
9 | |
10 namespace NCompress { | |
11 namespace NShrink { | |
12 | |
13 const int kNumMaxBits = 13; | |
14 const UInt32 kNumItems = 1 << kNumMaxBits; | |
15 | |
16 class CDecoder : | |
17 public ICompressCoder, | |
18 public CMyUnknownImp | |
19 { | |
20 UInt16 _parents[kNumItems]; | |
21 Byte _suffixes[kNumItems]; | |
22 Byte _stack[kNumItems]; | |
23 bool _isFree[kNumItems]; | |
24 bool _isParent[kNumItems]; | |
25 | |
26 public: | |
27 MY_UNKNOWN_IMP | |
28 | |
29 HRESULT CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream, | |
30 const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress); | |
31 | |
32 STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream, | |
33 const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress); | |
34 }; | |
35 | |
36 }} | |
37 | |
38 #endif |