Lines Matching refs:mLFH
65 result = mLFH.read(fp); in initFromCDE()
82 hasDD = (mLFH.mGPBitFlag & kUsesDataDescr) != 0; in initFromCDE()
163 assert(mLFH.mExtraField == NULL); in initFromExternal()
164 mLFH.mExtraFieldLength = pEntry->mLFH.mExtraFieldLength; in initFromExternal()
165 if (mLFH.mExtraFieldLength > 0) { in initFromExternal()
166 mLFH.mExtraField = new unsigned char[mLFH.mExtraFieldLength+1]; in initFromExternal()
167 if (mLFH.mExtraField == NULL) in initFromExternal()
169 memcpy(mLFH.mExtraField, pEntry->mLFH.mExtraField, in initFromExternal()
170 mLFH.mExtraFieldLength+1); in initFromExternal()
189 if (mLFH.mExtraFieldLength > 0) { in addPadding()
193 newExtra = new unsigned char[mLFH.mExtraFieldLength + padding]; in addPadding()
196 memset(newExtra + mLFH.mExtraFieldLength, 0, padding); in addPadding()
197 memcpy(newExtra, mLFH.mExtraField, mLFH.mExtraFieldLength); in addPadding()
199 delete[] mLFH.mExtraField; in addPadding()
200 mLFH.mExtraField = newExtra; in addPadding()
201 mLFH.mExtraFieldLength += padding; in addPadding()
204 mLFH.mExtraField = new unsigned char[padding]; in addPadding()
205 memset(mLFH.mExtraField, 0, padding); in addPadding()
206 mLFH.mExtraFieldLength = padding; in addPadding()
219 mLFH.mVersionToExtract = mCDE.mVersionToExtract; in copyCDEtoLFH()
220 mLFH.mGPBitFlag = mCDE.mGPBitFlag; in copyCDEtoLFH()
221 mLFH.mCompressionMethod = mCDE.mCompressionMethod; in copyCDEtoLFH()
222 mLFH.mLastModFileTime = mCDE.mLastModFileTime; in copyCDEtoLFH()
223 mLFH.mLastModFileDate = mCDE.mLastModFileDate; in copyCDEtoLFH()
224 mLFH.mCRC32 = mCDE.mCRC32; in copyCDEtoLFH()
225 mLFH.mCompressedSize = mCDE.mCompressedSize; in copyCDEtoLFH()
226 mLFH.mUncompressedSize = mCDE.mUncompressedSize; in copyCDEtoLFH()
227 mLFH.mFileNameLength = mCDE.mFileNameLength; in copyCDEtoLFH()
230 delete[] mLFH.mFileName; in copyCDEtoLFH()
231 if (mLFH.mFileNameLength > 0) { in copyCDEtoLFH()
232 mLFH.mFileName = new unsigned char[mLFH.mFileNameLength+1]; in copyCDEtoLFH()
233 strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName); in copyCDEtoLFH()
235 mLFH.mFileName = NULL; in copyCDEtoLFH()
265 if (mCDE.mVersionToExtract != mLFH.mVersionToExtract) { in compareHeaders()
269 if (mCDE.mGPBitFlag != mLFH.mGPBitFlag) { in compareHeaders()
273 if (mCDE.mCompressionMethod != mLFH.mCompressionMethod) { in compareHeaders()
277 if (mCDE.mLastModFileTime != mLFH.mLastModFileTime) { in compareHeaders()
281 if (mCDE.mLastModFileDate != mLFH.mLastModFileDate) { in compareHeaders()
285 if (mCDE.mCRC32 != mLFH.mCRC32) { in compareHeaders()
289 if (mCDE.mCompressedSize != mLFH.mCompressedSize) { in compareHeaders()
293 if (mCDE.mUncompressedSize != mLFH.mUncompressedSize) { in compareHeaders()
297 if (mCDE.mFileNameLength != mLFH.mFileNameLength) { in compareHeaders()
302 if (mCDE.mExtraFieldLength != mLFH.mExtraFieldLength) { in compareHeaders()
308 if (strcmp((char*) mCDE.mFileName, (char*) mLFH.mFileName) != 0) { in compareHeaders()
368 mCDE.mLastModFileTime = mLFH.mLastModFileTime = ztime; in setModWhen()
369 mCDE.mLastModFileDate = mLFH.mLastModFileDate = zdate; in setModWhen()