zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
Public Attributes | List of all members
zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader Struct Reference

The header of a ZipCentralDirectoryEntry in a Zip archive. More...

Public Attributes

uint16_t m_compress_method
 
uint32_t m_compressed_size
 
uint32_t m_crc_32
 
uint16_t m_disk_num_start
 
uint32_t m_dostime
 
uint32_t m_extern_file_attr
 
uint16_t m_extra_field_len
 
uint16_t m_extract_version
 
uint16_t m_file_comment_len
 
uint16_t m_filename_len
 
uint16_t m_general_purpose_bitfield
 
uint16_t m_intern_file_attr
 
uint32_t m_relative_offset_location_header
 
uint32_t m_signature
 
uint32_t m_uncompressed_size
 
uint16_t m_writer_version
 

Detailed Description

This structure shows how the header of the ZipCentralDirectoryEntry is defined. Note that the file name, file comment, and extra field have a variable size which is defined in three 16 bit values before they appear.

The filename cannot be empty, however, the file comment and the extra field can (and usually are.)

Note
This structure is NOT used directly only for its sizeof() and documentation because that way zipios can work on little and big endians without the need to know the endianess of your computer.
Bug:
This structure is aligned on 4 bytes since it includes some uint32_t values and thus has a size of 48 bytes instead of 46.

Definition at line 102 of file zipcentraldirectoryentry.cpp.

Member Data Documentation

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_compress_method

Definition at line 108 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_compressed_size

Definition at line 111 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_crc_32

Definition at line 110 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_disk_num_start

Definition at line 116 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_dostime

Definition at line 109 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_extern_file_attr

Definition at line 118 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_extra_field_len

Definition at line 114 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_extract_version

Definition at line 106 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_file_comment_len

Definition at line 115 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_filename_len

Definition at line 113 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_general_purpose_bitfield

Definition at line 107 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_intern_file_attr

Definition at line 117 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_relative_offset_location_header

Definition at line 119 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_signature

Definition at line 104 of file zipcentraldirectoryentry.cpp.

uint32_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_uncompressed_size

Definition at line 112 of file zipcentraldirectoryentry.cpp.

uint16_t zipios::anonymous_namespace{zipcentraldirectoryentry.cpp}::ZipCentralDirectoryEntryHeader::m_writer_version

Definition at line 105 of file zipcentraldirectoryentry.cpp.


The documentation for this struct was generated from the following file: