Home
last modified time | relevance | path

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

/system/core/libziparchive/
Dzip_archive.cc221 off64_t file_length, off64_t read_amount, in MapCentralDirectory0() argument
223 const off64_t search_start = file_length - read_amount; in MapCentralDirectory0()
225 if(!archive->mapped_zip.ReadAtOffset(scan_buffer, read_amount, search_start)) { in MapCentralDirectory0()
227 static_cast<int64_t>(read_amount), static_cast<int64_t>(search_start)); in MapCentralDirectory0()
237 int i = read_amount - sizeof(EocdRecord); in MapCentralDirectory0()
346 off64_t read_amount = kMaxEOCDSearch; in MapCentralDirectory() local
347 if (file_length < read_amount) { in MapCentralDirectory()
348 read_amount = file_length; in MapCentralDirectory()
351 std::vector<uint8_t> scan_buffer(read_amount); in MapCentralDirectory()
352 int32_t result = MapCentralDirectory0(debug_file_name, archive, file_length, read_amount, in MapCentralDirectory()
[all …]
Dzip_archive_private.h56 bool ReadData(uint8_t* buffer, size_t read_amount);