• Home
  • Raw
  • Download

Lines Matching refs:mCDE

48     result = mCDE.read(fp);  in initFromCDE()
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
60 mCDE.mLocalHeaderRelOffset); in initFromCDE()
117 mCDE.mVersionMadeBy = kDefaultMadeBy; in initNew()
118 mCDE.mVersionToExtract = kDefaultVersion; in initNew()
119 mCDE.mCompressionMethod = kCompressStored; in initNew()
120 mCDE.mFileNameLength = strlen(fileName); in initNew()
122 mCDE.mFileCommentLength = strlen(comment); in initNew()
123 mCDE.mExternalAttrs = 0x81b60020; // matches what WinZip does in initNew()
125 if (mCDE.mFileNameLength > 0) { in initNew()
126 mCDE.mFileName = new unsigned char[mCDE.mFileNameLength+1]; in initNew()
127 strcpy((char*) mCDE.mFileName, fileName); in initNew()
129 if (mCDE.mFileCommentLength > 0) { in initNew()
131 mCDE.mFileComment = new unsigned char[mCDE.mFileCommentLength+1]; in initNew()
132 strcpy((char*) mCDE.mFileComment, comment); in initNew()
147 mCDE = pEntry->mCDE; in initFromExternal()
149 if ((mCDE.mFileNameLength > 0 && mCDE.mFileName == NULL) || in initFromExternal()
150 (mCDE.mFileCommentLength > 0 && mCDE.mFileComment == NULL) || in initFromExternal()
151 (mCDE.mExtraFieldLength > 0 && mCDE.mExtraField == NULL)) { in initFromExternal()
218 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
219 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
220 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
221 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
222 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
223 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
224 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
225 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
226 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
232 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
244 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
245 mCDE.mCRC32 = crc32; in setDataInfo()
246 mCDE.mCompressedSize = compLen; in setDataInfo()
247 mCDE.mUncompressedSize = uncompLen; in setDataInfo()
248 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
250 mCDE.mGPBitFlag |= 0x0002; // indicates maximum compression used in setDataInfo()
264 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
268 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
272 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
276 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
280 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
284 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
288 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
292 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
296 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
301 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
306 if (mCDE.mFileName != NULL) { in compareHeaders()
307 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
324 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen()
325 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen()
326 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen()
327 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen()
328 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen()
329 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen()
367 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
368 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()