"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "rdwrfn.hpp" between
unrarsrc-6.1.2.tar.gz and unrarsrc-6.1.3.tar.gz

About: unrar extracts, views and tests the contents of archives created with the RAR archiver.

rdwrfn.hpp  (unrarsrc-6.1.2):rdwrfn.hpp  (unrarsrc-6.1.3)
#ifndef _RAR_DATAIO_ #ifndef _RAR_DATAIO_
#define _RAR_DATAIO_ #define _RAR_DATAIO_
class Archive;
class CmdAdd; class CmdAdd;
class Unpack; class Unpack;
class ArcFileSearch; class ArcFileSearch;
#if 0 #if 0
// We use external i/o calls for Benchmark command. // We use external i/o calls for Benchmark command.
#define COMPRDATAIO_EXTIO #define COMPRDATAIO_EXTIO
#endif #endif
class ComprDataIO class ComprDataIO
skipping to change at line 31 skipping to change at line 32
byte *UnpackFromMemoryAddr; byte *UnpackFromMemoryAddr;
bool UnpackToMemory; bool UnpackToMemory;
size_t UnpackToMemorySize; size_t UnpackToMemorySize;
byte *UnpackToMemoryAddr; byte *UnpackToMemoryAddr;
size_t UnpWrSize; size_t UnpWrSize;
byte *UnpWrAddr; byte *UnpWrAddr;
int64 UnpPackedSize; int64 UnpPackedSize;
int64 UnpPackedLeft;
bool ShowProgress; bool ShowProgress;
bool TestMode; bool TestMode;
bool SkipUnpCRC; bool SkipUnpCRC;
bool NoFileHeader; bool NoFileHeader;
File *SrcFile; File *SrcFile;
File *DestFile; File *DestFile;
CmdAdd *Command; CmdAdd *Command;
skipping to change at line 62 skipping to change at line 64
wchar CurrentCommand; wchar CurrentCommand;
public: public:
ComprDataIO(); ComprDataIO();
~ComprDataIO(); ~ComprDataIO();
void Init(); void Init();
int UnpRead(byte *Addr,size_t Count); int UnpRead(byte *Addr,size_t Count);
void UnpWrite(byte *Addr,size_t Count); void UnpWrite(byte *Addr,size_t Count);
void EnableShowProgress(bool Show) {ShowProgress=Show;} void EnableShowProgress(bool Show) {ShowProgress=Show;}
void GetUnpackedData(byte **Data,size_t *Size); void GetUnpackedData(byte **Data,size_t *Size);
void SetPackedSizeToRead(int64 Size) {UnpPackedSize=Size;} void SetPackedSizeToRead(int64 Size) {UnpPackedSize=UnpPackedLeft=Size;}
void SetTestMode(bool Mode) {TestMode=Mode;} void SetTestMode(bool Mode) {TestMode=Mode;}
void SetSkipUnpCRC(bool Skip) {SkipUnpCRC=Skip;} void SetSkipUnpCRC(bool Skip) {SkipUnpCRC=Skip;}
void SetNoFileHeader(bool Mode) {NoFileHeader=Mode;} void SetNoFileHeader(bool Mode) {NoFileHeader=Mode;}
void SetFiles(File *SrcFile,File *DestFile); void SetFiles(File *SrcFile,File *DestFile);
void SetCommand(CmdAdd *Cmd) {Command=Cmd;} void SetCommand(CmdAdd *Cmd) {Command=Cmd;}
void SetSubHeader(FileHeader *hd,int64 *Pos) {SubHead=hd;SubHeadPos=Pos;} void SetSubHeader(FileHeader *hd,int64 *Pos) {SubHead=hd;SubHeadPos=Pos;}
void SetEncryption(bool Encrypt,CRYPT_METHOD Method,SecPassword *Password, void SetEncryption(bool Encrypt,CRYPT_METHOD Method,SecPassword *Password,
const byte *Salt,const byte *InitV,uint Lg2Cnt,byte *HashKey,byte *PswC heck); const byte *Salt,const byte *InitV,uint Lg2Cnt,byte *HashKey,byte *PswC heck);
void SetAV15Encryption(); void SetAV15Encryption();
void SetCmt13Encryption(); void SetCmt13Encryption();
void SetUnpackToMemory(byte *Addr,uint Size); void SetUnpackToMemory(byte *Addr,uint Size);
void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;} void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;}
void AdjustTotalArcSize(Archive *Arc);
bool PackVolume; bool PackVolume;
bool UnpVolume; bool UnpVolume;
bool NextVolumeMissing; bool NextVolumeMissing;
int64 UnpArcSize;
int64 CurPackRead,CurPackWrite,CurUnpRead,CurUnpWrite; int64 CurPackRead,CurPackWrite,CurUnpRead,CurUnpWrite;
// Size of already processed archives. // Size of already processed archives.
// Used to calculate the total operation progress. // Used to calculate the total operation progress.
int64 ProcessedArcSize; int64 ProcessedArcSize;
// Last extracted archive size up to QO or RR block.
int64 LastArcSize;
int64 TotalArcSize; int64 TotalArcSize;
DataHash PackedDataHash; // Packed write and unpack read hash. DataHash PackedDataHash; // Packed write and unpack read hash.
DataHash PackHash; // Pack read hash. DataHash PackHash; // Pack read hash.
DataHash UnpHash; // Unpack write hash. DataHash UnpHash; // Unpack write hash.
bool Encryption; bool Encryption;
bool Decryption; bool Decryption;
}; };
 End of changes. 6 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)