Lines Matching refs:readAmount
145 ZipArchive* pArchive, off_t fileLength, size_t readAmount, u1* scanBuf)
147 off_t searchStart = fileLength - readAmount;
153 ssize_t actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, readAmount));
154 if (actual != (ssize_t) readAmount) {
155 ALOGW("Zip: read %zd failed: %s", readAmount, strerror(errno));
166 for (i = readAmount - kEOCDLen; i >= 0; i--) {
252 size_t readAmount = kMaxEOCDSearch;
253 if (fileLength < off_t(readAmount))
254 readAmount = fileLength;
256 u1* scanBuf = (u1*) malloc(readAmount);
262 fileLength, readAmount, scanBuf);