summaryrefslogtreecommitdiffstats
path: root/qtools/qfile_win32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qfile_win32.cpp')
-rw-r--r--qtools/qfile_win32.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qtools/qfile_win32.cpp b/qtools/qfile_win32.cpp
index 83c8c8d..0cc91de 100644
--- a/qtools/qfile_win32.cpp
+++ b/qtools/qfile_win32.cpp
@@ -602,6 +602,19 @@ int64 QFile::pos() const
return -1;
}
+int64 QFile::toEnd()
+{
+ if (isOpen())
+ {
+ // TODO: support 64 bit size
+ if (fseek( fh, 0, SEEK_END )!=-1)
+ {
+ return ftell( fh );
+ }
+ }
+ return -1;
+}
+
bool QFile::seek( int64 pos )
{
if (isOpen())