Lines Matching refs:aEntry
778 ZipEntry aEntry; in readCEN() local
789 aMemGrabber >> aEntry.nVersion; in readCEN()
791 if ( ( aEntry.nVersion & 1 ) == 1 ) in readCEN()
794 aMemGrabber >> aEntry.nFlag; in readCEN()
795 aMemGrabber >> aEntry.nMethod; in readCEN()
797 if ( aEntry.nMethod != STORED && aEntry.nMethod != DEFLATED) in readCEN()
800 aMemGrabber >> aEntry.nTime; in readCEN()
801 aMemGrabber >> aEntry.nCrc; in readCEN()
802 aMemGrabber >> aEntry.nCompressedSize; in readCEN()
803 aMemGrabber >> aEntry.nSize; in readCEN()
804 aMemGrabber >> aEntry.nPathLen; in readCEN()
805 aMemGrabber >> aEntry.nExtraLen; in readCEN()
808 aMemGrabber >> aEntry.nOffset; in readCEN()
810 aEntry.nOffset += nLocPos; in readCEN()
811 aEntry.nOffset *= -1; in readCEN()
813 if ( aEntry.nPathLen < 0 ) in readCEN()
819 if ( aEntry.nExtraLen < 0 ) in readCEN()
823 aEntry.sPath = rtl::OUString::intern ( (sal_Char *) aMemGrabber.getCurrentPos(), in readCEN()
824 aEntry.nPathLen, in readCEN()
827 if ( !::comphelper::OStorageHelper::IsValidZipEntryFileName( aEntry.sPath, sal_True ) ) in readCEN()
830 aMemGrabber.skipBytes( aEntry.nPathLen + aEntry.nExtraLen + nCommentLen ); in readCEN()
831 aEntries[aEntry.sPath] = aEntry; in readCEN()
877 ZipEntry aEntry; in recover() local
880 aMemGrabber >> aEntry.nVersion; in recover()
881 if ( ( aEntry.nVersion & 1 ) != 1 ) in recover()
883 aMemGrabber >> aEntry.nFlag; in recover()
884 aMemGrabber >> aEntry.nMethod; in recover()
886 if ( aEntry.nMethod == STORED || aEntry.nMethod == DEFLATED ) in recover()
888 aMemGrabber >> aEntry.nTime; in recover()
889 aMemGrabber >> aEntry.nCrc; in recover()
890 aMemGrabber >> aEntry.nCompressedSize; in recover()
891 aMemGrabber >> aEntry.nSize; in recover()
892 aMemGrabber >> aEntry.nPathLen; in recover()
893 aMemGrabber >> aEntry.nExtraLen; in recover()
896 ( aEntry.nMethod == DEFLATED && ( aEntry.nFlag & 8 ) ) ? in recover()
902 if ( aEntry.nCompressedSize < 0 ) aEntry.nCompressedSize = 0x7FFFFFFF; in recover()
903 if ( aEntry.nSize < 0 ) aEntry.nSize = 0x7FFFFFFF; in recover()
904 if ( aEntry.nPathLen < 0 ) aEntry.nPathLen = 0x7FFF; in recover()
905 if ( aEntry.nExtraLen < 0 ) aEntry.nExtraLen = 0x7FFF; in recover()
908 sal_Int32 nDataSize = ( aEntry.nMethod == DEFLATED ) ? aEntry.nCompressedSize : aEntry.nSize; in recover()
909 sal_Int32 nBlockLength = nDataSize + aEntry.nPathLen + aEntry.nExtraLen + 30 + nDescrLength; in recover()
910 if ( aEntry.nPathLen >= 0 && aEntry.nExtraLen >= 0 in recover()
914 if( nPos + 30 + aEntry.nPathLen <= nBufSize ) in recover()
915 aEntry.sPath = OUString ( (sal_Char *) &pBuffer[nPos + 30], in recover()
916 aEntry.nPathLen, in recover()
922 aGrabber.readBytes( aFileName, aEntry.nPathLen ); in recover()
923 aEntry.sPath = OUString ( (sal_Char *) aFileName.getArray(), in recover()
926 aEntry.nPathLen = static_cast< sal_Int16 >(aFileName.getLength()); in recover()
929 aEntry.nOffset = nGenPos + nPos + 30 + aEntry.nPathLen + aEntry.nExtraLen; in recover()
931 if ( ( aEntry.nSize || aEntry.nCompressedSize ) && !checkSizeAndCRC( aEntry ) ) in recover()
933 aEntry.nCrc = 0; in recover()
934 aEntry.nCompressedSize = 0; in recover()
935 aEntry.nSize = 0; in recover()
938 if ( aEntries.find( aEntry.sPath ) == aEntries.end() ) in recover()
939 aEntries[aEntry.sPath] = aEntry; in recover()
1020 sal_Bool ZipFile::checkSizeAndCRC( const ZipEntry& aEntry ) in checkSizeAndCRC() argument
1026 if( aEntry.nMethod == STORED ) in checkSizeAndCRC()
1027 return ( getCRC( aEntry.nOffset, aEntry.nSize ) == aEntry.nCrc ); in checkSizeAndCRC()
1029 getSizeAndCRC( aEntry.nOffset, aEntry.nCompressedSize, &nSize, &nCRC ); in checkSizeAndCRC()
1030 return ( aEntry.nSize == nSize && aEntry.nCrc == nCRC ); in checkSizeAndCRC()