shrinkdecoder.h

来自「7-Zip 是一款号称有着现今最高压缩比的压缩软件」· C头文件 代码 · 共 40 行

H
40
字号
// ShrinkDecoder.h

#ifndef __SHRINK_DECODER_H
#define __SHRINK_DECODER_H

#include "../../../Common/MyCom.h"

#include "../../ICoder.h"

namespace NCompress {
namespace NShrink {

const int kNumMaxBits = 13;
const UInt32 kNumItems = 1 << kNumMaxBits;

class CDecoder :
  public ICompressCoder,
  public CMyUnknownImp
{
  UInt16 _parents[kNumItems];
  Byte _suffixes[kNumItems];
  Byte _stack[kNumItems];
  bool _isFree[kNumItems];
  bool _isParent[kNumItems];
public:
  MY_UNKNOWN_IMP

  STDMETHOD(CodeReal)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
      const UInt64 *inSize, const UInt64 *outSize,
      ICompressProgressInfo *progress);
  
  STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
      const UInt64 *inSize, const UInt64 *outSize,
      ICompressProgressInfo *progress);
};

}}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?