chromium/third_party/unrar/src/rdwrfn.cpp

#include "rar.hpp"

ComprDataIO::ComprDataIO()
{}


void ComprDataIO::Init()
{}


ComprDataIO::~ComprDataIO()
{}




int ComprDataIO::UnpRead(byte *Addr,size_t Count)
{}


void ComprDataIO::UnpWrite(byte *Addr,size_t Count)
{}






void ComprDataIO::ShowUnpRead(int64 ArcPos,int64 ArcSize)
{}


void ComprDataIO::ShowUnpWrite()
{}










void ComprDataIO::SetFiles(File *SrcFile,File *DestFile)
{}


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


// Return true if encryption or decryption mode is set correctly.
bool ComprDataIO::SetEncryption(bool Encrypt,CRYPT_METHOD Method,
     SecPassword *Password,const byte *Salt,const byte *InitV,
     uint Lg2Cnt,byte *HashKey,byte *PswCheck)
{}


#if !defined(SFX_MODULE) && !defined(RAR_NOCRYPT)
void ComprDataIO::SetCmt13Encryption()
{}
#endif




void ComprDataIO::SetUnpackToMemory(byte *Addr,uint Size)
{}


// Extraction progress is based on the position in archive and we adjust 
// the total archives size here, so trailing blocks do not prevent progress
// reaching 100% at the end of extraction. Alternatively we could print "100%"
// after completing the entire archive extraction, but then we would need
// to take into account possible messages like the checksum error after
// last file percent progress.
void ComprDataIO::AdjustTotalArcSize(Archive *Arc)
{}