Sign in
chromium
/
chromium
/
src
/
dbe2c1f5cfa496e6d17b2a666e581eae80ba6cb3
/
.
/
third_party
/
unrar
/
src
/
savepos.hpp
blob: df617105cf9b230d87bdad5e7406b61e0571eccd [
file
] [
log
] [
blame
]
#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