Lines Matching refs:rEntry
494 sal_Bool ZipFile::hasValidPassword ( ZipEntry & rEntry, const ::rtl::Reference< EncryptionData >& r… in hasValidPassword() argument
501 xSeek->seek( rEntry.nOffset ); in hasValidPassword()
502 sal_Int32 nSize = rEntry.nMethod == DEFLATED ? rEntry.nCompressedSize : rEntry.nSize; in hasValidPassword()
520 ZipEntry & rEntry, in createUnbufferedStream() argument
528 …return new XUnbufferedStream ( m_xFactory, aMutexHolder, rEntry, xStream, rData, nStreamMode, bIsE… in createUnbufferedStream()
537 uno::Reference< XInputStream > SAL_CALL ZipFile::getInputStream( ZipEntry& rEntry, in getInputStream() argument
545 if ( rEntry.nOffset <= 0 ) in getInputStream()
546 readLOC( rEntry ); in getInputStream()
551 sal_Bool bNeedRawStream = rEntry.nMethod == STORED; in getInputStream()
556 bNeedRawStream = !hasValidPassword ( rEntry, rData ); in getInputStream()
559 rEntry, in getInputStream()
565 uno::Reference< XInputStream > SAL_CALL ZipFile::getDataStream( ZipEntry& rEntry, in getDataStream() argument
576 if ( rEntry.nOffset <= 0 ) in getDataStream()
577 readLOC( rEntry ); in getDataStream()
593 if ( rData->m_aDigest.getLength() && !hasValidPassword ( rEntry, rData ) ) in getDataStream()
597 bNeedRawStream = ( rEntry.nMethod == STORED ); in getDataStream()
600 rEntry, in getDataStream()
606 uno::Reference< XInputStream > SAL_CALL ZipFile::getRawData( ZipEntry& rEntry, in getRawData() argument
614 if ( rEntry.nOffset <= 0 ) in getRawData()
615 readLOC( rEntry ); in getRawData()
617 return createUnbufferedStream ( aMutexHolder, rEntry, rData, UNBUFF_STREAM_RAW, bIsEncrypted ); in getRawData()
621 ZipEntry& rEntry, in getWrappedRawStream() argument
635 if ( rEntry.nOffset <= 0 ) in getWrappedRawStream()
636 readLOC( rEntry ); in getWrappedRawStream()
638 …return createUnbufferedStream ( aMutexHolder, rEntry, rData, UNBUFF_STREAM_WRAPPEDRAW, sal_True, a… in getWrappedRawStream()
641 sal_Bool ZipFile::readLOC( ZipEntry &rEntry ) in readLOC() argument
648 sal_Int32 nPos = -rEntry.nOffset; in readLOC()
664 rEntry.nOffset = static_cast < sal_Int32 > (aGrabber.getPosition()) + nPathLen + nExtraLen; in readLOC()
676 if ( rEntry.nPathLen == -1 ) // the file was created in readLOC()
678 rEntry.nPathLen = nPathLen; in readLOC()
679 rEntry.sPath = sLOCPath; in readLOC()
683 sal_Bool bBroken = rEntry.nVersion != nVersion in readLOC()
684 || rEntry.nFlag != nFlag in readLOC()
685 || rEntry.nTime != nTime in readLOC()
686 || rEntry.nPathLen != nPathLen in readLOC()
687 || !rEntry.sPath.equals( sLOCPath ); in readLOC()