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()
150 memcpy(&mCDE, &pEntry->mCDE, sizeof(mCDE)); in initFromExternal()
152 if (mCDE.mFileNameLength > 0) { in initFromExternal()
153 mCDE.mFileName = new unsigned char[mCDE.mFileNameLength+1]; in initFromExternal()
154 if (mCDE.mFileName == NULL) in initFromExternal()
156 strcpy((char*) mCDE.mFileName, (char*)pEntry->mCDE.mFileName); in initFromExternal()
158 if (mCDE.mFileCommentLength > 0) { in initFromExternal()
159 mCDE.mFileComment = new unsigned char[mCDE.mFileCommentLength+1]; in initFromExternal()
160 if (mCDE.mFileComment == NULL) in initFromExternal()
162 strcpy((char*) mCDE.mFileComment, (char*)pEntry->mCDE.mFileComment); in initFromExternal()
164 if (mCDE.mExtraFieldLength > 0) { in initFromExternal()
166 mCDE.mExtraField = new unsigned char[mCDE.mExtraFieldLength+1]; in initFromExternal()
167 if (mCDE.mExtraField == NULL) in initFromExternal()
169 memcpy(mCDE.mExtraField, pEntry->mCDE.mExtraField, in initFromExternal()
170 mCDE.mExtraFieldLength+1); in initFromExternal()
236 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
237 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
238 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
239 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
240 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
241 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
242 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
243 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
244 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
250 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
262 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
263 mCDE.mCRC32 = crc32; in setDataInfo()
264 mCDE.mCompressedSize = compLen; in setDataInfo()
265 mCDE.mUncompressedSize = uncompLen; in setDataInfo()
266 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
268 mCDE.mGPBitFlag |= 0x0002; // indicates maximum compression used in setDataInfo()
282 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
286 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
290 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
294 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
298 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
302 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
306 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
310 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
314 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
319 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
324 if (mCDE.mFileName != NULL) { in compareHeaders()
325 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
342 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen()
343 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen()
344 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen()
345 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen()
346 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen()
347 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen()
385 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
386 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()