unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ComprDataIO Class Reference

#include <rdwrfn.hpp>

Collaboration diagram for ComprDataIO:
[legend]

Public Member Functions

 ComprDataIO ()
 
 ~ComprDataIO ()
 
void Init ()
 
int UnpRead (byte *Addr, size_t Count)
 
void UnpWrite (byte *Addr, size_t Count)
 
void EnableShowProgress (bool Show)
 
void GetUnpackedData (byte **Data, size_t *Size)
 
void SetPackedSizeToRead (int64 Size)
 
void SetTestMode (bool Mode)
 
void SetSkipUnpCRC (bool Skip)
 
void SetNoFileHeader (bool Mode)
 
void SetFiles (File *SrcFile, File *DestFile)
 
void SetCommand (CmdAdd *Cmd)
 
void SetSubHeader (FileHeader *hd, int64 *Pos)
 
void SetEncryption (bool Encrypt, CRYPT_METHOD Method, SecPassword *Password, const byte *Salt, const byte *InitV, uint Lg2Cnt, byte *HashKey, byte *PswCheck)
 
void SetAV15Encryption ()
 
void SetCmt13Encryption ()
 
void SetUnpackToMemory (byte *Addr, uint Size)
 
void SetCurrentCommand (wchar Cmd)
 
void AdjustTotalArcSize (Archive *Arc)
 

Public Attributes

bool PackVolume
 
bool UnpVolume
 
bool NextVolumeMissing
 
int64 CurPackRead
 
int64 CurPackWrite
 
int64 CurUnpRead
 
int64 CurUnpWrite
 
int64 ProcessedArcSize
 
int64 LastArcSize
 
int64 TotalArcSize
 
DataHash PackedDataHash
 
DataHash PackHash
 
DataHash UnpHash
 
bool Encryption
 
bool Decryption
 

Private Member Functions

void ShowUnpRead (int64 ArcPos, int64 ArcSize)
 
void ShowUnpWrite ()
 

Private Attributes

bool UnpackFromMemory
 
size_t UnpackFromMemorySize
 
byteUnpackFromMemoryAddr
 
bool UnpackToMemory
 
size_t UnpackToMemorySize
 
byteUnpackToMemoryAddr
 
size_t UnpWrSize
 
byteUnpWrAddr
 
int64 UnpPackedSize
 
int64 UnpPackedLeft
 
bool ShowProgress
 
bool TestMode
 
bool SkipUnpCRC
 
bool NoFileHeader
 
FileSrcFile
 
FileDestFile
 
CmdAdd * Command
 
FileHeaderSubHead
 
int64SubHeadPos
 
CryptDataCrypt
 
CryptDataDecrypt
 
int LastPercent
 
wchar CurrentCommand
 

Detailed Description

Definition at line 14 of file rdwrfn.hpp.

Constructor & Destructor Documentation

◆ ComprDataIO()

ComprDataIO::ComprDataIO ( )

Definition at line 3 of file rdwrfn.cpp.

References Crypt, Decrypt, and Init().

◆ ~ComprDataIO()

ComprDataIO::~ComprDataIO ( )

Definition at line 45 of file rdwrfn.cpp.

References Crypt, and Decrypt.

Member Function Documentation

◆ AdjustTotalArcSize()

void ComprDataIO::AdjustTotalArcSize ( Archive Arc)

◆ EnableShowProgress()

void ComprDataIO::EnableShowProgress ( bool  Show)
inline

Definition at line 64 of file rdwrfn.hpp.

References ShowProgress.

Referenced by Archive::DoGetComment(), ExtractACL20(), and Archive::ReadSubData().

◆ GetUnpackedData()

void ComprDataIO::GetUnpackedData ( byte **  Data,
size_t *  Size 
)

Definition at line 242 of file rdwrfn.cpp.

References UnpWrAddr, and UnpWrSize.

Referenced by Archive::DoGetComment().

◆ Init()

◆ SetAV15Encryption()

void ComprDataIO::SetAV15Encryption ( )

Definition at line 263 of file rdwrfn.cpp.

References Decrypt, Decryption, and CryptData::SetAV15Encryption().

◆ SetCmt13Encryption()

void ComprDataIO::SetCmt13Encryption ( )

Definition at line 272 of file rdwrfn.cpp.

References Decrypt, Decryption, and CryptData::SetCmt13Encryption().

Referenced by Archive::DoGetComment().

◆ SetCommand()

void ComprDataIO::SetCommand ( CmdAdd *  Cmd)
inline

Definition at line 71 of file rdwrfn.hpp.

References Command.

◆ SetCurrentCommand()

void ComprDataIO::SetCurrentCommand ( wchar  Cmd)
inline

Definition at line 78 of file rdwrfn.hpp.

References CurrentCommand.

Referenced by CmdExtract::DoExtract().

◆ SetEncryption()

void ComprDataIO::SetEncryption ( bool  Encrypt,
CRYPT_METHOD  Method,
SecPassword Password,
const byte Salt,
const byte InitV,
uint  Lg2Cnt,
byte HashKey,
byte PswCheck 
)

◆ SetFiles()

void ComprDataIO::SetFiles ( File SrcFile,
File DestFile 
)

◆ SetNoFileHeader()

void ComprDataIO::SetNoFileHeader ( bool  Mode)
inline

Definition at line 69 of file rdwrfn.hpp.

References NoFileHeader.

Referenced by Archive::DoGetComment().

◆ SetPackedSizeToRead()

void ComprDataIO::SetPackedSizeToRead ( int64  Size)
inline

◆ SetSkipUnpCRC()

void ComprDataIO::SetSkipUnpCRC ( bool  Skip)
inline

Definition at line 68 of file rdwrfn.hpp.

References SkipUnpCRC.

Referenced by CmdExtract::ExtractCurrentFile().

◆ SetSubHeader()

void ComprDataIO::SetSubHeader ( FileHeader hd,
int64 Pos 
)
inline

Definition at line 72 of file rdwrfn.hpp.

References SubHead, and SubHeadPos.

Referenced by Archive::ReadSubData().

◆ SetTestMode()

void ComprDataIO::SetTestMode ( bool  Mode)
inline

Definition at line 67 of file rdwrfn.hpp.

References TestMode.

Referenced by Archive::DoGetComment(), CmdExtract::ExtractCurrentFile(), and Archive::ReadSubData().

◆ SetUnpackToMemory()

void ComprDataIO::SetUnpackToMemory ( byte Addr,
uint  Size 
)

Definition at line 282 of file rdwrfn.cpp.

References UnpackToMemory, UnpackToMemoryAddr, and UnpackToMemorySize.

Referenced by ExtractACL20(), and Archive::ReadSubData().

◆ ShowUnpRead()

void ComprDataIO::ShowUnpRead ( int64  ArcPos,
int64  ArcSize 
)
private

◆ ShowUnpWrite()

void ComprDataIO::ShowUnpWrite ( )
private

Definition at line 219 of file rdwrfn.cpp.

Referenced by UnpWrite().

◆ UnpRead()

◆ UnpWrite()

Member Data Documentation

◆ Command

CmdAdd* ComprDataIO::Command
private

Definition at line 43 of file rdwrfn.hpp.

Referenced by Init(), and SetCommand().

◆ Crypt

CryptData* ComprDataIO::Crypt
private

Definition at line 49 of file rdwrfn.hpp.

Referenced by ComprDataIO(), SetEncryption(), and ~ComprDataIO().

◆ CurPackRead

int64 ComprDataIO::CurPackRead

Definition at line 85 of file rdwrfn.hpp.

Referenced by Init().

◆ CurPackWrite

int64 ComprDataIO::CurPackWrite

Definition at line 85 of file rdwrfn.hpp.

Referenced by Init().

◆ CurrentCommand

wchar ComprDataIO::CurrentCommand
private

Definition at line 56 of file rdwrfn.hpp.

Referenced by Init(), SetCurrentCommand(), and UnpRead().

◆ CurUnpRead

int64 ComprDataIO::CurUnpRead

Definition at line 85 of file rdwrfn.hpp.

Referenced by CmdExtract::ExtractCurrentFile(), Init(), MergeArchive(), and UnpRead().

◆ CurUnpWrite

int64 ComprDataIO::CurUnpWrite

Definition at line 85 of file rdwrfn.hpp.

Referenced by CmdExtract::ExtractCurrentFile(), Init(), ShowUnpRead(), and UnpWrite().

◆ Decrypt

CryptData* ComprDataIO::Decrypt
private

◆ Decryption

bool ComprDataIO::Decryption

Definition at line 102 of file rdwrfn.hpp.

Referenced by Init(), SetAV15Encryption(), SetCmt13Encryption(), SetEncryption(), and UnpRead().

◆ DestFile

File* ComprDataIO::DestFile
private

Definition at line 41 of file rdwrfn.hpp.

Referenced by Init(), SetFiles(), and UnpWrite().

◆ Encryption

bool ComprDataIO::Encryption

Definition at line 101 of file rdwrfn.hpp.

Referenced by Init(), and SetEncryption().

◆ LastArcSize

int64 ComprDataIO::LastArcSize

Definition at line 93 of file rdwrfn.hpp.

Referenced by AdjustTotalArcSize(), CmdExtract::DoExtract(), Init(), and MergeArchive().

◆ LastPercent

int ComprDataIO::LastPercent
private

Definition at line 54 of file rdwrfn.hpp.

Referenced by Init(), SetFiles(), and ShowUnpRead().

◆ NextVolumeMissing

bool ComprDataIO::NextVolumeMissing

Definition at line 84 of file rdwrfn.hpp.

Referenced by CmdExtract::ExtractCurrentFile(), Init(), and UnpRead().

◆ NoFileHeader

bool ComprDataIO::NoFileHeader
private

Definition at line 38 of file rdwrfn.hpp.

Referenced by Init(), SetNoFileHeader(), and UnpRead().

◆ PackedDataHash

DataHash ComprDataIO::PackedDataHash

Definition at line 97 of file rdwrfn.hpp.

Referenced by CmdExtract::ExtractCurrentFile(), MergeArchive(), and UnpRead().

◆ PackHash

DataHash ComprDataIO::PackHash

Definition at line 98 of file rdwrfn.hpp.

◆ PackVolume

bool ComprDataIO::PackVolume

Definition at line 82 of file rdwrfn.hpp.

Referenced by Init().

◆ ProcessedArcSize

int64 ComprDataIO::ProcessedArcSize

Definition at line 90 of file rdwrfn.hpp.

Referenced by CmdExtract::DoExtract(), Init(), MergeArchive(), and ShowUnpRead().

◆ ShowProgress

bool ComprDataIO::ShowProgress
private

Definition at line 35 of file rdwrfn.hpp.

Referenced by EnableShowProgress(), Init(), and ShowUnpRead().

◆ SkipUnpCRC

bool ComprDataIO::SkipUnpCRC
private

Definition at line 37 of file rdwrfn.hpp.

Referenced by Init(), SetSkipUnpCRC(), and UnpWrite().

◆ SrcFile

File* ComprDataIO::SrcFile
private

Definition at line 40 of file rdwrfn.hpp.

Referenced by Init(), SetFiles(), ShowUnpRead(), UnpRead(), and UnpWrite().

◆ SubHead

FileHeader* ComprDataIO::SubHead
private

Definition at line 45 of file rdwrfn.hpp.

Referenced by Init(), SetSubHeader(), and UnpRead().

◆ SubHeadPos

int64* ComprDataIO::SubHeadPos
private

Definition at line 46 of file rdwrfn.hpp.

Referenced by Init(), and SetSubHeader().

◆ TestMode

bool ComprDataIO::TestMode
private

Definition at line 36 of file rdwrfn.hpp.

Referenced by Init(), SetTestMode(), and UnpWrite().

◆ TotalArcSize

int64 ComprDataIO::TotalArcSize

◆ UnpackFromMemory

bool ComprDataIO::UnpackFromMemory
private

Definition at line 21 of file rdwrfn.hpp.

Referenced by Init(), and UnpRead().

◆ UnpackFromMemoryAddr

byte* ComprDataIO::UnpackFromMemoryAddr
private

Definition at line 23 of file rdwrfn.hpp.

Referenced by UnpRead().

◆ UnpackFromMemorySize

size_t ComprDataIO::UnpackFromMemorySize
private

Definition at line 22 of file rdwrfn.hpp.

Referenced by UnpRead().

◆ UnpackToMemory

bool ComprDataIO::UnpackToMemory
private

Definition at line 25 of file rdwrfn.hpp.

Referenced by Init(), SetUnpackToMemory(), and UnpWrite().

◆ UnpackToMemoryAddr

byte* ComprDataIO::UnpackToMemoryAddr
private

Definition at line 27 of file rdwrfn.hpp.

Referenced by SetUnpackToMemory(), and UnpWrite().

◆ UnpackToMemorySize

size_t ComprDataIO::UnpackToMemorySize
private

Definition at line 26 of file rdwrfn.hpp.

Referenced by SetUnpackToMemory(), and UnpWrite().

◆ UnpHash

◆ UnpPackedLeft

int64 ComprDataIO::UnpPackedLeft
private

Definition at line 33 of file rdwrfn.hpp.

Referenced by Init(), SetPackedSizeToRead(), and UnpRead().

◆ UnpPackedSize

int64 ComprDataIO::UnpPackedSize
private

Definition at line 32 of file rdwrfn.hpp.

Referenced by Init(), SetPackedSizeToRead(), and UnpRead().

◆ UnpVolume

bool ComprDataIO::UnpVolume

◆ UnpWrAddr

byte* ComprDataIO::UnpWrAddr
private

Definition at line 30 of file rdwrfn.hpp.

Referenced by GetUnpackedData(), Init(), and UnpWrite().

◆ UnpWrSize

size_t ComprDataIO::UnpWrSize
private

Definition at line 29 of file rdwrfn.hpp.

Referenced by GetUnpackedData(), Init(), and UnpWrite().


The documentation for this class was generated from the following files: