Lines Matching refs:mEOCD
267 result = mEOCD.readBuf(buf + i, readAmount - i); in readCentralDir()
274 if (mEOCD.mDiskNumber != 0 || mEOCD.mDiskWithCentralDir != 0 || in readCentralDir()
275 mEOCD.mNumEntries != mEOCD.mTotalNumEntries) in readCentralDir()
296 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in readCentralDir()
298 mEOCD.mCentralDirOffset); in readCentralDir()
306 ALOGV("Scanning %d entries...\n", mEOCD.mTotalNumEntries); in readCentralDir()
308 for (entry = 0; entry < mEOCD.mTotalNumEntries; entry++) { in readCentralDir()
377 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addCommon()
389 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in addCommon()
502 mEOCD.mNumEntries++; in addCommon()
503 mEOCD.mTotalNumEntries++; in addCommon()
504 mEOCD.mCentralDirSize = 0; // mark invalid; set by flush() in addCommon()
505 mEOCD.mCentralDirOffset = endPosn; in addCommon()
550 assert(mEntries.size() == mEOCD.mTotalNumEntries); in add()
552 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in add()
619 mEOCD.mNumEntries++; in add()
620 mEOCD.mTotalNumEntries++; in add()
621 mEOCD.mCentralDirSize = 0; // mark invalid; set by flush() in add()
622 mEOCD.mCentralDirOffset = endPosn; in add()
911 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) in flush()
921 mEOCD.mCentralDirSize = eocdPosn - mEOCD.mCentralDirOffset; in flush()
923 mEOCD.write(mZipFp); in flush()
959 printf(" END is %ld\n", (long) mEOCD.mCentralDirOffset); in crunchArchive()
986 nextOffset = mEOCD.mCentralDirOffset; in crunchArchive()
1032 mEOCD.mCentralDirOffset -= adjust; in crunchArchive()
1033 mEOCD.mNumEntries -= delCount; in crunchArchive()
1034 mEOCD.mTotalNumEntries -= delCount; in crunchArchive()
1035 mEOCD.mCentralDirSize = 0; // mark invalid; set by flush() in crunchArchive()
1037 assert(mEOCD.mNumEntries == mEOCD.mTotalNumEntries); in crunchArchive()
1038 assert(mEOCD.mNumEntries == count); in crunchArchive()