Lines Matching refs:off
1491 bool MappedZipFile::ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const { in ReadAtOffset()
1493 if (off < 0) { in ReadAtOffset()
1494 ALOGE("Zip: invalid offset %" PRId64, off); in ReadAtOffset()
1499 if (__builtin_add_overflow(fd_offset_, off, &read_offset)) { in ReadAtOffset()
1500 ALOGE("Zip: invalid read offset %" PRId64 " overflows, fd offset %" PRId64, off, fd_offset_); in ReadAtOffset()
1507 __builtin_add_overflow(off, static_cast<off64_t>(len), &read_end)) { in ReadAtOffset()
1509 static_cast<off64_t>(len), off); in ReadAtOffset()
1515 PRId64, static_cast<off64_t>(len), data_length_, off); in ReadAtOffset()
1521 ALOGE("Zip: failed to read at offset %" PRId64, off); in ReadAtOffset()
1525 if (off < 0 || data_length_ < len || off > data_length_ - len) { in ReadAtOffset()
1526 ALOGE("Zip: invalid offset: %" PRId64 ", read length: %zu, data length: %" PRId64, off, len, in ReadAtOffset()
1530 memcpy(buf, static_cast<const uint8_t*>(base_ptr_) + off, len); in ReadAtOffset()