mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Made tell() const.
committer: mfx <mfx> 979831609 +0000
This commit is contained in:
parent
94f7d49522
commit
ea4fcebf33
|
@ -181,7 +181,7 @@ void FileBase::seek(off_t off, int whence)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
off_t FileBase::tell()
|
off_t FileBase::tell() const
|
||||||
{
|
{
|
||||||
if (!isOpen())
|
if (!isOpen())
|
||||||
throwIOException("bad tell");
|
throwIOException("bad tell");
|
||||||
|
@ -253,7 +253,7 @@ void InputFile::seek(off_t off, int whence)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
off_t InputFile::tell()
|
off_t InputFile::tell() const
|
||||||
{
|
{
|
||||||
return super::tell();
|
return super::tell();
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ protected:
|
||||||
virtual int readx(void *buf, int len);
|
virtual int readx(void *buf, int len);
|
||||||
virtual void write(const void *buf, int len);
|
virtual void write(const void *buf, int len);
|
||||||
virtual void seek(off_t off, int whence);
|
virtual void seek(off_t off, int whence);
|
||||||
virtual off_t tell();
|
virtual off_t tell() const;
|
||||||
|
|
||||||
int _fd;
|
int _fd;
|
||||||
int _flags;
|
int _flags;
|
||||||
|
@ -93,7 +93,7 @@ public:
|
||||||
virtual int readx(void * buf, int len);
|
virtual int readx(void * buf, int len);
|
||||||
|
|
||||||
virtual void seek(off_t off, int whence);
|
virtual void seek(off_t off, int whence);
|
||||||
virtual off_t tell();
|
virtual off_t tell() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user