Lines Matching refs:n
269 sal_Int32 n = ( ( rStrm.GetSize() >> 2 ) - nPage1 ) / nEntries; in InitNew() local
270 if ( n > 0 ) in InitNew()
272 while( n-- ) in InitNew()
675 sal_Int32 n = 1; in SetSize() local
677 sal_Int32 nNewPage = pFat->FindBlock( n ); in SetSize()
850 sal_Int32 StgDataStrm::Read( void* pBuf, sal_Int32 n ) in Read() argument
852 if ( n < 0 ) in Read()
855 if( ( nPos + n ) > nSize ) in Read()
856 n = nSize - nPos; in Read()
858 while( n ) in Read()
863 if( (sal_Int32) nBytes > n ) in Read()
864 nBytes = (short) n; in Read()
894 n -= nRes; in Read()
906 sal_Int32 StgDataStrm::Write( const void* pBuf, sal_Int32 n ) in Write() argument
908 if ( n < 0 ) in Write()
912 if( ( nPos + n ) > nSize ) in Write()
915 if( !SetSize( nPos + n ) ) in Write()
919 while( n ) in Write()
924 if( (sal_Int32) nBytes > n ) in Write()
925 nBytes = (short) n; in Write()
957 n -= nRes; in Write()
1005 sal_Int32 StgSmallStrm::Read( void* pBuf, sal_Int32 n ) in Read() argument
1009 if( ( nPos + n ) > nSize ) in Read()
1010 n = nSize - nPos; in Read()
1012 while( n ) in Read()
1015 if( (sal_Int32) nBytes > n ) in Read()
1016 nBytes = (short) n; in Read()
1025 n -= nRes; in Read()
1038 sal_Int32 StgSmallStrm::Write( const void* pBuf, sal_Int32 n ) in Write() argument
1043 if( ( nPos + n ) > nSize ) in Write()
1046 if( !SetSize( nPos + n ) ) in Write()
1050 while( n ) in Write()
1053 if( (sal_Int32) nBytes > n ) in Write()
1054 nBytes = (short) n; in Write()
1068 n -= nRes; in Write()
1102 sal_uLong n = rSrc.GetSize(); in Copy() local
1104 SetSize( n ); in Copy()
1110 while( n ) in Copy()
1112 sal_uLong nn = n; in Copy()
1119 n -= nn; in Copy()
1124 return sal_Bool( n == 0 ); in Copy()
1142 sal_uLong n; in GetSize() local
1146 n = pStrm->Seek( STREAM_SEEK_TO_END ); in GetSize()
1150 n = nEndOfData; in GetSize()
1151 return n; in GetSize()
1154 void StgTmpStrm::SetSize( sal_uLong n ) in SetSize() argument
1157 pStrm->SetStreamSize( n ); in SetSize()
1160 if( n > THRESHOLD ) in SetSize()
1181 if( !i && n > nEndOfData ) in SetSize()
1186 s->Seek( n - 1 ); in SetSize()
1206 if( n > nEndOfData ) in SetSize()
1214 nEndOfData = n; in SetSize()
1219 sal_uLong StgTmpStrm::GetData( void* pData, sal_uLong n ) in GetData() argument
1223 n = pStrm->Read( pData, n ); in GetData()
1225 return n; in GetData()
1228 return SvMemoryStream::GetData( (sal_Char *)pData, n ); in GetData()
1231 sal_uLong StgTmpStrm::PutData( const void* pData, sal_uLong n ) in PutData() argument
1234 sal_uInt32 nNew = nCur + n; in PutData()
1243 nNew = pStrm->Write( pData, n ); in PutData()
1247 nNew = SvMemoryStream::PutData( (sal_Char*)pData, n ); in PutData()
1251 sal_uLong StgTmpStrm::SeekPos( sal_uLong n ) in SeekPos() argument
1253 if( n == STREAM_SEEK_TO_END ) in SeekPos()
1254 n = GetSize(); in SeekPos()
1255 if( n && n > THRESHOLD && !pStrm ) in SeekPos()
1257 SetSize( n ); in SeekPos()
1261 return n; in SeekPos()
1265 n = pStrm->Seek( n ); in SeekPos()
1267 return n; in SeekPos()
1270 return SvMemoryStream::SeekPos( n ); in SeekPos()