mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-24 07:54:39 +00:00
rar: import unrarsrc-5.5.8 for reference
this will allow us to diff against newer version of unrarsrc if we wish to update our port
This commit is contained in:
35
reference/unrar/options.cpp
Normal file
35
reference/unrar/options.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "rar.hpp"
|
||||
|
||||
RAROptions::RAROptions()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
|
||||
RAROptions::~RAROptions()
|
||||
{
|
||||
// It is important for security reasons, so we do not have the unnecessary
|
||||
// password data left in memory.
|
||||
memset(this,0,sizeof(RAROptions));
|
||||
}
|
||||
|
||||
|
||||
void RAROptions::Init()
|
||||
{
|
||||
memset(this,0,sizeof(RAROptions));
|
||||
WinSize=0x2000000;
|
||||
Overwrite=OVERWRITE_DEFAULT;
|
||||
Method=3;
|
||||
MsgStream=MSG_STDOUT;
|
||||
ConvertNames=NAMES_ORIGINALCASE;
|
||||
xmtime=EXTTIME_HIGH3;
|
||||
FileSizeLess=INT64NDF;
|
||||
FileSizeMore=INT64NDF;
|
||||
HashType=HASH_CRC32;
|
||||
#ifdef RAR_SMP
|
||||
Threads=GetNumberOfThreads();
|
||||
#endif
|
||||
#ifdef USE_QOPEN
|
||||
QOpenMode=QOPEN_AUTO;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user