Lines Matching refs:image_file
347 void reset(File* image_file) { in reset() argument
348 image_file_.reset(image_file); in reset()
372 std::unique_ptr<File> image_file = std::move(image_file_); in WriteHeaderAndClose() local
373 if (image_file->FlushCloseOrErase() != 0) { in WriteHeaderAndClose()
428 ImageFileGuard image_file; in Write() local
431 image_file.reset(new File(image_fd, unix_file::kCheckSafeUsage)); in Write()
433 if (image_file != nullptr) { in Write()
434 TEMP_FAILURE_RETRY(image_file->SetLength(0)); in Write()
435 TEMP_FAILURE_RETRY(image_file->Flush()); in Write()
438 image_file.reset(OS::CreateEmptyFile(image_filename.c_str())); in Write()
441 if (image_file == nullptr) { in Write()
447 if (image_fd == -1 && !compiler_options_.IsAppImage() && fchmod(image_file->Fd(), 0644) != 0) { in Write()
501 if (!image_file->PwriteFully(image_data.data(), image_data.size(), out_offset)) { in Write()
503 image_file->Erase(); in Write()
518 if (!image_file->PwriteFully(&blocks[0], blocks_bytes, out_offset)) { in Write()
520 image_file->Erase(); in Write()
538 if (!image_file->PwriteFully(image_info.image_bitmap_.Begin(), in Write()
545 int err = image_file->Flush(); in Write()
569 CHECK_EQ(bitmap_section.End(), static_cast<size_t>(image_file->GetLength())) in Write()
576 primary_image_file = std::move(image_file); in Write()
578 if (!image_file.WriteHeaderAndClose(image_filename, image_header)) { in Write()