Home
last modified time | relevance | path

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

/art/dex2oat/linker/
Doat_writer_test.cc313 explicit ZipBuilder(File* zip_file) : zip_file_(zip_file) { } in ZipBuilder()
316 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile()
327 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
328 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
329 !zip_file_->WriteFully(data, size)) { in AddFile()
344 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish()
351 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
352 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
363 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
364 zip_file_->Flush() == 0; in Finish()
[all …]