Qt 4.8
Public Functions | Public Variables | List of all members
CentralFileHeader Struct Reference

Public Functions

LocalFileHeader toLocalHeader () const
 

Public Variables

uchar compressed_size [4]
 
uchar compression_method [2]
 
uchar crc_32 [4]
 
uchar disk_start [2]
 
uchar external_file_attributes [4]
 
uchar extra_field_length [2]
 
uchar file_comment_length [2]
 
uchar file_name_length [2]
 
uchar general_purpose_bits [2]
 
uchar internal_file_attributes [2]
 
uchar last_mod_file [4]
 
uchar offset_local_header [4]
 
uchar signature [4]
 
uchar uncompressed_size [4]
 
uchar version_made [2]
 
uchar version_needed [2]
 

Detailed Description

Definition at line 319 of file qzip.cpp.

Functions

◆ toLocalHeader()

LocalFileHeader CentralFileHeader::toLocalHeader ( ) const

Definition at line 463 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry().

464 {
465  LocalFileHeader h;
466  writeUInt(h.signature, 0x04034b50);
471  copyUInt(h.crc_32, crc_32);
476  return h;
477 }
uchar extra_field_length[2]
Definition: qzip.cpp:331
uchar general_purpose_bits[2]
Definition: qzip.cpp:302
uchar crc_32[4]
Definition: qzip.cpp:327
uchar file_name_length[2]
Definition: qzip.cpp:330
uchar version_needed[2]
Definition: qzip.cpp:323
uchar last_mod_file[4]
Definition: qzip.cpp:326
uchar compression_method[2]
Definition: qzip.cpp:325
uchar general_purpose_bits[2]
Definition: qzip.cpp:324
uchar uncompressed_size[4]
Definition: qzip.cpp:307
static void copyUShort(uchar *dest, const uchar *src)
Definition: qzip.cpp:127
uchar extra_field_length[2]
Definition: qzip.cpp:309
uchar compression_method[2]
Definition: qzip.cpp:303
uchar uncompressed_size[4]
Definition: qzip.cpp:329
uchar compressed_size[4]
Definition: qzip.cpp:306
uchar last_mod_file[4]
Definition: qzip.cpp:304
uchar signature[4]
Definition: qzip.cpp:300
uchar compressed_size[4]
Definition: qzip.cpp:328
uchar crc_32[4]
Definition: qzip.cpp:305
uchar version_needed[2]
Definition: qzip.cpp:301
uchar file_name_length[2]
Definition: qzip.cpp:308
static void copyUInt(uchar *dest, const uchar *src)
Definition: qzip.cpp:119
static void writeUInt(uchar *data, uint i)
Definition: qzip.cpp:105

Properties

◆ compressed_size

uchar CentralFileHeader::compressed_size[4]

Definition at line 328 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipReader::fileData().

◆ compression_method

uchar CentralFileHeader::compression_method[2]

Definition at line 325 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry().

◆ crc_32

uchar CentralFileHeader::crc_32[4]

Definition at line 327 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipPrivate::fillFileInfo().

◆ disk_start

uchar CentralFileHeader::disk_start[2]

Definition at line 333 of file qzip.cpp.

◆ external_file_attributes

uchar CentralFileHeader::external_file_attributes[4]

Definition at line 335 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipPrivate::fillFileInfo().

◆ extra_field_length

uchar CentralFileHeader::extra_field_length[2]

Definition at line 331 of file qzip.cpp.

Referenced by QZipReaderPrivate::scanFiles().

◆ file_comment_length

uchar CentralFileHeader::file_comment_length[2]

Definition at line 332 of file qzip.cpp.

Referenced by QZipReaderPrivate::scanFiles().

◆ file_name_length

uchar CentralFileHeader::file_name_length[2]

Definition at line 330 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipReaderPrivate::scanFiles().

◆ general_purpose_bits

uchar CentralFileHeader::general_purpose_bits[2]

Definition at line 324 of file qzip.cpp.

◆ internal_file_attributes

uchar CentralFileHeader::internal_file_attributes[2]

Definition at line 334 of file qzip.cpp.

◆ last_mod_file

uchar CentralFileHeader::last_mod_file[4]

Definition at line 326 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipPrivate::fillFileInfo().

◆ offset_local_header

uchar CentralFileHeader::offset_local_header[4]

Definition at line 336 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipReader::fileData().

◆ signature

uchar CentralFileHeader::signature[4]

Definition at line 321 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry(), and QZipReaderPrivate::scanFiles().

◆ uncompressed_size

uchar CentralFileHeader::uncompressed_size[4]

◆ version_made

uchar CentralFileHeader::version_made[2]

Definition at line 322 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry().

◆ version_needed

uchar CentralFileHeader::version_needed[2]

Definition at line 323 of file qzip.cpp.

Referenced by QZipWriterPrivate::addEntry().


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