#include "bytestreamutils.h"
#include "idatastream.h"
#include <algorithm>
Go to the source code of this file.
Data Structures | |
class | zip_magic |
struct | zip_version |
struct | zip_dostime |
struct | zip_file_header |
struct | zip_file_trailer |
struct | zip_root_dirent |
struct | zip_disk_trailer |
Defines | |
#define | INCLUDED_PKZIP_H |
Functions | |
void | istream_read_zip_magic (InputStream &istream, zip_magic &magic) |
void | istream_read_zip_version (InputStream &istream, zip_version &version) |
void | istream_read_zip_dostime (InputStream &istream, zip_dostime &dostime) |
void | istream_read_zip_file_header (SeekableInputStream &istream, zip_file_header &file_header) |
void | istream_read_zip_file_trailer (InputStream &istream, zip_file_trailer &file_trailer) |
void | istream_read_zip_root_dirent (SeekableInputStream &istream, zip_root_dirent &root_dirent) |
void | istream_read_zip_disk_trailer (SeekableInputStream &istream, zip_disk_trailer &disk_trailer) |
SeekableStream::position_type | pkzip_find_disk_trailer (SeekableInputStream &istream) |
Variables | |
const zip_magic | zip_file_header_magic = { { 'P', 'K', 0x03, 0x04 } } |
const zip_magic | zip_file_trailer_magic = { { 'P', 'K', 0x07, 0x08 } } |
const zip_magic | zip_root_dirent_magic = { { 'P', 'K', 0x01, 0x02 } } |
const zip_magic | zip_disk_trailer_magic = { { 'P', 'K', 0x05, 0x06 } } |
const unsigned int | disk_trailer_length = 22 |
void istream_read_zip_disk_trailer | ( | SeekableInputStream & | istream, | |
zip_disk_trailer & | disk_trailer | |||
) | [inline] |
Definition at line 203 of file pkzip.h.
References istream_read_uint16_le(), istream_read_uint32_le(), istream_read_zip_magic(), zip_disk_trailer::z_comment, zip_disk_trailer::z_disk, zip_disk_trailer::z_entries, zip_disk_trailer::z_finaldisk, zip_disk_trailer::z_finalentries, zip_disk_trailer::z_magic, zip_disk_trailer::z_rootseek, and zip_disk_trailer::z_rootsize.
void istream_read_zip_dostime | ( | InputStream & | istream, | |
zip_dostime & | dostime | |||
) | [inline] |
Definition at line 67 of file pkzip.h.
References zip_dostime::date, istream_read_int16_le(), and zip_dostime::time.
Referenced by istream_read_zip_file_header(), and istream_read_zip_root_dirent().
void istream_read_zip_file_header | ( | SeekableInputStream & | istream, | |
zip_file_header & | file_header | |||
) | [inline] |
Definition at line 92 of file pkzip.h.
References istream_read_uint16_le(), istream_read_uint32_le(), istream_read_zip_dostime(), istream_read_zip_magic(), istream_read_zip_version(), zip_file_header::z_compr, zip_file_header::z_crc32, zip_file_header::z_csize, zip_file_header::z_dostime, zip_file_header::z_extract, zip_file_header::z_extras, zip_file_header::z_flags, zip_file_header::z_magic, zip_file_header::z_namlen, and zip_file_header::z_usize.
void istream_read_zip_file_trailer | ( | InputStream & | istream, | |
zip_file_trailer & | file_trailer | |||
) | [inline] |
Definition at line 123 of file pkzip.h.
References istream_read_uint32_le(), istream_read_zip_magic(), zip_file_trailer::z_crc32, zip_file_trailer::z_csize, zip_file_trailer::z_magic, and zip_file_trailer::z_usize.
void istream_read_zip_magic | ( | InputStream & | istream, | |
zip_magic & | magic | |||
) | [inline] |
Definition at line 44 of file pkzip.h.
References zip_magic::m_value.
Referenced by istream_read_zip_disk_trailer(), istream_read_zip_file_header(), istream_read_zip_file_trailer(), istream_read_zip_root_dirent(), and pkzip_find_disk_trailer().
void istream_read_zip_root_dirent | ( | SeekableInputStream & | istream, | |
zip_root_dirent & | root_dirent | |||
) | [inline] |
Definition at line 165 of file pkzip.h.
References istream_read_uint16_le(), istream_read_uint32_le(), istream_read_zip_dostime(), istream_read_zip_magic(), istream_read_zip_version(), zip_root_dirent::z_comment, zip_root_dirent::z_compr, zip_root_dirent::z_crc32, zip_root_dirent::z_csize, zip_root_dirent::z_diskstart, zip_root_dirent::z_dostime, zip_root_dirent::z_encoder, zip_root_dirent::z_extract, zip_root_dirent::z_extras, zip_root_dirent::z_filemode, zip_root_dirent::z_filetype, zip_root_dirent::z_flags, zip_root_dirent::z_magic, zip_root_dirent::z_namlen, zip_root_dirent::z_off, and zip_root_dirent::z_usize.
void istream_read_zip_version | ( | InputStream & | istream, | |
zip_version & | version | |||
) | [inline] |
Definition at line 55 of file pkzip.h.
References istream_read_byte(), zip_version::ostype, and zip_version::version.
Referenced by istream_read_zip_file_header(), and istream_read_zip_root_dirent().
SeekableStream::position_type pkzip_find_disk_trailer | ( | SeekableInputStream & | istream | ) | [inline] |
Definition at line 216 of file pkzip.h.
References disk_trailer_length, istream_read_zip_magic(), and zip_magic::m_value.
const unsigned int disk_trailer_length = 22 |
Definition at line 188 of file pkzip.h.
Referenced by pkzip_find_disk_trailer().
const zip_magic zip_disk_trailer_magic = { { 'P', 'K', 0x05, 0x06 } } |
const zip_magic zip_file_header_magic = { { 'P', 'K', 0x03, 0x04 } } |
const zip_magic zip_file_trailer_magic = { { 'P', 'K', 0x07, 0x08 } } |
const zip_magic zip_root_dirent_magic = { { 'P', 'K', 0x01, 0x02 } } |