Home
last modified time | relevance | path

Searched refs:mZipFp (Results 1 – 4 of 4) sorted by relevance

/build/tools/zipalign/
DZipFile.cpp66 assert(mZipFp == NULL); // no reopen in open()
99 mZipFp = fopen(zipFileName, openflags); in open()
100 if (mZipFp == NULL) { in open()
215 fseek(mZipFp, 0, SEEK_END); in readCentralDir()
216 fileLength = ftell(mZipFp); in readCentralDir()
217 rewind(mZipFp); in readCentralDir()
241 if (fseek(mZipFp, seekStart, SEEK_SET) != 0) { in readCentralDir()
248 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in readCentralDir()
299 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in readCentralDir()
314 result = pEntry->initFromCDE(mZipFp); in readCentralDir()
[all …]
DZipFile.h47 : mZipFp(NULL), mReadOnly(false), mNeedCDRewrite(false) in ZipFile()
52 if (mZipFp != NULL) in ~ZipFile()
53 fclose(mZipFp); in ~ZipFile()
258 FILE* mZipFp; // Zip file pointer variable
/build/tools/ziptime/
DZipFile.cpp38 assert(mZipFp == NULL); // no reopen in rewrite()
41 mZipFp = fopen(zipFileName, "r+b"); in rewrite()
42 if (mZipFp == NULL) { in rewrite()
81 fseek(mZipFp, 0, SEEK_END); in rewriteCentralDir()
82 fileLength = ftell(mZipFp); in rewriteCentralDir()
83 rewind(mZipFp); in rewriteCentralDir()
107 if (fseek(mZipFp, seekStart, SEEK_SET) != 0) { in rewriteCentralDir()
114 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in rewriteCentralDir()
155 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in rewriteCentralDir()
169 result = pEntry->initAndRewriteFromCDE(mZipFp); in rewriteCentralDir()
[all …]
DZipFile.h34 ZipFile(void) : mZipFp(NULL) {} in ZipFile()
36 if (mZipFp != NULL) in ~ZipFile()
37 fclose(mZipFp); in ~ZipFile()
76 FILE* mZipFp; // Zip file pointer variable