Lines Matching refs:image_file
663 void reset(File* image_file) { in reset() argument
664 image_file_.reset(image_file); in reset()
688 std::unique_ptr<File> image_file = std::move(image_file_); in WriteHeaderAndClose() local
689 if (image_file->FlushCloseOrErase() != 0) { in WriteHeaderAndClose()
744 ImageFileGuard image_file; in Write() local
747 image_file.reset(new File(image_fd, unix_file::kCheckSafeUsage)); in Write()
749 if (image_file != nullptr) { in Write()
750 TEMP_FAILURE_RETRY(image_file->SetLength(0)); in Write()
751 TEMP_FAILURE_RETRY(image_file->Flush()); in Write()
757 image_file.reset(OS::CreateEmptyFile(image_filename.c_str())); in Write()
760 if (image_file == nullptr) { in Write()
765 if (!compiler_options_.IsAppImage() && fchmod(image_file->Fd(), 0644) != 0) { in Write()
819 if (!image_file->PwriteFully(image_data.data(), image_data.size(), out_offset)) { in Write()
821 image_file->Erase(); in Write()
836 if (!image_file->PwriteFully(&blocks[0], blocks_bytes, out_offset)) { in Write()
838 image_file->Erase(); in Write()
856 if (!image_file->PwriteFully(image_info.image_bitmap_->Begin(), in Write()
863 int err = image_file->Flush(); in Write()
887 CHECK_EQ(bitmap_section.End(), static_cast<size_t>(image_file->GetLength())) in Write()
894 primary_image_file = std::move(image_file); in Write()
896 if (!image_file.WriteHeaderAndClose(image_filename, image_header)) { in Write()