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.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/qtools/qfile_win32.cpp b/qtools/qfile_win32.cpp
index 39b1fa5..83c8c8d 100644
--- a/qtools/qfile_win32.cpp
+++ b/qtools/qfile_win32.cpp
@@ -591,3 +591,26 @@ void QFile::close()
return;
}
+
+int64 QFile::pos() const
+{
+ if (isOpen())
+ {
+ // TODO: support 64 bit size
+ return ftell( fh );
+ }
+ return -1;
+}
+
+bool QFile::seek( int64 pos )
+{
+ if (isOpen())
+ {
+ // TODO: support 64 bit size
+ return fseek( fh, pos, SEEK_SET )!=-1;
+ }
+ return FALSE;
+}
+
+
+