Lines Matching refs:mLFH
65 result = mLFH.read(fp); in initFromCDE()
82 hasDD = (mLFH.mGPBitFlag & kUsesDataDescr) != 0; in initFromCDE()
180 assert(mLFH.mExtraField == NULL); in initFromExternal()
181 mLFH.mExtraFieldLength = pEntry->mLFH.mExtraFieldLength; in initFromExternal()
182 if (mLFH.mExtraFieldLength > 0) { in initFromExternal()
183 mLFH.mExtraField = new uint8_t[mLFH.mExtraFieldLength+1]; in initFromExternal()
184 if (mLFH.mExtraField == NULL) in initFromExternal()
186 memcpy(mLFH.mExtraField, pEntry->mLFH.mExtraField, in initFromExternal()
187 mLFH.mExtraFieldLength+1); in initFromExternal()
206 if (mLFH.mExtraFieldLength > 0) { in addPadding()
210 newExtra = new uint8_t[mLFH.mExtraFieldLength + padding]; in addPadding()
213 memset(newExtra + mLFH.mExtraFieldLength, 0, padding); in addPadding()
214 memcpy(newExtra, mLFH.mExtraField, mLFH.mExtraFieldLength); in addPadding()
216 delete[] mLFH.mExtraField; in addPadding()
217 mLFH.mExtraField = newExtra; in addPadding()
218 mLFH.mExtraFieldLength += padding; in addPadding()
221 mLFH.mExtraField = new uint8_t[padding]; in addPadding()
222 memset(mLFH.mExtraField, 0, padding); in addPadding()
223 mLFH.mExtraFieldLength = padding; in addPadding()
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()
247 delete[] mLFH.mFileName; in copyCDEtoLFH()
248 if (mLFH.mFileNameLength > 0) { in copyCDEtoLFH()
249 mLFH.mFileName = new uint8_t[mLFH.mFileNameLength+1]; in copyCDEtoLFH()
250 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
252 mLFH.mFileName = NULL; in copyCDEtoLFH()
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()
325 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
385 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
386 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()