mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 02:07:06 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
18
CPP/7zip/Compress/DeflateEncoder.h
Executable file → Normal file
18
CPP/7zip/Compress/DeflateEncoder.h
Executable file → Normal file
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "../../../C/LzFind.h"
|
||||
|
||||
#include "Common/MyCom.h"
|
||||
#include "../../Common/MyCom.h"
|
||||
|
||||
#include "../ICoder.h"
|
||||
|
||||
@@ -49,7 +49,7 @@ struct CTables: public CLevels
|
||||
typedef struct _CSeqInStream
|
||||
{
|
||||
ISeqInStream SeqInStream;
|
||||
CMyComPtr<ISequentialInStream> RealStream;
|
||||
ISequentialInStream *RealStream;
|
||||
} CSeqInStream;
|
||||
|
||||
struct CEncProps
|
||||
@@ -165,20 +165,6 @@ public:
|
||||
|
||||
void WriteBlockData(bool writeMode, bool finalBlock);
|
||||
|
||||
void ReleaseStreams()
|
||||
{
|
||||
_seqInStream.RealStream.Release();
|
||||
m_OutStream.ReleaseStream();
|
||||
}
|
||||
class CCoderReleaser
|
||||
{
|
||||
CCoder *m_Coder;
|
||||
public:
|
||||
CCoderReleaser(CCoder *coder): m_Coder(coder) {}
|
||||
~CCoderReleaser() { m_Coder->ReleaseStreams(); }
|
||||
};
|
||||
friend class CCoderReleaser;
|
||||
|
||||
UInt32 GetBlockPrice(int tableIndex, int numDivPasses);
|
||||
void CodeBlock(int tableIndex, bool finalBlock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user