Lines Matching refs:rStrm
108 void lclImportImgDataDib( StreamDataSequence& orDataSeq, BiffInputStream& rStrm, sal_Int32 nBytes, … in lclImportImgDataDib() argument
128 sal_Int64 nInStrmPos = rStrm.tell(); in lclImportImgDataDib()
129 sal_Int32 nDibHdrSize = rStrm.readInt32(); in lclImportImgDataDib()
134 rStrm.skip( 4 ); // width/height as 16-bit integer in lclImportImgDataDib()
135 rStrm >> nPlanes >> nDepth; in lclImportImgDataDib()
138 rStrm.skip( 8 ); // width/height as 32-bit integer in lclImportImgDataDib()
139 rStrm >> nPlanes >> nDepth; in lclImportImgDataDib()
142 rStrm.seek( nInStrmPos ); in lclImportImgDataDib()
156 rStrm.copyToStream( aOutStrm, nDibHdrSize ); in lclImportImgDataDib()
169 rStrm.skip( 3 ); in lclImportImgDataDib()
179 rStrm.copyToStream( aOutStrm, nBytes ); in lclImportImgDataDib()
181 rStrm.seek( nInStrmPos + nBytes ); in lclImportImgDataDib()
268 /*static*/ OUString BiffHelper::readString( SequenceInputStream& rStrm, bool b32BitLen, bool bAllow… in readString() argument
271 if( !rStrm.isEof() ) in readString()
273 …sal_Int32 nCharCount = b32BitLen ? rStrm.readValue< sal_Int32 >() : rStrm.readValue< sal_Int16 >(); in readString()
275 …OSL_ENSURE( !rStrm.isEof() && (nCharCount >= -1), "BiffHelper::readString - invalid string length"… in readString()
276 if( !rStrm.isEof() && (nCharCount > 0) ) in readString()
279 … nCharCount = ::std::min( nCharCount, static_cast< sal_Int32 >( rStrm.getRemaining() / 2 ) ); in readString()
280 aString = rStrm.readUnicodeArray( nCharCount, bAllowNulChars ); in readString()
288 /*static*/ bool BiffHelper::isBofRecord( BiffInputStream& rStrm ) in isBofRecord() argument
291 (rStrm.getRecId() == BIFF2_ID_BOF) || in isBofRecord()
292 (rStrm.getRecId() == BIFF3_ID_BOF) || in isBofRecord()
293 (rStrm.getRecId() == BIFF4_ID_BOF) || in isBofRecord()
294 (rStrm.getRecId() == BIFF5_ID_BOF); in isBofRecord()
297 /*static*/ bool BiffHelper::skipRecordBlock( BiffInputStream& rStrm, sal_uInt16 nEndRecId ) in skipRecordBlock() argument
299 sal_uInt16 nStartRecId = rStrm.getRecId(); in skipRecordBlock()
300 while( rStrm.startNextRecord() && (rStrm.getRecId() != nEndRecId) ) in skipRecordBlock()
301 if( rStrm.getRecId() == nStartRecId ) in skipRecordBlock()
302 skipRecordBlock( rStrm, nEndRecId ); in skipRecordBlock()
303 return !rStrm.isEof() && (rStrm.getRecId() == nEndRecId); in skipRecordBlock()
306 /*static*/ void BiffHelper::importImgData( StreamDataSequence& orDataSeq, BiffInputStream& rStrm, B… in importImgData() argument
310 rStrm >> nFormat >> nEnv >> nBytes; in importImgData()
312 if( (0 < nBytes) && (nBytes <= rStrm.getRemaining()) ) in importImgData()
317 … case BIFF_IMGDATA_DIB: lclImportImgDataDib( orDataSeq, rStrm, nBytes, eBiff ); break; in importImgData()