Lines Matching refs:mCDE
49 result = mCDE.read(fp); in initFromCDE()
59 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
61 mCDE.mLocalHeaderRelOffset); in initFromCDE()
118 mCDE.mVersionMadeBy = kDefaultMadeBy; in initNew()
119 mCDE.mVersionToExtract = kDefaultVersion; in initNew()
120 mCDE.mCompressionMethod = kCompressStored; in initNew()
121 mCDE.mFileNameLength = strlen(fileName); in initNew()
123 mCDE.mFileCommentLength = strlen(comment); in initNew()
124 mCDE.mExternalAttrs = 0x81b60020; // matches what WinZip does in initNew()
126 if (mCDE.mFileNameLength > 0) { in initNew()
127 mCDE.mFileName = new unsigned char[mCDE.mFileNameLength+1]; in initNew()
128 strcpy((char*) mCDE.mFileName, fileName); in initNew()
130 if (mCDE.mFileCommentLength > 0) { in initNew()
132 mCDE.mFileComment = new unsigned char[mCDE.mFileCommentLength+1]; in initNew()
133 strcpy((char*) mCDE.mFileComment, comment); in initNew()
148 mCDE = pEntry->mCDE; in initFromExternal()
150 if ((mCDE.mFileNameLength > 0 && mCDE.mFileName == NULL) || in initFromExternal()
151 (mCDE.mFileCommentLength > 0 && mCDE.mFileComment == NULL) || in initFromExternal()
152 (mCDE.mExtraFieldLength > 0 && mCDE.mExtraField == NULL)) { in initFromExternal()
219 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
220 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
221 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
222 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
223 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
224 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
225 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
226 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
227 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
233 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
245 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
246 mCDE.mCRC32 = crc32; in setDataInfo()
247 mCDE.mCompressedSize = compLen; in setDataInfo()
248 mCDE.mUncompressedSize = uncompLen; in setDataInfo()
249 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
251 mCDE.mGPBitFlag |= 0x0002; // indicates maximum compression used in setDataInfo()
265 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
269 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
273 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
277 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
281 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
285 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
289 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
293 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
297 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
302 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
307 if (mCDE.mFileName != NULL) { in compareHeaders()
308 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
325 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen()
326 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen()
327 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen()
328 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen()
329 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen()
330 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen()
368 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
369 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()