Home
last modified time | relevance | path

Searched refs:nRead (Results 1 – 25 of 94) sorted by relevance

1234

/aoo42x/main/tools/source/inet/
H A Dinetstrm.cxx184 int nRead = 0; in Decode64() local
186 aStream.Write( pBuf, nRead ); in Decode64()
206 int nRead = 0; in Encode64() local
208 rOut.Write( pBuf, nRead ); in Encode64()
298 if (nRead > 0) in GetData()
379 pWBuf += nRead; in GetMsgLine()
773 if (nRead > 0) in GetMsgLine()
925 if (nRead > 0) in PutMsgLine()
1063 if (nRead > 0) in GetMsgLine()
1451 if (nRead <= 0) in GetMsgLine()
[all …]
/aoo42x/main/vcl/unx/generic/fontmanager/
H A Dhelper.cxx262 sal_uInt64 nRead; in convertPfbToPfa() local
269 bEof = ((0 != rInFile.read( buffer, 6, nRead)) || (nRead != 6)); in convertPfbToPfa()
278 if( ! rInFile.read( buffer+6, 9, nRead ) && nRead == 9 && in convertPfbToPfa()
285 ! rInFile.read( buffer, sizeof( buffer ), nRead ) && in convertPfbToPfa()
286 nRead != 0 ) in convertPfbToPfa()
288 if( rOutFile.write( buffer, nRead, nWrite ) || in convertPfbToPfa()
289 nWrite != nRead ) in convertPfbToPfa()
301 if( ! rInFile.read( pBuffer, nBytesToRead, nRead ) && nRead == nBytesToRead ) in convertPfbToPfa()
321 … if( rOutFile.write( pWriteBuffer, nBytesToWrite, nRead ) || nRead != nBytesToWrite ) in convertPfbToPfa()
337 if( rOutFile.write( buffer, nBuffer, nRead ) || nRead != nBuffer ) in convertPfbToPfa()
[all …]
/aoo42x/main/package/source/package/zipapi/
H A DXUnbufferedStream.cxx200 mnZipCurrent += nRead; in readBytes()
202 aPureData.realloc( nRead ); in readBytes()
214 nRead += nHeadRead; in readBytes()
220 nRead = mxZipStream->readBytes ( in readBytes()
224 mnZipCurrent += nRead; in readBytes()
226 aData.realloc( nRead ); in readBytes()
233 …while ( 0 == ( nLastRead = maInflater.doInflateSegment( aData, nRead, aData.getLength() - nRead ) … in readBytes()
236 nRead += nLastRead; in readBytes()
238 if ( nRead > nRequestedBytes ) in readBytes()
296 mnMyCurrent += nRead + nLastRead; in readBytes()
[all …]
/aoo42x/main/io/source/stm/
H A Domark.cxx615 sal_Int32 nRead; in readBytes() local
620 nRead = m_input->readBytes( aData , nToRead ); in readBytes()
622 OSL_ASSERT( aData.getLength() == nRead ); in readBytes()
635 if( nRead < nToRead ) { in readBytes()
636 nBytesToRead = nBytesToRead - (nToRead-nRead); in readBytes()
672 sal_Int32 nRead = 0; in readSomeBytes() local
685 if( nRead ) { in readSomeBytes()
686 aData.realloc( nRead ); in readSomeBytes()
701 nBytesRead = Min( nMaxBytesToRead , nInBuffer + nRead ); in readSomeBytes()
733 sal_Int32 nRead; in skipBytes() local
[all …]
/aoo42x/main/jvmfwk/plugins/sunmajor/pluginlib/
H A Dutil.cxx244 sal_uInt64 nRead = 0; in readLine() local
249 nRead = 0; in readLine()
251 if (nRead == 0) in readLine()
257 m_nSize = static_cast< int >(nRead); in readLine()
331 sal_uInt64 nRead; in run() local
334 m_aGuard.getHandle(), aBuffer, BUFFER_SIZE, &nRead)) in run()
337 nRead = 0; in run()
345 if (nRead == 0) in run()
350 else if (nRead <= BUFFER_SIZE) in run()
356 m_arData.reset(new sal_Char[(size_t)(m_nDataSize + nRead)]); in run()
[all …]
/aoo42x/main/sot/source/unoolestorage/
H A Dxolesimplestorage.cxx147 sal_Int32 nRead = 0; in InsertInputStreamToStorage_Impl() local
150 nRead = xInputStream->readBytes( aData, nBytesCount ); in InsertInputStreamToStorage_Impl()
151 if ( nRead < nBytesCount ) in InsertInputStreamToStorage_Impl()
152 aData.realloc( nRead ); in InsertInputStreamToStorage_Impl()
154 sal_Int32 nWritten = pNewStream->Write( aData.getArray(), nRead ); in InsertInputStreamToStorage_Impl()
155 if ( nWritten < nRead ) in InsertInputStreamToStorage_Impl()
157 } while( nRead == nBytesCount ); in InsertInputStreamToStorage_Impl()
506 sal_Int32 nRead = 0; in getByName() local
507 while( 0 != ( nRead = pStream->Read( aData.getArray(), nSize ) ) ) in getByName()
509 if ( nRead < nSize ) in getByName()
[all …]
/aoo42x/main/toolkit/source/helper/
H A Dunomemorystream.cxx53 sal_Int32 nRead = available(); in readBytes() local
54 if ( nRead > nBytesToRead ) in readBytes()
55 nRead = nBytesToRead; in readBytes()
57 rData = ::com::sun::star::uno::Sequence< sal_Int8 >( nRead ); in readBytes()
58 Read( rData.getArray(), nRead ); in readBytes()
60 return nRead; in readBytes()
/aoo42x/main/xmlscript/test/
H A Dimexp.cxx140 sal_Int32 nRead = xStream->readBytes( bytes, xStream->available() ); in exportToFile() local
144 nRead = xStream->readBytes( readBytes, 1024 ); in exportToFile()
145 if (! nRead) in exportToFile()
147 OSL_ASSERT( readBytes.getLength() >= nRead ); in exportToFile()
150 bytes.realloc( nPos + nRead ); in exportToFile()
151 ::rtl_copyMemory( bytes.getArray() + nPos, readBytes.getConstArray(), (sal_uInt32)nRead ); in exportToFile()
/aoo42x/main/package/source/package/zippackage/
H A Dwrapstreamforshare.cxx65 sal_Int32 nRead = m_xInStream->readBytes( aData, nBytesToRead ); in readBytes() local
66 m_nCurPos += nRead; in readBytes()
68 return nRead; in readBytes()
84 sal_Int32 nRead = m_xInStream->readSomeBytes( aData, nMaxBytesToRead ); in readSomeBytes() local
85 m_nCurPos += nRead; in readSomeBytes()
87 return nRead; in readSomeBytes()
/aoo42x/main/xmloff/source/core/
H A DXMLBase64Export.cxx52 sal_Int32 nRead; in exportXML() local
55 nRead = rIn->readBytes( aInBuff, INPUT_BUFFER_SIZE ); in exportXML()
56 if( nRead > 0 ) in exportXML()
61 if( nRead == INPUT_BUFFER_SIZE ) in exportXML()
65 while( nRead == INPUT_BUFFER_SIZE ); in exportXML()
/aoo42x/main/svl/source/misc/
H A Dstrmadpt.cxx482 sal_uInt32 nRead = 0; in GetData() local
502 std::min(sal_uLong(nSize - nRead), in GetData()
515 return nRead; in GetData()
517 rtl_copyMemory(static_cast< sal_Int8 * >(pData) + nRead, in GetData()
519 nRead += nCount; in GetData()
532 nRead = m_pPipe->read(); in GetData()
533 if (nRead < nSize && !m_pPipe->isEOF()) in GetData()
539 sal_uLong(nSize - nRead), in GetData()
555 nRead += m_pPipe->read(); in GetData()
565 return nRead; in GetData()
H A Dsharecontrolfile.cxx181 sal_Int32 nRead = m_xInputStream->readBytes( aBuffer, (sal_Int32)nLength ); in GetUsersData() local
182 nLength -= nRead; in GetUsersData()
186 nRead = m_xInputStream->readBytes( aTmpBuf, (sal_Int32)nLength ); in GetUsersData()
187 if ( nRead > nLength ) in GetUsersData()
190 for ( sal_Int32 nInd = 0; nInd < nRead; nInd++ ) in GetUsersData()
192 nLength -= nRead; in GetUsersData()
/aoo42x/main/unotools/source/streaming/
H A Dstreamhelper.cxx57 sal_Size nRead; in readBytes() local
58 ErrCode nError = m_xLockBytes->ReadAt(m_nActPos, (void*)aData.getArray(), nBytesToRead, &nRead); in readBytes()
60 m_nActPos += (sal_uInt32)nRead; in readBytes()
66 if (nRead < (sal_uInt32)nBytesToRead) in readBytes()
67 aData.realloc( nRead ); in readBytes()
69 return nRead; in readBytes()
/aoo42x/main/sax/source/expatwrap/
H A Dxml2utf.cxx55 sal_Int32 nRead; in readAndConvert() local
59 nRead = m_in->readSomeBytes( seq , nMaxToRead ); in readAndConvert()
61 if( nRead + seqStart.getLength()) in readAndConvert()
64 if( ! m_bStarted && nRead ) in readAndConvert()
94 nRead = seq.getLength(); in readAndConvert()
115 nRead = seq.getLength(); in readAndConvert()
120 return nRead; in readAndConvert()
/aoo42x/main/extensions/source/xmlextract/
H A Dxmxtrct.cxx65 sal_uInt32 nRead; in XMXLockBytes() local
71 nRead = mxIStm->readSomeBytes( aReadSeq, nBytesToRead ); in XMXLockBytes()
73 if( nRead ) in XMXLockBytes()
76 maSeq.realloc( nOldLength + nRead ); in XMXLockBytes()
80 while( nBytesToRead == nRead ); in XMXLockBytes()
/aoo42x/main/tools/source/generic/
H A Dconfig.cxx128 sal_uInt64 nPos = 0, nRead = 0; in ImplSysReadConfig() local
136 if( aFile.read( pBuf, nPos, nRead ) == ::osl::FileBase::E_None && nRead == nPos ) in ImplSysReadConfig()
140 if (nRead > 2 && memcmp(pBuf, BOM, 3) == 0) in ImplSysReadConfig()
142 nRead -= 3; in ImplSysReadConfig()
143 rtl_moveMemory(pBuf, pBuf + 3, sal::static_int_cast<sal_Size>(nRead * sizeof(sal_uInt8)) ); in ImplSysReadConfig()
149 rRead = nRead; in ImplSysReadConfig()
604 sal_uInt64 nRead = 0; in ImplReadConfig() local
607 sal_uInt8* pBuf = ImplSysReadConfig( pData->maFileName, nRead, bRead, bIsUTF8BOM, nTimeStamp ); in ImplReadConfig()
612 ImplMakeConfigList( pData, pBuf, nRead ); in ImplReadConfig()
/aoo42x/main/sfx2/source/appl/
H A Dxpackcreator.cxx119 sal_uInt32 nRead = 0; in convertToPackage() local
124 nRead = pTempStream->Read( aSeq.getArray(), 32000 ); in convertToPackage()
125 if ( nRead < 32000 ) in convertToPackage()
126 aSeq.realloc( nRead ); in convertToPackage()
128 } while( !pTempStream->IsEof() && !pTempStream->GetError() && nRead ); in convertToPackage()
/aoo42x/main/sal/osl/unx/
H A Dsocket.c2272 int nRead; in osl_receiveSocket() local
2285 nRead = recv(pSocket->m_Socket, in osl_receiveSocket()
2289 } while ( nRead < 0 && errno == EINTR ); in osl_receiveSocket()
2291 if ( nRead < 0 ) in osl_receiveSocket()
2296 else if ( nRead == 0 ) in osl_receiveSocket()
2301 return nRead; in osl_receiveSocket()
2314 int nRead; in osl_receiveFromSocket() local
2332 nRead = recvfrom(pSocket->m_Socket, in osl_receiveFromSocket()
2339 if ( nRead < 0 ) in osl_receiveFromSocket()
2344 else if ( nRead == 0 ) in osl_receiveFromSocket()
[all …]
/aoo42x/main/comphelper/source/streaming/
H A Doslfile2streamwrap.cxx69 sal_uInt64 nRead = 0; in readBytes() local
70 FileBase::RC eError = m_pFile->read((void*)aData.getArray(), nBytesToRead, nRead); in readBytes()
75 if (nRead < (sal_uInt32)nBytesToRead) in readBytes()
76 aData.realloc( sal::static_int_cast< sal_Int32 >(nRead) ); in readBytes()
78 return sal::static_int_cast< sal_Int32 >(nRead); in readBytes()
H A Dseekableinput.cxx42 sal_Int32 nRead; in copyInputToOutput_Impl() local
47 nRead = xIn->readBytes( aSequence, nConstBufferSize ); in copyInputToOutput_Impl()
48 if ( nRead < nConstBufferSize ) in copyInputToOutput_Impl()
50 uno::Sequence< sal_Int8 > aTempBuf( aSequence.getConstArray(), nRead ); in copyInputToOutput_Impl()
56 while ( nRead == nConstBufferSize ); in copyInputToOutput_Impl()
/aoo42x/main/sw/source/filter/ww8/dump/
H A Dww8scan.cxx3696 sal_uLong nRead = 0; in WW8ReadSTTBF() local
5544 if( 2 > nRead ) break; in WW8Style()
5547 if( 4 > nRead ) break; in WW8Style()
5550 if( 6 > nRead ) break; in WW8Style()
5554 if( 8 > nRead ) break; in WW8Style()
5557 if( 10 > nRead ) break; in WW8Style()
5573 if( 18 < nRead ) in WW8Style()
5638 if( 10 < nRead ) in Read1STDFixed()
5998 if( 2 > nSize || nRead != rSt.Read( pData, nRead )) in WW8Dop()
6005 if( 500 > nRead ) in WW8Dop()
[all …]
/aoo42x/main/framework/qa/complex/loadAllDocuments/
H A DStreamSimulator.java139 int nRead = 0; in readBytes() local
142 nRead = m_xInStream.readBytes(lData,nBytesToRead); in readBytes()
156 return nRead; in readBytes()
171 int nRead = 0; in readSomeBytes() local
174 nRead = m_xInStream.readSomeBytes(lData,nMaxBytesToRead); in readSomeBytes()
187 return nRead; in readSomeBytes()
/aoo42x/main/qadevOOo/runner/helper/
H A DStreamSimulator.java154 int nRead = 0; in readBytes() local
157 nRead = m_xInStream.readBytes(lData,nBytesToRead); in readBytes()
175 return nRead; in readBytes()
194 int nRead = 0; in readSomeBytes() local
197 nRead = m_xInStream.readSomeBytes(lData,nMaxBytesToRead); in readSomeBytes()
215 return nRead; in readSomeBytes()
/aoo42x/main/embedserv/source/embed/
H A Ded_ipersiststr.cxx90 sal_uInt32 nRead = 0; in createTempXInStreamFromIStream() local
93 pStream->Read( (void*)aBuffer.getArray(), nConstBufferSize, &nRead ); in createTempXInStreamFromIStream()
95 if ( nRead < nConstBufferSize ) in createTempXInStreamFromIStream()
96 aBuffer.realloc( nRead ); in createTempXInStreamFromIStream()
99 nCopied += nRead; in createTempXInStreamFromIStream()
100 } while( nRead == nConstBufferSize ); in createTempXInStreamFromIStream()
523 sal_uInt32 nRead; in Load() local
525 hr = m_pExtStream->Read( (void*)aInf, EXT_STREAM_LENGTH, &nRead ); in Load()
526 if ( nRead != EXT_STREAM_LENGTH ) hr = E_FAIL; in Load()
/aoo42x/main/sal/osl/os2/
H A Dsocket.c2310 int nRead; in osl_receiveSocket() local
2323 nRead = recv(pSocket->m_Socket, in osl_receiveSocket()
2327 } while ( nRead < 0 && errno == EINTR ); in osl_receiveSocket()
2329 if ( nRead < 0 ) in osl_receiveSocket()
2334 else if ( nRead == 0 ) in osl_receiveSocket()
2339 return nRead; in osl_receiveSocket()
2352 int nRead; in osl_receiveFromSocket() local
2370 nRead = recvfrom(pSocket->m_Socket, in osl_receiveFromSocket()
2377 if ( nRead < 0 ) in osl_receiveFromSocket()
2382 else if ( nRead == 0 ) in osl_receiveFromSocket()
[all …]

Completed in 325 milliseconds

1234