/aoo42x/main/oox/source/helper/ |
H A D | binaryinputstream.cxx | 129 if( nBytes > 0 ) in copyToStream() 134 while( nBytes > 0 ) in copyToStream() 140 nBytes -= nReadSize; in copyToStream() 142 nBytes = 0; in copyToStream() 183 if( !mbEof && (nBytes > 0) ) try in readData() 186 mbEof = nRet != nBytes; in readData() 198 if( !mbEof && (nBytes > 0) ) in readMemory() 209 nBytes -= nBytesRead; in readMemory() 246 mbEof = nReadBytes < nBytes; in readData() 260 mbEof = nReadBytes < nBytes; in readMemory() [all …]
|
H A D | binaryoutputstream.cxx | 103 void BinaryXOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t nAtomSize ) in writeMemory() argument 105 if( mxOutStrm.is() && (nBytes > 0) ) in writeMemory() 109 while( nBytes > 0 ) in writeMemory() 111 … sal_Int32 nWriteSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, nBufferSize ); in writeMemory() 116 nBytes -= nWriteSize; in writeMemory() 135 void SequenceOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) in writeMemory() argument 137 if( mpData && (nBytes > 0) ) in writeMemory() 139 if( mpData->getLength() - mnPos < nBytes ) in writeMemory() 140 const_cast< StreamDataSequence* >( mpData )->realloc( mnPos + nBytes ); in writeMemory() 141 …cast< StreamDataSequence* >( mpData )->getArray() + mnPos, pMem, static_cast< size_t >( nBytes ) ); in writeMemory() [all …]
|
/aoo42x/main/sot/source/sdstor/ |
H A D | stgstrms.cxx | 440 if ( nBytes < 0 || !pFat ) in SetSize() 472 nSize = nBytes; in SetSize() 647 if ( nBytes < 0 ) in SetSize() 727 nBytes += 4; in SetSize() 803 nBytes = ( ( nBytes + nIncr - 1 ) / nIncr ) * nIncr; in SetSize() 805 if( ( nOldSz != nBytes ) ) in SetSize() 865 if( nBytes ) in Read() 890 nRes = nBytes; in Read() 926 if( nBytes ) in Write() 1017 if( nBytes ) in Read() [all …]
|
/aoo42x/main/automation/source/simplecm/ |
H A D | packethandler.cxx | 56 nRes += HIBYTE( HIWORD( nBytes ) ) ^ 0xf0; in CalcCheckByte() 57 nRes += LOBYTE( HIWORD( nBytes ) ) ^ 0x0f; in CalcCheckByte() 58 nRes += HIBYTE( LOWORD( nBytes ) ) ^ 0xf0; in CalcCheckByte() 88 comm_UINT32 nBytes = 0; in ReceiveData() local 92 READ_SOCKET( &nBytes, sizeof(nBytes) ) in ReceiveData() 98 READ_SOCKET( &nBytes, sizeof(nBytes) ) in ReceiveData() 104 nBytes = NETDWORD( nBytes ); in ReceiveData() 158 nBytes -= nReadSoFar; in ReceiveData() 175 pData = ::operator new(nBytes); in ReceiveData() 176 READ_SOCKET( pData, nBytes ) in ReceiveData() [all …]
|
/aoo42x/main/oox/source/xls/ |
H A D | biffinputstream.cxx | 123 void BiffInputRecordBuffer::read( void* opData, sal_uInt16 nBytes ) in read() argument 128 memcpy( opData, &(*mpCurrentData)[ mnRecPos ], nBytes ); in read() 129 mnRecPos = mnRecPos + nBytes; in read() 132 void BiffInputRecordBuffer::skip( sal_uInt16 nBytes ) in skip() argument 136 mnRecPos = mnRecPos + nBytes; in skip() 301 orData.realloc( ::std::max< sal_Int32 >( nBytes, 0 ) ); in readData() 302 if( nBytes > 0 ) in readData() 311 if( !mbEof && opMem && (nBytes > 0) ) in readMemory() 314 sal_Int32 nBytesLeft = nBytes; in readMemory() 335 void BiffInputStream::skip( sal_Int32 nBytes, size_t nAtomSize ) in skip() argument [all …]
|
H A D | biffoutputstream.cxx | 62 void BiffOutputRecordBuffer::write( const void* pData, sal_uInt16 nBytes ) in write() argument 65 OSL_ENSURE( nBytes > 0, "BiffOutputRecordBuffer::write - nothing to write" ); in write() 67 maData.resize( maData.size() + nBytes ); in write() 68 memcpy( &*(maData.end() - nBytes), pData, nBytes ); in write() 71 void BiffOutputRecordBuffer::fill( sal_uInt8 nValue, sal_uInt16 nBytes ) in fill() argument 74 OSL_ENSURE( nBytes > 0, "BiffOutputRecordBuffer::write - nothing to write" ); in fill() 76 maData.resize( maData.size() + nBytes, nValue ); in fill() 134 if( pMem && (nBytes > 0) ) in writeMemory() 137 sal_Int32 nBytesLeft = nBytes; in writeMemory() 148 void BiffOutputStream::fill( sal_uInt8 nValue, sal_Int32 nBytes, size_t nAtomSize ) in fill() argument [all …]
|
H A D | biffhelper.cxx | 147 orDataSeq.realloc( BITMAPFILEHEADER_SIZE + nBytes ); in lclImportImgDataDib() 151 sal_Int32 nBmpSize = BITMAPFILEHEADER_SIZE + nBytes; in lclImportImgDataDib() 157 nBytes -= nDibHdrSize; in lclImportImgDataDib() 170 nBytes -= 3; in lclImportImgDataDib() 179 rStrm.copyToStream( aOutStrm, nBytes ); in lclImportImgDataDib() 181 rStrm.seek( nInStrmPos + nBytes ); in lclImportImgDataDib() 309 sal_Int32 nBytes; in importImgData() local 310 rStrm >> nFormat >> nEnv >> nBytes; in importImgData() 311 OSL_ENSURE( nBytes > 0, "BiffHelper::importImgData - invalid data size" ); in importImgData() 312 if( (0 < nBytes) && (nBytes <= rStrm.getRemaining()) ) in importImgData() [all …]
|
/aoo42x/main/oox/inc/oox/helper/ |
H A D | binaryinputstream.hxx | 58 …virtual sal_Int32 readData( StreamDataSequence& orData, sal_Int32 nBytes, size_t nAtomSize = 1 )… 70 virtual sal_Int32 readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize = 1 ) = 0; 79 virtual void skip( sal_Int32 nBytes, size_t nAtomSize = 1 ) = 0; 319 virtual sal_Int32 readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize = 1 ); 323 virtual void skip( sal_Int32 nBytes, size_t nAtomSize = 1 ); 360 virtual sal_Int32 readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize = 1 ); 364 virtual void skip( sal_Int32 nBytes, size_t nAtomSize = 1 ); 372 inline sal_Int32 getMaxBytes( sal_Int32 nBytes ) const in getMaxBytes() 425 virtual sal_Int32 readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize = 1 ); 429 virtual void skip( sal_Int32 nBytes, size_t nAtomSize = 1 ); [all …]
|
/aoo42x/main/store/source/ |
H A D | lockbyte.cxx | 94 sal_uInt8 * dst_hi = dst_lo + nBytes; in readAt() 102 sal_uInt64 const src_size = nOffset + nBytes; in readAt() 116 sal_uInt8 const * src_hi = src_lo + nBytes; in writeAt() 124 sal_uInt64 const dst_size = nOffset + nBytes; in writeAt() 419 if (nDone != nBytes) in readAt_Impl() 430 if (nDone != nBytes) in writeAt_Impl() 433 sal_uInt64 const uSize = nOffset + nBytes; in writeAt_Impl() 643 sal_uInt8 const * src_hi = src_lo + nBytes; in readAt_Impl() 788 sal_uInt8 const * src_hi = src_lo + nBytes; in readAt_Impl() 798 sal_uInt64 const dst_size = nOffset + nBytes; in writeAt_Impl() [all …]
|
H A D | storlckb.cxx | 146 sal_uInt32 nBytes, in readAt() argument 156 if (!nBytes) in readAt() 166 if ((nOffset + nBytes) > nDataLen) in readAt() 167 nBytes = nDataLen - nOffset; in readAt() 193 nBytes -= nLength; in readAt() 227 nBytes -= nLength; in readAt() 241 sal_uInt32 nBytes, in writeAt() argument 253 if (!nBytes) in writeAt() 264 while (nBytes > 0) in writeAt() 287 nBytes -= nLength; in writeAt() [all …]
|
/aoo42x/main/oox/source/ole/ |
H A D | vbainputstream.cxx | 82 orData.realloc( ::std::max< sal_Int32 >( nBytes, 0 ) ); in readData() 83 if( nBytes > 0 ) in readData() 85 nRet = readMemory( orData.getArray(), nBytes, nAtomSize ); in readData() 86 if( nRet < nBytes ) in readData() 97 while( (nBytes > 0) && updateChunk() ) in readMemory() 100 sal_Int32 nReadBytes = ::std::min( nBytes, nChunkLeft ); in readMemory() 104 nBytes -= nReadBytes; in readMemory() 110 void VbaInputStream::skip( sal_Int32 nBytes, size_t /*nAtomSize*/ ) in skip() argument 112 while( (nBytes > 0) && updateChunk() ) in skip() 115 sal_Int32 nSkipBytes = ::std::min( nBytes, nChunkLeft ); in skip() [all …]
|
H A D | olehelper.cxx | 222 sal_Int32 nBytes; in importStdPic() local 223 rInStrm >> nStdPicId >> nBytes; in importStdPic() 225 …sEof() && (nStdPicId == OLE_STDPIC_ID) && (nBytes > 0) && (rInStrm.readData( orGraphicData, nBytes… in importStdPic() 270 sal_Int32 nBytes = rInStrm.readInt32(); in importStdHlink() local 271 if( nBytes > 0 ) in importStdHlink() 273 sal_Int64 nEndPos = rInStrm.tell() + ::std::max< sal_Int32 >( nBytes, 0 ); in importStdHlink() 286 sal_Int32 nBytes = rInStrm.readInt32(); in importStdHlink() local 287 sal_Int64 nEndPos = rInStrm.tell() + ::std::max< sal_Int32 >( nBytes, 0 ); in importStdHlink()
|
/aoo42x/main/sc/source/filter/excel/ |
H A D | xistream.cxx | 104 if( pData && nBytes ) in Read() 303 sal_uInt16 nBytesLeft = nBytes; in OnRead() 801 if( mbValid && pData && (nBytes > 0) ) in Read() 804 sal_Size nBytesLeft = nBytes; in Read() 826 if( mbValid && (nBytes > 0) ) in CopyToStream() 830 sal_Size nBytesLeft = nBytes; in CopyToStream() 875 void XclImpStream::Ignore( sal_Size nBytes ) in Ignore() argument 878 sal_Size nBytesLeft = nBytes; in Ignore() 1139 bool XclImpStream::EnsureRawReadSize( sal_uInt16 nBytes ) in EnsureRawReadSize() argument 1141 if( mbValid && nBytes ) in EnsureRawReadSize() [all …]
|
/aoo42x/main/xmloff/source/style/ |
H A D | xmlbahdl.cxx | 40 switch( nBytes ) in lcl_xmloff_setAny() 63 sal_Int8 nBytes ) in lcl_xmloff_getAny() argument 67 switch( nBytes ) in lcl_xmloff_getAny() 107 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML() 135 nBytes( nB ) in XMLNumberNonePropHdl() 141 nBytes( nB ) in XMLNumberNonePropHdl() 163 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML() 210 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML() 324 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML() 450 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML() [all …]
|
H A D | xmlbahdl.hxx | 37 sal_Int8 nBytes; member in XMLNumberPropHdl 40 XMLNumberPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} in XMLNumberPropHdl() 53 sal_Int8 nBytes; member in XMLNumberNonePropHdl 68 sal_Int8 nBytes; member in XMLMeasurePropHdl 70 XMLMeasurePropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} in XMLMeasurePropHdl() 82 sal_Int8 nBytes; member in XMLPercentPropHdl 84 XMLPercentPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} in XMLPercentPropHdl() 106 sal_Int8 nBytes; member in XMLNegPercentPropHdl 120 sal_Int8 nBytes; member in XMLMeasurePxPropHdl 122 XMLMeasurePxPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} in XMLMeasurePxPropHdl() [all …]
|
/aoo42x/main/sal/osl/unx/ |
H A D | file.cxx | 358 nBytes = 0; in readAt() 360 if (-1 == nBytes) in readAt() 373 if (-1 == nBytes) in readAt() 375 m_offset += nBytes; in readAt() 380 *pBytesRead = nBytes; in readAt() 401 if (-1 == nBytes) in writeAt() 414 if (-1 == nBytes) in writeAt() 416 m_offset += nBytes; in writeAt() 437 if (-1 == nBytes) in readFileAt() 439 *pBytesRead = nBytes; in readFileAt() [all …]
|
/aoo42x/main/sal/osl/w32/ |
H A D | pipe.c | 472 DWORD nBytes; in osl_receivePipe() local 492 nBytes = BytesToRead; in osl_receivePipe() 496 nBytes = 0; in osl_receivePipe() 498 nBytes = (DWORD) -1; in osl_receivePipe() 510 nBytes = 0; in osl_receivePipe() 516 return (nBytes); in osl_receivePipe() 526 DWORD nBytes; in osl_sendPipe() local 541 nBytes = 0; in osl_sendPipe() 543 nBytes = (DWORD) -1; in osl_sendPipe() 554 nBytes = 0; in osl_sendPipe() [all …]
|
/aoo42x/main/sfx2/inc/sfx2/ |
H A D | minarray.hxx | 114 size_t nBytes = nInitSize * sizeof(T); \ 115 pData = (T*) new char[ nBytes ]; \ 116 memset( pData, 0, nBytes ); \ 131 pData = (T*) new char [ nBytes ]; \ 132 memset( pData, 0, nBytes ); \ 160 pData = (T*) new char[ nBytes ]; \ 161 memset( pData, 0, nBytes ); \ 176 size_t nBytes = nNewSize * sizeof(T); \ 178 memset( pNewData, 0, nBytes ); \ 224 memset( pNewData, 0, nBytes ); \ [all …]
|
/aoo42x/main/store/workben/ |
H A D | t_page.cxx | 840 sal_uInt8 * dst_hi = dst_lo + nBytes; in peekAt() 844 sal_uInt64 const dst_size = nOffset + nBytes; in peekAt() 858 sal_uInt8 const * src_hi = src_lo + nBytes; in pokeAt() 862 sal_uInt64 const dst_size = nOffset + nBytes; in pokeAt() 1082 if (nDone != nBytes) in peekAt_Impl() 1092 if (nDone != nBytes) in pokeAt_Impl() 1267 sal_uInt8 * dst_hi = dst_lo + nBytes; in peekAt_Impl() 1276 sal_uInt8 const * src_hi = src_lo + nBytes; in peekAt_Impl() 1291 sal_uInt8 const * src_hi = src_lo + nBytes; in pokeAt_Impl() 1295 sal_uInt64 const uSize = nOffset + nBytes; in pokeAt_Impl() [all …]
|
/aoo42x/main/sal/textenc/ |
H A D | convertiso2022cn.c | 595 sal_uInt32 nBytes = 0; in ImplConvertUnicodeToIso2022Cn() local 602 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() 608 nBytes = ImplIso2022CnTranslateTo116431( in ImplConvertUnicodeToIso2022Cn() 613 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() 623 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() 629 nBytes = ImplIso2022CnTranslateTo116431( in ImplConvertUnicodeToIso2022Cn() 634 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() 643 nBytes = ImplIso2022CnTranslateTo116431( in ImplConvertUnicodeToIso2022Cn() 648 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() 655 if (nBytes != 0) in ImplConvertUnicodeToIso2022Cn() [all …]
|
H A D | convertbig5hkscs.c | 338 sal_uInt32 nBytes = 0; in ImplConvertUnicodeToBig5Hkscs() local 353 nBytes in ImplConvertUnicodeToBig5Hkscs() 358 if (nBytes == 0) in ImplConvertUnicodeToBig5Hkscs() 367 nBytes = pBig5Data[nIndex1]. in ImplConvertUnicodeToBig5Hkscs() 371 if (nBytes == 0) in ImplConvertUnicodeToBig5Hkscs() 387 nBytes = (p->mnLeadStart + nLeadOff) << 8; in ImplConvertUnicodeToBig5Hkscs() 391 nBytes |= p->mnTrail1Start + nTrailOff; in ImplConvertUnicodeToBig5Hkscs() 402 nBytes |= p->mnTrail3Start + nTrailOff; in ImplConvertUnicodeToBig5Hkscs() 408 if (nBytes == 0) in ImplConvertUnicodeToBig5Hkscs() 412 *pDestBufPtr++ = (sal_Char) (nBytes >> 8); in ImplConvertUnicodeToBig5Hkscs() [all …]
|
/aoo42x/main/sdext/source/pdfimport/ |
H A D | filterdet.cxx | 399 sal_uInt64 nBytes = 0; in detect() local 400 nBytes = xInput->readBytes( aBuf, nHeaderSize ); in detect() 401 if( nBytes > 5 ) in detect() 404 for( unsigned int i = 0; i < nBytes-5; i++ ) in detect() 439 if( nWritten == nBytes ) in detect() 447 if( nBytes > 0 ) in detect() 450 if( nWritten != nBytes ) in detect() 456 } while( nBytes == nBufSize ); in detect() 555 sal_uInt32 nBytes, in checkDocChecksum() argument 598 while( nCur < nBytes ) in checkDocChecksum() [all …]
|
/aoo42x/main/sc/source/filter/inc/ |
H A D | xistream.hxx | 71 sal_uInt16 Read( SvStream& rStrm, void* pData, sal_uInt16 nBytes ); 89 virtual sal_uInt16 OnRead( SvStream& rStrm, sal_uInt8* pnData, sal_uInt16 nBytes ) = 0; 118 virtual sal_uInt16 OnRead( SvStream& rStrm, sal_uInt8* pnData, sal_uInt16 nBytes ); 149 virtual sal_uInt16 OnRead( SvStream& rStrm, sal_uInt8* pnData, sal_uInt16 nBytes ); 363 sal_Size Read( void* pData, sal_Size nBytes ); 366 sal_Size CopyToStream( SvStream& rOutStrm, sal_Size nBytes ); 376 void Ignore( sal_Size nBytes ); 490 bool EnsureRawReadSize( sal_uInt16 nBytes ); 492 sal_uInt16 GetMaxRawReadSize( sal_Size nBytes ) const; 496 sal_uInt16 ReadRawData( void* pData, sal_uInt16 nBytes );
|
/aoo42x/main/crashrep/source/win32/ |
H A D | base64.cpp | 36 size_t nBytes = 0; in base64_encode() local 43 nBytes = fread( in_buffer, 1, sizeof(in_buffer), fin ); in base64_encode() 44 nBytesRead += nBytes; in base64_encode() 46 if ( nBytes ) in base64_encode() 60 if ( nBytes > 1 ) in base64_encode() 63 if ( nBytes > 2 ) in base64_encode() 76 } while ( nBytes ); in base64_encode()
|
/aoo42x/main/oox/source/core/ |
H A D | binarycodec.cxx | 222 bool BinaryCodec_XOR::decode( sal_uInt8* pnDestData, const sal_uInt8* pnSrcData, sal_Int32 nBytes ) in decode() argument 228 const sal_uInt8* pnSrcDataEnd = pnSrcData + nBytes; in decode() 257 return skip( nBytes ); in decode() 260 bool BinaryCodec_XOR::skip( sal_Int32 nBytes ) in skip() argument 262 mnOffset = static_cast< sal_Int32 >( (mnOffset + nBytes) & 0x0F ); in skip() 397 bool BinaryCodec_RCF::decode( sal_uInt8* pnDestData, const sal_uInt8* pnSrcData, sal_Int32 nBytes ) in decode() argument 400 pnSrcData, static_cast< sal_Size >( nBytes ), in decode() 401 pnDestData, static_cast< sal_Size >( nBytes ) ); in decode() 405 bool BinaryCodec_RCF::skip( sal_Int32 nBytes ) in skip() argument 409 sal_Int32 nBytesLeft = nBytes; in skip()
|