mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-12 20:11:34 -06:00
23.01
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// LzhDecoder.h
|
||||
|
||||
#ifndef __COMPRESS_LZH_DECODER_H
|
||||
#define __COMPRESS_LZH_DECODER_H
|
||||
#ifndef ZIP7_INC_COMPRESS_LZH_DECODER_H
|
||||
#define ZIP7_INC_COMPRESS_LZH_DECODER_H
|
||||
|
||||
#include "../../Common/MyCom.h"
|
||||
|
||||
@@ -26,10 +26,10 @@ const unsigned NT = (NUM_CODE_BITS + 3);
|
||||
const unsigned NP = (NUM_DIC_BITS_MAX + 1);
|
||||
const unsigned NPT = NP; // Max(NT, NP)
|
||||
|
||||
class CCoder:
|
||||
public ICompressCoder,
|
||||
public CMyUnknownImp
|
||||
{
|
||||
Z7_CLASS_IMP_NOQIB_1(
|
||||
CCoder
|
||||
, ICompressCoder
|
||||
)
|
||||
CLzOutWindow _outWindow;
|
||||
NBitm::CDecoder<CInBuffer> _inBitStream;
|
||||
|
||||
@@ -54,14 +54,9 @@ class CCoder:
|
||||
|
||||
HRESULT CodeReal(UInt64 outSize, ICompressProgressInfo *progress);
|
||||
public:
|
||||
MY_UNKNOWN_IMP
|
||||
|
||||
UInt32 DictSize;
|
||||
bool FinishMode;
|
||||
|
||||
STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
|
||||
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
|
||||
|
||||
void SetDictSize(unsigned dictSize) { DictSize = dictSize; }
|
||||
|
||||
CCoder(): DictSize(1 << 16), FinishMode(false) {}
|
||||
|
||||
Reference in New Issue
Block a user