diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-28 23:03:57 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-29 02:03:07 +0100 |
commit | 19bbfc0b39d79a90539fd3094d9b6d7d81619a45 (patch) | |
tree | ccac02c9c175f7254c08a108c5107d7f3ebed87f /tools | |
parent | 655a39d8c0d151618d7c3b3fe0dcff508c2b53c5 (diff) |
tools: allow 64-bit positions on SvLockBytes
Bump stream positions to 64 bits on:
SvLockBytes::ReadAt()
SvLockBytes::WriteAt()
SvAsyncLockBytes::m_nSize
SvOpenLockBytes::Seek()
SvOpenLockBytes::Tell()
SvOutputStreamOpenLockBytes::m_nPosition
OInputStreamHelper::m_nActPos
Change-Id: Ica3b674e0ab23a756260a51475e97a5396ecdddb
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/stream.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 71a06de0050c..ea2e18678bbf 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -173,7 +173,7 @@ void SvLockBytes::close() TYPEINIT0(SvLockBytes); // virtual -ErrCode SvLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount, +ErrCode SvLockBytes::ReadAt(sal_uInt64 const nPos, void * pBuffer, sal_Size nCount, sal_Size * pRead) const { if (!m_pStream) @@ -190,7 +190,7 @@ ErrCode SvLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount, } // virtual -ErrCode SvLockBytes::WriteAt(sal_Size nPos, const void * pBuffer, sal_Size nCount, +ErrCode SvLockBytes::WriteAt(sal_uInt64 const nPos, const void * pBuffer, sal_Size nCount, sal_Size * pWritten) { if (!m_pStream) @@ -258,7 +258,7 @@ TYPEINIT1(SvOpenLockBytes, SvLockBytes); TYPEINIT1(SvAsyncLockBytes, SvOpenLockBytes); // virtual -ErrCode SvAsyncLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount, +ErrCode SvAsyncLockBytes::ReadAt(sal_uInt64 const nPos, void * pBuffer, sal_Size nCount, sal_Size * pRead) const { if (m_bTerminated) @@ -274,7 +274,7 @@ ErrCode SvAsyncLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount, } // virtual -ErrCode SvAsyncLockBytes::WriteAt(sal_Size nPos, const void * pBuffer, +ErrCode SvAsyncLockBytes::WriteAt(sal_uInt64 const nPos, const void * pBuffer, sal_Size nCount, sal_Size * pWritten) { if (m_bTerminated) @@ -304,7 +304,7 @@ ErrCode SvAsyncLockBytes::FillAppend(const void * pBuffer, sal_Size nCount, } // virtual -sal_Size SvAsyncLockBytes::Seek(sal_Size nPos) +sal_uInt64 SvAsyncLockBytes::Seek(sal_uInt64 const nPos) { if (nPos != STREAM_SEEK_TO_END) m_nSize = nPos; |