Lines Matching refs:readAmount
179 ssize_t readAmount = kMaxEOCDSearch;
180 if (readAmount > (ssize_t) mFileLength)
181 readAmount = mFileLength;
183 if (readAmount < kEOCDSize) {
188 unsigned char* scanBuf = (unsigned char*) malloc(readAmount);
230 off64_t searchStart = mFileLength - readAmount;
237 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount));
238 if (actual != (ssize_t) readAmount) {
240 (ZD_TYPE) actual, (ZD_TYPE) readAmount, strerror(errno));
252 for (i = readAmount - kEOCDLen; i >= 0; i--) {