diff options
Diffstat (limited to 'tools/source/stream/stream.cxx')
-rw-r--r-- | tools/source/stream/stream.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index a3053a9fc907..05f7ac3fbc7e 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1715,6 +1715,21 @@ sal_uInt16 SvMemoryStream::IsA() const return (sal_uInt16)ID_MEMORYSTREAM; } +const void* SvMemoryStream::GetBuffer() +{ + Flush(); + return (const void*)GetData(); +} + +sal_uIntPtr SvMemoryStream::GetSize() +{ + Flush(); + sal_uIntPtr nTemp = Tell(); + sal_uIntPtr nLength = Seek( STREAM_SEEK_TO_END ); + Seek( nTemp ); + return nLength; +} + void* SvMemoryStream::SetBuffer( void* pNewBuf, sal_Size nCount, bool bOwnsDat, sal_Size nEOF ) { |