/aoo41x/main/filter/source/graphicfilter/ieps/ |
H A D | ieps.cxx | 233 osl_writeFile(pIn, pBuf, nBytesRead, &nCount); in RenderAsEMF() 248 if (nCount == nBytesRead && bEMFSupported) in RenderAsEMF() 274 osl_writeFile(pIn, pBuf, nBytesRead, &nCount); in RenderAsPNGThroughHelper() 276 if (nCount == nBytesRead) in RenderAsPNGThroughHelper() 370 if (RenderAsPNGThroughConvert(pBuf, nBytesRead, rGraphic)) in RenderAsPNG() 373 return RenderAsPNGThroughGS(pBuf, nBytesRead, rGraphic); in RenderAsPNG() 416 void MakePreview(sal_uInt8* pBuf, sal_uInt32 nBytesRead, in MakePreview() argument 579 sal_uInt32 nBytesRead = rStream.Read( pBuf, nPSSize ); in GraphicImport() local 580 if ( nBytesRead == nPSSize ) in GraphicImport() 708 bHasPreview = RenderAsEMF(pBuf, nBytesRead, aGraphic); in GraphicImport() [all …]
|
/aoo41x/main/sw/source/filter/basflt/ |
H A D | iodetect.cxx | 200 ASSERT(nBytesRead <= nBufferLen - 2, in TerminateBuffer() 203 if (nBytesRead <= nBufferLen - 2) in TerminateBuffer() 205 pBuffer[nBytesRead] = '\0'; in TerminateBuffer() 206 pBuffer[nBytesRead+1] = '\0'; in TerminateBuffer() 207 if (nBytesRead & 0x00000001) in TerminateBuffer() 208 pBuffer[nBytesRead+2] = '\0'; in TerminateBuffer() 257 sal_uLong nBytesRead = pStrm->Read(aBuffer, nMaxRead); in IsFileFilter() local 380 sal_uLong nBytesRead = 0; in GetFileFilter() local 387 nBytesRead = pIStrm->Read(aBuffer, nMaxRead); in GetFileFilter() 403 TerminateBuffer(aBuffer, nBytesRead, sizeof(aBuffer)); in GetFileFilter() [all …]
|
/aoo41x/main/connectivity/source/drivers/hsqldb/ |
H A D | StorageNativeInputStream.cxx | 264 jint nBytesRead = 0; in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() local 272 nBytesRead = xIn->readBytes(aData,nLen); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 284 if (nBytesRead <= 0) { in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 290 OSL_ENSURE(nLen >= nBytesRead,"Buffer is too small!"); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 291 OSL_ENSURE(aData.getLength() >= nBytesRead,"Buffer is too small!"); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 292 env->SetByteArrayRegion(buffer,0,nBytesRead,&aData[0]); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 294 aDataLog.write( &aData[0], nBytesRead ); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 298 aOpLog.logReturn( nBytesRead ); in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B() 300 return nBytesRead; in Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B()
|
H A D | HStorageAccess.cxx | 164 sal_Int32 nBytesRead = -1; in read_from_storage_stream() local 167 nBytesRead = xIn->readBytes(aData,1); in read_from_storage_stream() 175 if (nBytesRead <= 0) in read_from_storage_stream() 240 sal_Int32 nBytesRead = -1; in read_from_storage_stream_into_buffer() local 245 nBytesRead = xIn->readBytes(aData, len); in read_from_storage_stream_into_buffer() 253 if (nBytesRead <= 0) in read_from_storage_stream_into_buffer() 259 logger->write( aData.getConstArray(), nBytesRead ); in read_from_storage_stream_into_buffer() 261 return nBytesRead; in read_from_storage_stream_into_buffer() 310 sal_Int32 nBytesRead = -1; in Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_readInt() local 313 nBytesRead = xIn->readBytes(aData, 4); in Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_readInt() [all …]
|
/aoo41x/main/oox/source/helper/ |
H A D | binaryinputstream.cxx | 137 sal_Int32 nBytesRead = readData( aBuffer, nReadSize, nAtomSize ); in copyToStream() local 139 if( nReadSize == nBytesRead ) in copyToStream() 205 sal_Int32 nBytesRead = readData( maBuffer, nReadSize, nAtomSize ); in readMemory() local 206 if( nBytesRead > 0 ) in readMemory() 207 memcpy( opnMem, maBuffer.getConstArray(), static_cast< size_t >( nBytesRead ) ); in readMemory() 208 opnMem += nBytesRead; in readMemory() 209 nBytes -= nBytesRead; in readMemory() 210 nRet += nBytesRead; in readMemory()
|
/aoo41x/main/io/source/stm/ |
H A D | omark.cxx | 605 sal_Int32 nBytesRead; in readBytes() local 611 nBytesRead = m_input->readBytes( aData, nBytesToRead ); in readBytes() 645 nBytesRead = nBytesToRead; in readBytes() 653 return nBytesRead; in readBytes() 663 sal_Int32 nBytesRead; in readSomeBytes() local 668 nBytesRead = m_input->readSomeBytes( aData, nMaxBytesToRead ); in readSomeBytes() 701 nBytesRead = Min( nMaxBytesToRead , nInBuffer + nRead ); in readSomeBytes() 704 m_pBuffer->readAt( m_nCurrentPos , aData , nBytesRead ); in readSomeBytes() 706 m_nCurrentPos += nBytesRead; in readSomeBytes() 715 return nBytesRead; in readSomeBytes()
|
/aoo41x/main/tools/bootstrp/ |
H A D | md5.cxx | 107 size_t nBytesRead; in calc_md5_checksum() local 112 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) ) in calc_md5_checksum() 117 if (nBytesRead >= MINIMAL_SIZE && buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z') ) in calc_md5_checksum() 118 normalize_pe_image(buffer, nBytesRead); in calc_md5_checksum() 121 error = rtl_digest_updateMD5( digest, buffer, nBytesRead ); in calc_md5_checksum()
|
/aoo41x/main/sdext/source/pdfimport/ |
H A D | filterdet.cxx | 308 sal_uInt64 nBytesRead = 0; in copyOrigBytes() local 312 &nBytesRead ) != osl_File_E_None in copyOrigBytes() 313 || nBytesRead != static_cast<sal_uInt64>(nLen) ) in copyOrigBytes() 334 sal_uInt64 nBytesRead = 0; in readOrigBytes() local 338 &nBytesRead ) != osl_File_E_None ) in readOrigBytes() 342 return static_cast<unsigned int>(nBytesRead); in readOrigBytes() 597 sal_uInt64 nBytesRead = 0; in checkDocChecksum() local 601 if( (aErr = osl_readFile( aRead, aBuf, nPass, &nBytesRead)) != osl_File_E_None in checkDocChecksum() 602 || nBytesRead == 0 ) in checkDocChecksum() 606 nPass = static_cast<sal_uInt32>(nBytesRead); in checkDocChecksum()
|
/aoo41x/main/writerfilter/source/ooxml/ |
H A D | OOXMLBinaryObjectReference.cxx | 51 sal_uInt32 nBytesRead = 0; in read() local 53 while ((nBytesRead = xInputStream->readSomeBytes(aSeq, nMaxReadBytes)) > 0) in read() 56 nSize += nBytesRead; in read() 59 memcpy(&mSequence[nOldSize], aSeq.getArray(), nBytesRead); in read()
|
/aoo41x/main/sc/source/ui/unoobj/ |
H A D | scdetect.cxx | 136 sal_uLong nBytesRead = rStream.Read( pByte, nBufSize*2); in lcl_MayBeAscii() local 138 if ( nBytesRead >= 2 && (aBuffer[0] == 0xfffe || aBuffer[0] == 0xfeff) ) in lcl_MayBeAscii() 146 nBytesRead /= 2; in lcl_MayBeAscii() 147 while( nBytesRead-- && nMask ) in lcl_MayBeAscii() 166 sal_uLong nBytesRead = rStream.Read( aBuffer, nBufSize ); in lcl_DetectExcelXML() local 171 if ( nBytesRead >= 3 && aBuffer[0] == 0xEF && aBuffer[1] == 0xBB && aBuffer[2] == 0xBF ) in lcl_DetectExcelXML() 174 if ( nBytesRead >= nXMLStart + 5 && rtl_compareMemory( aBuffer+nXMLStart, "<?xml", 5 ) == 0 ) in lcl_DetectExcelXML() 179 rtl::OString aFileString(reinterpret_cast<const sal_Char*>(aBuffer), nBytesRead); in lcl_DetectExcelXML()
|
/aoo41x/main/ucb/source/ucp/gio/ |
H A D | gio_inputstream.cxx | 93 gsize nBytesRead = 0; in readBytes() local 95 …eam_read_all(G_INPUT_STREAM(mpStream), aData.getArray(), nBytesToRead, &nBytesRead, NULL, &pError)) in readBytes() 97 aData.realloc(nBytesRead); in readBytes() 98 return nBytesRead; in readBytes()
|
/aoo41x/main/sdext/source/pdfimport/test/ |
H A D | pdfunzip.cxx | 190 sal_uInt64 nBytesRead = 0; in copyOrigBytes() local 191 if( osl_readFile( m_aReadHandle, pBuf, nLen, &nBytesRead ) != osl_File_E_None in copyOrigBytes() 192 || nBytesRead != static_cast<sal_uInt64>(nLen) ) in copyOrigBytes() 213 sal_uInt64 nBytesRead = 0; in readOrigBytes() local 214 if( osl_readFile( m_aReadHandle, pBuf, nLen, &nBytesRead ) != osl_File_E_None ) in readOrigBytes() 216 return static_cast<unsigned int>(nBytesRead); in readOrigBytes()
|
/aoo41x/main/sdext/source/pdfimport/wrapper/ |
H A D | wrapper.cxx | 297 sal_uInt64 nBytesRead(0); in readBinaryData() local 300 osl_File_E_None == (nRes=osl_readFile( m_pErr, pBuf, nFileLen, &nBytesRead )) ) in readBinaryData() 302 pBuf += nBytesRead; in readBinaryData() 303 nFileLen -= sal::static_int_cast<sal_Int32>(nBytesRead); in readBinaryData() 892 sal_uInt64 nBytesRead; in readLine() local 896 while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) && in readLine() 897 nBytesRead == 1 && in readLine() 903 while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) && in readLine() 904 nBytesRead == 1 && aChar != '\n' && aChar != '\r' ) in readLine()
|
/aoo41x/main/sw/source/ui/dialog/ |
H A D | ascfldlg.cxx | 113 sal_uLong nBytesRead = pStream->Read( aBuffer, 4096 ); in SwAsciiFilterDlg() local 116 if( nBytesRead <= 4096 ) in SwAsciiFilterDlg() 118 aBuffer[ nBytesRead ] = '0'; in SwAsciiFilterDlg() 119 aBuffer[ nBytesRead+1 ] = '0'; in SwAsciiFilterDlg() 124 for( sal_uInt16 nCnt = 0; nCnt < nBytesRead; ++nCnt ) in SwAsciiFilterDlg()
|
/aoo41x/main/desktop/source/deployment/ |
H A D | dp_persmap.cxx | 182 sal_uInt64 nBytesRead = 0; in readAll() local 183 m_MapFile.read( aHeaderBytes, sizeof(aHeaderBytes), nBytesRead); in readAll() 184 OSL_ASSERT( nBytesRead == sizeof(aHeaderBytes)); in readAll() 185 if( nBytesRead != sizeof(aHeaderBytes)) in readAll()
|
/aoo41x/main/starmath/source/ |
H A D | smdetect.cxx | 336 const sal_uLong nBytesRead(pStrm->Read( pByte, nBufSize * 2 ) ); in detect() local 337 const sal_uLong nUnicodeCharsRead (nBytesRead / 2 ); in detect() 345 if (nBytesRead >= 2 && (aBuffer[0]==0xfffe || aBuffer[0]==0xfeff) ) in detect() 359 … if ( nBytesRead > 56) // minimal <math xmlns="http://www.w3.org/1998/Math/MathML"></math> in detect() 366 : OUString( pChar, nBytesRead, aEncoding) ); in detect()
|
/aoo41x/main/ucb/source/ucp/gvfs/ |
H A D | gvfs_stream.cxx | 109 GnomeVFSFileSize nBytesRead = 0; in readBytes() local 127 nBytesToRead, &nBytesRead ); in readBytes() 137 aData.realloc( sal::static_int_cast<sal_uInt32>(nBytesRead) ); in readBytes() 139 return sal::static_int_cast<sal_Int32>(nBytesRead); in readBytes()
|
/aoo41x/main/ucb/source/ucp/ftp/ |
H A D | ftpinpstr.cxx | 81 sal_uInt64 nBytesRead( 0 ); in readBytes() local 91 … if ( osl_readFile( m_tmpfl, aData.getArray(), nBytesRequested, &nBytesRead ) != osl_File_E_None ) in readBytes() 94 return sal_Int32( nBytesRead ); in readBytes()
|
/aoo41x/main/crashrep/source/win32/ |
H A D | soreport.cpp | 440 size_t nBytesRead; in ReadFromEnvironment() local 1627 size_t nBytesRead = fread( pBuffer, 1, nFileSize, fp ); in calc_md5_checksum() local 1629 if ( sal::static_int_cast<long>(nBytesRead) == nFileSize ) in calc_md5_checksum() 1632 repatch_soffice_exe( pBuffer, nBytesRead ); in calc_md5_checksum() 1634 normalize_pe_image( pBuffer, nBytesRead ); in calc_md5_checksum() 1637 pBuffer, nBytesRead, in calc_md5_checksum() 1641 nBytesProcessed = nBytesRead; in calc_md5_checksum() 1667 size_t nBytesRead; 1672 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) ) 1674 error = rtl_digest_updateMD5( digest, buffer, nBytesRead ); [all …]
|
H A D | base64.cpp | 32 size_t nBytesRead = 0; in base64_encode() local 44 nBytesRead += nBytes; in base64_encode()
|
/aoo41x/main/framework/source/services/ |
H A D | license.cxx | 471 sal_uInt64 nBytesRead = 0; in LicenseDialog() local 476 … while (aLicenseFile.read(pBuffer+nPosition, nBytes-nPosition, nBytesRead) == FileBase::E_None in LicenseDialog() 477 && nPosition + nBytesRead < nBytes) in LicenseDialog() 479 nPosition += nBytesRead; in LicenseDialog()
|
/aoo41x/main/cui/source/dialogs/ |
H A D | about.cxx | 127 sal_uInt64 nBytesRead = 0; in lcl_readTxtFile() local 135 nBytesRead ) == osl::FileBase::E_None in lcl_readTxtFile() 136 && nPosition + nBytesRead < nBytes) in lcl_readTxtFile() 138 nPosition += nBytesRead; in lcl_readTxtFile()
|
/aoo41x/main/basic/source/runtime/ |
H A D | iosys.cxx | 397 sal_uInt64 nBytesRead = nSize; in GetData() local 399 nRet = maFile.read( pData, nBytesRead, nBytesRead ); in GetData() 400 return (sal_uIntPtr)nBytesRead; in GetData()
|
/aoo41x/main/sal/osl/unx/ |
H A D | signal.c | 337 size_t nBytesRead; in calc_md5_checksum() local 342 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) ) in calc_md5_checksum() 344 error = rtl_digest_updateMD5( digest, buffer, nBytesRead ); in calc_md5_checksum() 345 nBytesProcessed += nBytesRead; in calc_md5_checksum()
|
/aoo41x/main/vcl/unx/generic/gdi/ |
H A D | salprnpsp.cxx | 1340 sal_uInt64 nBytesRead = 0; in StartJob() local 1343 osl_readFile( pFile, &buffer[0], buffer.size(), &nBytesRead ); in StartJob() 1344 if( nBytesRead > 0 ) in StartJob() 1345 fwrite( &buffer[0], 1, nBytesRead, fp ); in StartJob() 1346 } while( nBytesRead == buffer.size() ); in StartJob()
|