options.cpp 566 B

12345678910111213141516171819202122232425262728293031
  1. #include "rar.hpp"
  2. RAROptions::RAROptions()
  3. {
  4. Init();
  5. }
  6. RAROptions::~RAROptions()
  7. {
  8. // It is important for security reasons, so we do not have the unnecessary
  9. // password data left in memory.
  10. memset(this,0,sizeof(RAROptions));
  11. }
  12. void RAROptions::Init()
  13. {
  14. memset(this,0,sizeof(RAROptions));
  15. WinSize=0x400000;
  16. Overwrite=OVERWRITE_DEFAULT;
  17. Method=3;
  18. MsgStream=MSG_STDOUT;
  19. ConvertNames=NAMES_ORIGINALCASE;
  20. ProcessEA=true;
  21. xmtime=EXTTIME_HIGH3;
  22. CurVolNum=0;
  23. FileSizeLess=INT64NDF;
  24. FileSizeMore=INT64NDF;
  25. }