mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 20:07:05 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -1,7 +1,5 @@
|
||||
// Archive/Cab/LZXi86Converter.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __ARCHIVE_CAB_LZXI86CONVERTER_H
|
||||
#define __ARCHIVE_CAB_LZXI86CONVERTER_H
|
||||
|
||||
@@ -20,27 +18,33 @@ class Ci86TranslationOutStream:
|
||||
{
|
||||
bool m_TranslationMode;
|
||||
CMyComPtr<ISequentialOutStream> m_Stream;
|
||||
UINT32 m_ProcessedSize;
|
||||
BYTE m_Buffer[kUncompressedBlockSize];
|
||||
UINT32 m_Pos;
|
||||
UINT32 m_TranslationSize;
|
||||
UInt32 m_ProcessedSize;
|
||||
Byte m_Buffer[kUncompressedBlockSize];
|
||||
UInt32 m_Pos;
|
||||
UInt32 m_TranslationSize;
|
||||
|
||||
INT32 ConvertAbsoluteToOffset(INT32 aPos, INT32 anAbsoluteValue);
|
||||
void MakeTranslation();
|
||||
public:
|
||||
Ci86TranslationOutStream();
|
||||
~Ci86TranslationOutStream();
|
||||
Ci86TranslationOutStream(): m_Pos(0) {}
|
||||
~Ci86TranslationOutStream() { Flush(); }
|
||||
|
||||
MY_UNKNOWN_IMP
|
||||
|
||||
STDMETHOD(Write)(const void *aData, UINT32 aSize, UINT32 *aProcessedSize);
|
||||
STDMETHOD(WritePart)(const void *aData, UINT32 aSize, UINT32 *aProcessedSize);
|
||||
STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
|
||||
STDMETHOD(WritePart)(const void *data, UInt32 size, UInt32 *processedSize);
|
||||
public:
|
||||
void Init(ISequentialOutStream *aStream, bool aTranslationMode, UINT32 aTranslationSize);
|
||||
void Init(ISequentialOutStream *outStream, bool translationMode, UInt32 translationSize)
|
||||
{
|
||||
m_Stream = outStream;
|
||||
m_TranslationMode = translationMode;
|
||||
m_TranslationSize = translationSize;
|
||||
m_ProcessedSize = 0;
|
||||
m_Pos = 0;
|
||||
}
|
||||
void ReleaseStream() { m_Stream.Release(); }
|
||||
HRESULT Flush();
|
||||
void ReleaseStream();
|
||||
};
|
||||
|
||||
}}}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user