mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
this will allow us to diff against newer version of unrarsrc if we wish to update our port
22 lines
293 B
C++
22 lines
293 B
C++
#ifndef _RAR_SAVEPOS_
|
|
#define _RAR_SAVEPOS_
|
|
|
|
class SaveFilePos
|
|
{
|
|
private:
|
|
File *SaveFile;
|
|
int64 SavePos;
|
|
public:
|
|
SaveFilePos(File &Src)
|
|
{
|
|
SaveFile=&Src;
|
|
SavePos=Src.Tell();
|
|
}
|
|
~SaveFilePos()
|
|
{
|
|
SaveFile->Seek(SavePos,SEEK_SET);
|
|
}
|
|
};
|
|
|
|
#endif
|