33 #include "../System/cl_platform.h"
92 std::shared_ptr<ZipReader_Impl> impl;
void set_data_descriptor_data(int64_t compressed_size, int64_t uncompressed_size, uint32_t crc32)
Informs the zip reader what the data descriptor contains.
Zip file reader.
Definition: zip_reader.h:46
int64_t read_file_data(void *data, int64_t size, bool read_all=true)
Reads some file data from the zip file.
I/O Device interface.
Definition: iodevice.h:51
int64_t get_compressed_size() const
Returns the compressed size of the file entry.
bool has_data_descriptor() const
Returns true if the file entry is followed by a data descriptor.
int64_t get_uncompressed_size() const
Returns the uncompressed size of the file entry.
std::string get_filename()
Returns the file name that was stored in the local file header.
ZipReader(IODevice &input)
Constructs a ZipReader.
bool read_local_file_header(bool allow_data_descriptor=false)
Begins reading a file entry in the zip file.