Lines Matching refs:zip
503 static bool UnzipToMemory(ZipArchiveHandle zip, const std::string& entry_name, in UnzipToMemory() argument
507 if (FindEntry(zip, zip_entry_name, &zip_entry) != 0) { in UnzipToMemory()
517 int error = ExtractToMemory(zip, &zip_entry, reinterpret_cast<uint8_t*>(out->data()), in UnzipToMemory()
614 static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name) { in unzip_to_file() argument
619 if (FindEntry(zip, zip_entry_name, &zip_entry) != 0) { in unzip_to_file()
628 int error = ExtractEntryToFile(zip, &zip_entry, fd); in unzip_to_file()
1369 explicit ZipImageSource(ZipArchiveHandle zip) : zip_(zip) {} in ZipImageSource() argument
1386 ZipArchiveHandle zip; in do_update() local
1387 int error = OpenArchive(filename, &zip); in do_update()
1392 FlashAllTool tool(ZipImageSource(zip), slot_override, skip_secondary, false); in do_update()
1395 CloseArchive(zip); in do_update()