pkzip.h File Reference

#include "bytestreamutils.h"
#include "idatastream.h"
#include <algorithm>
Include dependency graph for pkzip.h:

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

Define Documentation

#define INCLUDED_PKZIP_H

Definition at line 23 of file pkzip.h.


Function Documentation

void istream_read_zip_disk_trailer ( SeekableInputStream &  istream,
zip_disk_trailer disk_trailer 
) [inline]
void istream_read_zip_dostime ( InputStream &  istream,
zip_dostime dostime 
) [inline]
void istream_read_zip_file_header ( SeekableInputStream &  istream,
zip_file_header file_header 
) [inline]
void istream_read_zip_file_trailer ( InputStream &  istream,
zip_file_trailer file_trailer 
) [inline]
void istream_read_zip_magic ( InputStream &  istream,
zip_magic magic 
) [inline]
void istream_read_zip_root_dirent ( SeekableInputStream &  istream,
zip_root_dirent root_dirent 
) [inline]
void istream_read_zip_version ( InputStream &  istream,
zip_version version 
) [inline]
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.


Variable Documentation

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 } }

Definition at line 187 of file pkzip.h.

const zip_magic zip_file_header_magic = { { 'P', 'K', 0x03, 0x04 } }

Definition at line 73 of file pkzip.h.

const zip_magic zip_file_trailer_magic = { { 'P', 'K', 0x07, 0x08 } }

Definition at line 113 of file pkzip.h.

const zip_magic zip_root_dirent_magic = { { 'P', 'K', 0x01, 0x02 } }

Definition at line 140 of file pkzip.h.


Generated by  doxygen 1.6.2