Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2014-03-22 16:36:30 +0400
committerUnderground78 <underground78@users.sourceforge.net>2014-03-24 02:10:44 +0400
commitd2086638c0365ec270a95c95c433ed43faf22721 (patch)
tree8bed0893829d6b8e937c7500c860efb96b95fee5 /src/Subtitles/StdioFile64.h
parentc221ab91869b2b23788a0b813b2082a60f305772 (diff)
Add an implementation of CStdioFile that supports file bigger than 2GB.
Diffstat (limited to 'src/Subtitles/StdioFile64.h')
-rw-r--r--src/Subtitles/StdioFile64.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Subtitles/StdioFile64.h b/src/Subtitles/StdioFile64.h
new file mode 100644
index 000000000..398858413
--- /dev/null
+++ b/src/Subtitles/StdioFile64.h
@@ -0,0 +1,42 @@
+/*
+ * (C) 2014 see Authors.txt
+ *
+ * This file is part of MPC-HC.
+ *
+ * MPC-HC is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * MPC-HC is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#pragma once
+
+#include <afx.h>
+
+class CStdioFile64 : public CStdioFile
+{
+ DECLARE_DYNAMIC(CStdioFile64)
+
+public:
+ CStdioFile64() : CStdioFile() {};
+ CStdioFile64(CAtlTransactionManager* pTM) : CStdioFile(pTM) {};
+ CStdioFile64(FILE* pOpenStream) : CStdioFile(pOpenStream) {};
+ CStdioFile64(LPCTSTR lpszFileName, UINT nOpenFlags) : CStdioFile(lpszFileName, nOpenFlags) {};
+ CStdioFile64(LPCTSTR lpszFileName, UINT nOpenFlags, CAtlTransactionManager* pTM) : CStdioFile(lpszFileName, nOpenFlags, pTM) {};
+
+ virtual ~CStdioFile64() {};
+
+ virtual ULONGLONG GetPosition() const;
+ virtual ULONGLONG GetLength() const;
+
+ virtual ULONGLONG Seek(LONGLONG lOff, UINT nFrom);
+};