Added InputStream::EndOfStream()
Former-commit-id: d8618fbb677a73cb6890d913af66adb22e6c2a39
This commit is contained in:
@@ -59,6 +59,7 @@ class NAZARA_API NzFile : public NzHashable, public NzInputStream, NzNonCopyable
|
|||||||
bool Delete();
|
bool Delete();
|
||||||
|
|
||||||
bool EndOfFile() const;
|
bool EndOfFile() const;
|
||||||
|
bool EndOfStream() const;
|
||||||
|
|
||||||
bool Exists() const;
|
bool Exists() const;
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ class NzInputStream
|
|||||||
public:
|
public:
|
||||||
virtual ~NzInputStream();
|
virtual ~NzInputStream();
|
||||||
|
|
||||||
|
virtual bool EndOfStream() const = 0;
|
||||||
|
|
||||||
virtual nzUInt64 GetCursorPos() const = 0;
|
virtual nzUInt64 GetCursorPos() const = 0;
|
||||||
virtual nzUInt64 GetSize() const = 0;
|
virtual nzUInt64 GetSize() const = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,11 @@ bool NzFile::EndOfFile() const
|
|||||||
return m_impl->EndOfFile();
|
return m_impl->EndOfFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool NzFile::EndOfStream() const;
|
||||||
|
{
|
||||||
|
return EndOfFile();
|
||||||
|
}
|
||||||
|
|
||||||
bool NzFile::Exists() const
|
bool NzFile::Exists() const
|
||||||
{
|
{
|
||||||
NazaraLock(m_mutex)
|
NazaraLock(m_mutex)
|
||||||
|
|||||||
Reference in New Issue
Block a user