Lines Matching refs:mLFH
67 result = mLFH.read(fp); in initFromCDE()
84 hasDD = (mLFH.mGPBitFlag & kUsesDataDescr) != 0; in initFromCDE()
165 assert(mLFH.mExtraField == NULL); in initFromExternal()
166 mLFH.mExtraFieldLength = pEntry->mLFH.mExtraFieldLength; in initFromExternal()
167 if (mLFH.mExtraFieldLength > 0) { in initFromExternal()
168 mLFH.mExtraField = new unsigned char[mLFH.mExtraFieldLength+1]; in initFromExternal()
169 if (mLFH.mExtraField == NULL) in initFromExternal()
171 memcpy(mLFH.mExtraField, pEntry->mLFH.mExtraField, in initFromExternal()
172 mLFH.mExtraFieldLength+1); in initFromExternal()
191 if (mLFH.mExtraFieldLength > 0) { in addPadding()
195 newExtra = new unsigned char[mLFH.mExtraFieldLength + padding]; in addPadding()
198 memset(newExtra + mLFH.mExtraFieldLength, 0, padding); in addPadding()
199 memcpy(newExtra, mLFH.mExtraField, mLFH.mExtraFieldLength); in addPadding()
201 delete[] mLFH.mExtraField; in addPadding()
202 mLFH.mExtraField = newExtra; in addPadding()
203 mLFH.mExtraFieldLength += padding; in addPadding()
206 mLFH.mExtraField = new unsigned char[padding]; in addPadding()
207 memset(mLFH.mExtraField, 0, padding); in addPadding()
208 mLFH.mExtraFieldLength = padding; in addPadding()
221 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
222 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
223 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
224 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
225 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
226 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
227 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
228 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
229 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
232 delete[] mLFH.mFileName; in copyCDEtoLFH()
233 if (mLFH.mFileNameLength > 0) { in copyCDEtoLFH()
234 mLFH.mFileName = new unsigned char[mLFH.mFileNameLength+1]; in copyCDEtoLFH()
235 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
237 mLFH.mFileName = NULL; in copyCDEtoLFH()
267 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
271 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
275 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
279 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
283 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
287 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
291 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
295 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
299 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
304 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
310 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
358 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
359 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()