/trunk/main/crashrep/source/unx/ |
H A D | main.cxx | 818 size_t nBytesRead; in read_from_file() local 820 while( 0 != ( nBytesRead = fread( buffer, 1, sizeof(buffer) - 1, fp ) ) ) in read_from_file() 822 buffer[nBytesRead] = 0; in read_from_file()
|
/trunk/main/cui/source/dialogs/ |
H A D | about.cxx | 125 sal_uInt64 nBytesRead = 0; in lcl_readTxtFile() local 133 nBytesRead ) == osl::FileBase::E_None in lcl_readTxtFile() 134 && nPosition + nBytesRead < nBytes) in lcl_readTxtFile() 136 nPosition += nBytesRead; in lcl_readTxtFile()
|
/trunk/main/filter/source/graphicfilter/eps/ |
H A D | eps.cxx | 2741 sal_uLong nBytesRead; in ImplGetBoundingBox() local 2747 nBytesRead = nSize; in ImplGetBoundingBox() 2749 nBytesRead = POSTSCRIPT_BOUNDINGSEARCH; in ImplGetBoundingBox() 2751 sal_uInt8* pDest = ImplSearchEntry( pSource, (sal_uInt8*)"%%BoundingBox:", nBytesRead, 14 ); in ImplGetBoundingBox()
|
/trunk/main/filter/source/msfilter/ |
H A D | msdffimp.cxx | 2810 sal_Int32 nBytesRead = xShapeXMLInputStream->readBytes( aSeq, 0x7fffffff ); in CheckAndCorrectExcelTextRotation() local 2811 if ( nBytesRead ) in CheckAndCorrectExcelTextRotation() 2818 const char* pEnd = pArry + nBytesRead; in CheckAndCorrectExcelTextRotation() 7008 sal_uInt32 nBytesRead = 0; in ConvertToOle2() local 7030 nBytesRead += 6 * sizeof( sal_uInt32 ) + nStrLen + nDataLen; in ConvertToOle2() 7032 if( !rStm.IsEof() && nReadLen > nBytesRead && nDataLen ) in ConvertToOle2() 7090 } while( !rStm.IsEof() && nReadLen >= nBytesRead ); in ConvertToOle2()
|
/trunk/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 …]
|
/trunk/main/fpicker/source/win32/filepicker/ |
H A D | PreviewCtrl.cxx | 510 sal_uInt32 nBytesRead; in loadFile() local 541 hFile, pData, fsize, &nBytesRead, NULL ); in loadFile()
|
/trunk/main/vcl/source/gdi/ |
H A D | pdfwriter_impl.cxx | 4152 sal_uInt64 nBytesRead = 0; in emitFonts() local 4153 …CK_RETURN( (osl_File_E_None == osl_readFile( aFontFile, pBuffer.get(), nLength1, &nBytesRead ) ) ); in emitFonts() 4154 DBG_ASSERT( nBytesRead==nLength1, "PDF-FontSubset read incomplete!" ); in emitFonts() 4158 getPfbSegmentLengths( pBuffer.get(), (int)nBytesRead, aSegmentLengths ); in emitFonts()
|
H A D | pngread.cxx | 315 sal_Int32 nBytesRead = 0; in ReadNextChunk() local 317 sal_uInt8* pPtr = &rChunkData.aData[ nBytesRead ]; in ReadNextChunk() 318 nBytesRead += mrPNGStream.Read( pPtr, mnChunkLen - nBytesRead ); in ReadNextChunk() 319 } while ( ( nBytesRead < mnChunkLen ) && ( mrPNGStream.GetError() == ERRCODE_NONE ) ); in ReadNextChunk()
|
/trunk/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()
|
/trunk/main/vcl/win/source/gdi/ |
H A D | salgdi3.cxx | 2212 sal_uInt64 nBytesRead = 0; in ImplGetFontAttrFromFile() local 2214 aFotFile.read( aBuffer, sizeof( aBuffer ), nBytesRead ); in ImplGetFontAttrFromFile() 2222 while( (i < nBytesRead) && (aBuffer[i++] != 0) ); in ImplGetFontAttrFromFile() 2224 while( (i < nBytesRead) && (aBuffer[i++] != 0) ); in ImplGetFontAttrFromFile() 2227 while( (i < nBytesRead) && (aBuffer[i++] != 0) ); in ImplGetFontAttrFromFile() 2228 if( i >= nBytesRead ) in ImplGetFontAttrFromFile()
|
/trunk/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()
|
/trunk/main/ucb/source/ucp/gvfs/ |
H A D | gvfs_stream.cxx | 107 GnomeVFSFileSize nBytesRead = 0; in readBytes() local 125 nBytesToRead, &nBytesRead ); in readBytes() 135 aData.realloc( sal::static_int_cast<sal_uInt32>(nBytesRead) ); in readBytes() 137 return sal::static_int_cast<sal_Int32>(nBytesRead); in readBytes()
|
/trunk/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()
|
/trunk/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()
|
/trunk/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()
|
/trunk/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()
|
/trunk/main/sw/source/filter/basflt/ |
H A D | iodetect.cxx | 200 OSL_ENSURE(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 …]
|
/trunk/main/starmath/source/ |
H A D | smdetect.cxx | 328 const sal_uLong nBytesRead(pStrm->Read( pByte, nBufSize * 2 ) ); in detect() local 329 const sal_uLong nUnicodeCharsRead (nBytesRead / 2 ); in detect() 337 if (nBytesRead >= 2 && (aBuffer[0]==0xfffe || aBuffer[0]==0xfeff) ) in detect() 351 … if ( nBytesRead > 56) // minimal <math xmlns="http://www.w3.org/1998/Math/MathML"></math> in detect() 358 : OUString( pChar, nBytesRead, aEncoding) ); in detect()
|
/trunk/main/sdext/source/pdfimport/wrapper/ |
H A D | wrapper.cxx | 293 sal_uInt64 nBytesRead(0); in readBinaryData() local 296 osl_File_E_None == (nRes=osl_readFile( m_pErr, pBuf, nFileLen, &nBytesRead )) ) in readBinaryData() 298 pBuf += nBytesRead; in readBinaryData() 299 nFileLen -= sal::static_int_cast<sal_Int32>(nBytesRead); in readBinaryData() 888 sal_uInt64 nBytesRead; in readLine() local 892 while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) && in readLine() 893 nBytesRead == 1 && in readLine() 899 while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) && in readLine() 900 nBytesRead == 1 && aChar != '\n' && aChar != '\r' ) in readLine()
|
/trunk/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()
|
/trunk/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()
|
/trunk/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()
|
/trunk/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()
|
/trunk/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()
|
/trunk/main/l10ntools/source/ |
H A D | export2.cxx | 367 const size_t nBytesRead = fread( buf, 1, BUFFERSIZE, IN_FILE ); in CopyFile() local 368 if( nBytesRead <= 0 ) in CopyFile() 376 else if( fwrite( buf, 1, nBytesRead, OUT_FILE ) <= 0 ) in CopyFile()
|