Lines Matching refs:mLFH

66     result = mLFH.read(fp);  in initFromCDE()
83 hasDD = (mLFH.mGPBitFlag & kUsesDataDescr) != 0; in initFromCDE()
170 assert(mLFH.mExtraField == NULL); in initFromExternal()
171 mLFH.mExtraFieldLength = pEntry->mLFH.mExtraFieldLength; in initFromExternal()
172 if (mLFH.mExtraFieldLength > 0) { in initFromExternal()
173 mLFH.mExtraField = new unsigned char[mLFH.mExtraFieldLength+1]; in initFromExternal()
174 if (mLFH.mExtraField == NULL) in initFromExternal()
176 memcpy(mLFH.mExtraField, pEntry->mLFH.mExtraField, in initFromExternal()
177 mLFH.mExtraFieldLength+1); in initFromExternal()
196 if (mLFH.mExtraFieldLength > 0) { in addPadding()
200 newExtra = new unsigned char[mLFH.mExtraFieldLength + padding]; in addPadding()
203 memset(newExtra + mLFH.mExtraFieldLength, 0, padding); in addPadding()
204 memcpy(newExtra, mLFH.mExtraField, mLFH.mExtraFieldLength); in addPadding()
206 delete[] mLFH.mExtraField; in addPadding()
207 mLFH.mExtraField = newExtra; in addPadding()
208 mLFH.mExtraFieldLength += padding; in addPadding()
211 mLFH.mExtraField = new unsigned char[padding]; in addPadding()
212 memset(mLFH.mExtraField, 0, padding); in addPadding()
213 mLFH.mExtraFieldLength = padding; in addPadding()
226 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
227 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
228 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
229 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
230 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
231 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
232 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
233 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
234 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
237 delete[] mLFH.mFileName; in copyCDEtoLFH()
238 if (mLFH.mFileNameLength > 0) { in copyCDEtoLFH()
239 mLFH.mFileName = new unsigned char[mLFH.mFileNameLength+1]; in copyCDEtoLFH()
240 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
242 mLFH.mFileName = NULL; in copyCDEtoLFH()
272 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
276 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
280 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
284 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
288 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
292 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
296 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
300 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
304 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
309 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
315 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
375 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
376 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()