Lines Matching refs:nCount

167 ErrCode SvLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount,  in ReadAt()  argument
177 sal_Size nTheRead = m_pStream->Read(pBuffer, nCount); in ReadAt()
185 ErrCode SvLockBytes::WriteAt(sal_Size nPos, const void * pBuffer, sal_Size nCount, in WriteAt() argument
195 sal_Size nTheWritten = m_pStream->Write(pBuffer, nCount); in WriteAt()
280 ErrCode SvAsyncLockBytes::ReadAt(sal_Size nPos, void * pBuffer, sal_Size nCount, in ReadAt() argument
284 return SvOpenLockBytes::ReadAt(nPos, pBuffer, nCount, pRead); in ReadAt()
287 sal_Size nTheCount = std::min(nPos < m_nSize ? m_nSize - nPos : 0, nCount); in ReadAt()
290 return !nCount || nTheCount == nCount || nError ? nError : in ReadAt()
298 sal_Size nCount, sal_Size * pWritten) in WriteAt() argument
301 return SvOpenLockBytes::WriteAt(nPos, pBuffer, nCount, pWritten); in WriteAt()
304 sal_Size nTheCount = std::min(nPos < m_nSize ? m_nSize - nPos : 0, nCount); in WriteAt()
307 return !nCount || nTheCount == nCount || nError ? nError : in WriteAt()
314 ErrCode SvAsyncLockBytes::FillAppend(const void * pBuffer, sal_Size nCount, in FillAppend() argument
318 ErrCode nError = SvOpenLockBytes::WriteAt(m_nSize, pBuffer, nCount, in FillAppend()
1335 sal_uInt32 nCount; in operator >>() local
1337 nCount = Read( pBuf, cBufLen ); in operator >>()
1338 rStream.Write( pBuf, nCount ); in operator >>()
1339 } while( nCount == cBufLen ); in operator >>()
1503 sal_uInt32 nCount; in operator <<() local
1505 nCount = rStream.Read( pBuf, cBufLen ); in operator <<()
1506 Write( pBuf, nCount ); in operator <<()
1507 } while( nCount == cBufLen ); in operator <<()
1619 sal_Size SvStream::Read( void* pData, sal_Size nCount ) in Read() argument
1621 sal_Size nSaveCount = nCount; in Read()
1627 nCount = GetData( (char*)pData,nCount); in Read()
1629 EncryptBuffer(pData, nCount); in Read()
1630 nBufFilePos += nCount; in Read()
1636 if( nCount <= (sal_Size)(nBufActualLen - nBufActualPos ) ) in Read()
1639 memcpy(pData, pBufPos, (size_t) nCount); in Read()
1640 nBufActualPos = nBufActualPos + (sal_uInt16)nCount; in Read()
1641 pBufPos += nCount; in Read()
1642 nBufFree = nBufFree - (sal_uInt16)nCount; in Read()
1657 if( nCount > nBufSize ) in Read()
1667 nCount = GetData( (char*)pData, nCount ); in Read()
1669 EncryptBuffer(pData, nCount); in Read()
1670 nBufFilePos += nCount; in Read()
1688 if( nCount > nCountTmp ) in Read()
1690 nCount = nCountTmp; // zurueckstutzen, Eof siehe unten in Read()
1692 memcpy( pData, pRWBuf, (size_t)nCount ); in Read()
1693 nBufActualPos = (sal_uInt16)nCount; in Read()
1694 pBufPos = pRWBuf + nCount; in Read()
1700 if( nCount != nSaveCount && nError != ERRCODE_IO_PENDING ) in Read()
1702 if( nCount == nSaveCount && nError == ERRCODE_IO_PENDING ) in Read()
1704 return nCount; in Read()
1717 sal_Size SvStream::Write( const void* pData, sal_Size nCount ) in Write() argument
1719 if( !nCount ) in Write()
1732 nCount = CryptAndWriteBuffer( pData, nCount ); in Write()
1734 nCount = PutData( (char*)pData, nCount ); in Write()
1735 nBufFilePos += nCount; in Write()
1736 return nCount; in Write()
1740 if( nCount <= (sal_Size)(nBufSize - nBufActualPos) ) in Write()
1742 memcpy( pBufPos, pData, (size_t)nCount ); in Write()
1743 nBufActualPos = nBufActualPos + (sal_uInt16)nCount; in Write()
1748 pBufPos += nCount; in Write()
1765 if( nCount > nBufSize ) in Write()
1774 nCount = CryptAndWriteBuffer( pData, nCount ); in Write()
1776 nCount = PutData( (char*)pData, nCount ); in Write()
1777 nBufFilePos += nCount; in Write()
1782 memcpy( pRWBuf, pData, (size_t)nCount ); in Write()
1786 nBufActualPos = (sal_uInt16)nCount; in Write()
1787 pBufPos = pRWBuf + nCount; in Write()
1788 nBufActualLen = (sal_uInt16)nCount; in Write()
1793 return nCount; in Write()
2239 sal_Size nCount = 0; in CryptAndWriteBuffer() local
2259 nCount += PutData( (char*)pTemp, nBufCount ); in CryptAndWriteBuffer()
2263 return nCount; in CryptAndWriteBuffer()
2557 void* SvMemoryStream::SetBuffer( void* pNewBuf, sal_Size nCount, in SetBuffer() argument
2574 nSize = nCount; in SetBuffer()
2578 if( nEOF > nCount ) in SetBuffer()
2579 nEOF = nCount; in SetBuffer()
2598 sal_Size SvMemoryStream::GetData( void* pData, sal_Size nCount ) in GetData() argument
2601 if( nCount > nMaxCount ) in GetData()
2602 nCount = nMaxCount; in GetData()
2603 memcpy( pData, pBuf+nPos, (size_t)nCount ); in GetData()
2604 nPos += nCount; in GetData()
2605 return nCount; in GetData()
2618 sal_Size SvMemoryStream::PutData( const void* pData, sal_Size nCount ) in PutData() argument
2626 if( nCount > nMaxCount ) in PutData()
2631 nCount = nMaxCount; in PutData()
2642 if( (nCount-nMaxCount) < nResize ) in PutData()
2648 nCount = 0; in PutData()
2656 if( !ReAllocateMemory( nCount-nMaxCount+nNewResize ) ) in PutData()
2658 nCount = 0; in PutData()
2665 memcpy( pBuf+nPos, pData, (size_t)nCount); in PutData()
2667 nPos += nCount; in PutData()
2670 return nCount; in PutData()