mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 08:07:19 -06:00
36 lines
722 B
C++
Executable File
36 lines
722 B
C++
Executable File
// ShrinkDecoder.h
|
|
|
|
#ifndef ZIP7_INC_COMPRESS_SHRINK_DECODER_H
|
|
#define ZIP7_INC_COMPRESS_SHRINK_DECODER_H
|
|
|
|
#include "../../Common/MyCom.h"
|
|
|
|
#include "../ICoder.h"
|
|
|
|
namespace NCompress {
|
|
namespace NShrink {
|
|
|
|
const unsigned kNumMaxBits = 13;
|
|
const unsigned kNumItems = 1 << kNumMaxBits;
|
|
|
|
Z7_CLASS_IMP_NOQIB_3(
|
|
CDecoder
|
|
, ICompressCoder
|
|
, ICompressSetFinishMode
|
|
, ICompressGetInStreamProcessedSize
|
|
)
|
|
bool _fullStreamMode;
|
|
UInt64 _inProcessed;
|
|
|
|
UInt16 _parents[kNumItems];
|
|
Byte _suffixes[kNumItems];
|
|
Byte _stack[kNumItems];
|
|
|
|
HRESULT CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream,
|
|
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
|
|
};
|
|
|
|
}}
|
|
|
|
#endif
|