mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 20:07:04 -06:00
4.44 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
804edc5756
commit
d9666cf046
47
CPP/7zip/Archive/Nsis/NsisDecode.h
Executable file
47
CPP/7zip/Archive/Nsis/NsisDecode.h
Executable file
@@ -0,0 +1,47 @@
|
||||
// NsisDecode.h
|
||||
|
||||
#ifndef __NSIS_DECODE_H
|
||||
#define __NSIS_DECODE_H
|
||||
|
||||
#include "../../IStream.h"
|
||||
|
||||
#include "../Common/CoderLoader.h"
|
||||
|
||||
namespace NArchive {
|
||||
namespace NNsis {
|
||||
|
||||
namespace NMethodType
|
||||
{
|
||||
enum EEnum
|
||||
{
|
||||
kCopy,
|
||||
kDeflate,
|
||||
kBZip2,
|
||||
kLZMA
|
||||
};
|
||||
}
|
||||
|
||||
class CDecoder
|
||||
{
|
||||
NMethodType::EEnum _method;
|
||||
CCoderLibraries _libraries;
|
||||
|
||||
CMyComPtr<ISequentialInStream> _filterInStream;
|
||||
CMyComPtr<ISequentialInStream> _codecInStream;
|
||||
CMyComPtr<ISequentialInStream> _decoderInStream;
|
||||
|
||||
public:
|
||||
CDecoder();
|
||||
void Release()
|
||||
{
|
||||
_filterInStream.Release();
|
||||
_codecInStream.Release();
|
||||
_decoderInStream.Release();
|
||||
}
|
||||
HRESULT Init(IInStream *inStream, NMethodType::EEnum method, bool thereIsFilterFlag, bool &useFilter);
|
||||
HRESULT Read(void *data, UInt32 size, UInt32 *processedSize);
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user