67#ifndef OR_TOOLS_BASE_ZIPFILE_H_
68#define OR_TOOLS_BASE_ZIPFILE_H_
74#include "absl/strings/string_view.h"
160 const std::string&
filename()
const {
return filename_; }
165 std::string filename_;
const std::string & filename() const
ZipArchive(absl::string_view path, const ZipFileOptions &options)
ZipArchive(const ZipArchive &)=delete
ZipArchive & operator=(const ZipArchive &)=delete
std::shared_ptr< ZipArchive > OpenZipArchive(absl::string_view path, const ZipFileOptions &options)
@ ACCESS_SEQUENTIAL
Aggressive prefetching on reads.
@ ACCESS_RANDOM
No prefetching to be done, use this for random access.
@ ACCESS_NORMAL
Moderate prefetching as the file gets accessed.
@ ACCESS_NONE
Keep whatever is default for your system (typically same as NORMAL).
std::optional< size_t > zip_bomb_max_ratio
AccessPattern access_pattern
std::optional< size_t > zip_bomb_max_size