Lines Matching refs:mCDE

50     result = mCDE.read(fp);  in initFromCDE()
60 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
62 mCDE.mLocalHeaderRelOffset); in initFromCDE()
119 mCDE.mVersionMadeBy = kDefaultMadeBy; in initNew()
120 mCDE.mVersionToExtract = kDefaultVersion; in initNew()
121 mCDE.mCompressionMethod = kCompressStored; in initNew()
122 mCDE.mFileNameLength = strlen(fileName); in initNew()
124 mCDE.mFileCommentLength = strlen(comment); in initNew()
125 mCDE.mExternalAttrs = 0x81b60020; // matches what WinZip does in initNew()
127 if (mCDE.mFileNameLength > 0) { in initNew()
128 mCDE.mFileName = new uint8_t[mCDE.mFileNameLength+1]; in initNew()
129 strcpy((char*) mCDE.mFileName, fileName); in initNew()
131 if (mCDE.mFileCommentLength > 0) { in initNew()
133 mCDE.mFileComment = new uint8_t[mCDE.mFileCommentLength+1]; in initNew()
135 strcpy((char*) mCDE.mFileComment, comment); in initNew()
152 memcpy(&mCDE, &pEntry->mCDE, sizeof(mCDE)); in initFromExternal()
154 if (mCDE.mFileNameLength > 0) { in initFromExternal()
155 mCDE.mFileName = new uint8_t[mCDE.mFileNameLength+1]; in initFromExternal()
156 if (mCDE.mFileName == NULL) in initFromExternal()
158 strcpy((char*) mCDE.mFileName, (char*)pEntry->mCDE.mFileName); in initFromExternal()
160 if (mCDE.mFileCommentLength > 0) { in initFromExternal()
161 mCDE.mFileComment = new uint8_t[mCDE.mFileCommentLength+1]; in initFromExternal()
162 if (mCDE.mFileComment == NULL) in initFromExternal()
164 strcpy((char*) mCDE.mFileComment, (char*)pEntry->mCDE.mFileComment); in initFromExternal()
166 if (mCDE.mExtraFieldLength > 0) { in initFromExternal()
168 mCDE.mExtraField = new uint8_t[mCDE.mExtraFieldLength+1]; in initFromExternal()
169 if (mCDE.mExtraField == NULL) in initFromExternal()
171 memcpy(mCDE.mExtraField, pEntry->mCDE.mExtraField, in initFromExternal()
172 mCDE.mExtraFieldLength+1); in initFromExternal()
238 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
239 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
240 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
241 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
242 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
243 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
244 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
245 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
246 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
252 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
264 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
265 mCDE.mCRC32 = crc32; in setDataInfo()
266 mCDE.mCompressedSize = compLen; in setDataInfo()
267 mCDE.mUncompressedSize = uncompLen; in setDataInfo()
268 mCDE.mCompressionMethod = compressionMethod; in setDataInfo()
270 mCDE.mGPBitFlag |= 0x0002; // indicates maximum compression used in setDataInfo()
284 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
288 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
292 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
296 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
300 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
304 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
308 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
312 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
316 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
321 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
326 if (mCDE.mFileName != NULL) { in compareHeaders()
327 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
344 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen()
345 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen()
346 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen()
347 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen()
348 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen()
349 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen()
387 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
388 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()