"Fossies" - the Fresh Open Source Software Archive

Member "p7zip_16.02/CPP/7zip/Compress/ShrinkDecoder.h" (18 May 2016, 804 Bytes) of package /linux/misc/p7zip_16.02_src_all.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "ShrinkDecoder.h": 15.14.1_src_all_vs_16.02_src_all.

    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 unsigned kNumMaxBits = 13;
   14 const unsigned 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 
   24 public:
   25   MY_UNKNOWN_IMP
   26 
   27   HRESULT CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream,
   28       const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
   29   
   30   STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
   31       const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
   32 };
   33 
   34 }}
   35 
   36 #endif