Home
last modified time | relevance | path

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

/system/libziparchive/
Dzip_archive.cc220 const auto read_amount = static_cast<uint32_t>(scan_buffer.size()); in FindCentralDirectoryInfo() local
221 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo()
223 if (!archive->mapped_zip.ReadAtOffset(scan_buffer.data(), read_amount, search_start)) { in FindCentralDirectoryInfo()
224 ALOGE("Zip: read %" PRId64 " from offset %" PRId64 " failed", static_cast<int64_t>(read_amount), in FindCentralDirectoryInfo()
235 CHECK_LE(read_amount, std::numeric_limits<int32_t>::max()); in FindCentralDirectoryInfo()
236 int32_t i = read_amount - sizeof(EocdRecord); in FindCentralDirectoryInfo()
324 uint32_t read_amount = kMaxEOCDSearch; in MapCentralDirectory() local
325 if (file_length < read_amount) { in MapCentralDirectory()
326 read_amount = static_cast<uint32_t>(file_length); in MapCentralDirectory()
330 std::vector<uint8_t> scan_buffer(read_amount); in MapCentralDirectory()