Home
last modified time | relevance | path

Searched refs:readAmount (Results 1 – 2 of 2) sorted by relevance

/build/make/tools/ziptime/
DZipFile.cpp78 long readAmount; in rewriteCentralDir() local
102 readAmount = EndOfCentralDir::kMaxEOCDSearch; in rewriteCentralDir()
105 readAmount = (long) fileLength; in rewriteCentralDir()
114 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in rewriteCentralDir()
115 LOG("short file? wanted %ld\n", readAmount); in rewriteCentralDir()
121 for (i = readAmount - 4; i >= 0; i--) { in rewriteCentralDir()
135 result = mEOCD.readBuf(buf + i, readAmount - i); in rewriteCentralDir()
137 LOG("Failure reading %ld bytes of EOCD values", readAmount - i); in rewriteCentralDir()
/build/make/tools/zipalign/
DZipFile.cpp211 long readAmount; in readCentralDir() local
235 readAmount = EndOfCentralDir::kMaxEOCDSearch; in readCentralDir()
238 readAmount = (long) fileLength; in readCentralDir()
247 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in readCentralDir()
248 ALOGD("short file? wanted %ld\n", readAmount); in readCentralDir()
254 for (i = readAmount - 4; i >= 0; i--) { in readCentralDir()
269 result = mEOCD.readBuf(buf + i, readAmount - i); in readCentralDir()
271 ALOGD("Failure reading %ld bytes of EOCD values", readAmount - i); in readCentralDir()