Get Info about the current file
The file_info structure will contain some info about the current file.
The filename string will be copied into FileName.
The central-header version of the extra field information (if any) will be copied into extraField.
The comment string (if any) of the file will be copied in Comment.
typedef
struct
{
uLong version; /* version creator */
uLong version_needed; /* version needed to extract */
uLong flag; /* general purpose bit flag*/
uLong compression_method; /* compression method */
uLong dosDate; /* last mod file date in Dos fmt */
uLong crc; /* crc-32*/
uLong compressed_size; /* compressed size */
uLong uncompressed_size; /* uncompressed size */
uLong size_filename; /* filename length */
uLong size_file_extra; /* extra field length */
uLong size_file_comment; /* file comment length */
uLong disk_num_start; /* disk number start */
uLong internal_fa; /* internal file attributes */
uLong external_fa; /* external file attributes */
tm_xzip tmu_date; /* data/time structure */
} xunz_file_info;
typedef
struct
{
uInt tm_sec; /* seconds after the minute - [0,59] */
uInt tm_min; /* minutes after the hour - [0,59] */
uInt tm_hour; /* hours since midnight - [0,23] */
uInt tm_mday; /* day of the month - [1,31] */
uInt tm_mon; /* months since January - [0,11] */
uInt tm_year; /* years - [1980..2044] */
} tm_xzip;
file/in "unzip" filehandle from sunzOpen.vi |
MaxExtraFieldSize |
MaxCommentSize |
Result |
file_info typedef struct { uLong version; /* version creator */ uLong version_needed; /* version needed to extract */ uLong flag; /* general purpose bit flag*/ uLong compression_method; /* compression method */ uLong dosDate; /* last mod file date in Dos fmt */ uLong crc; /* crc-32*/ uLong compressed_size; /* compressed size */ uLong uncompressed_size; /* uncompressed size */ uLong size_filename; /* filename length */ uLong size_file_extra; /* extra field length */ uLong size_file_comment; /* file comment length */ uLong disk_num_start; /* disk number start */ uLong internal_fa; /* internal file attributes */ uLong external_fa; /* external file attributes */ tm_xzip tmu_date; /* data/time structure */ } xunz_file_info; typedef struct { uInt tm_sec; /* seconds after the minute - [0,59] */ uInt tm_min; /* minutes after the hour - [0,59] */ uInt tm_hour; /* hours since midnight - [0,23] */ uInt tm_mday; /* day of the month - [1,31] */ uInt tm_mon; /* months since January - [0,11] */ uInt tm_year; /* years - [1980..2044] */ } tm_xzip; |
version |
version copy |
flag |
compression_method |
dosDate |
crc |
compressed_size |
uncompressed_size |
size_filename |
size_file_extra |
size_file_comment |
disk_num_start |
internal_fa |
external_fa |
tmu_date typedef struct { uInt tm_sec; /* seconds after the minute - [0,59] */ uInt tm_min; /* minutes after the hour - [0,59] */ uInt tm_hour; /* hours since midnight - [0,23] */ uInt tm_mday; /* day of the month - [1,31] */ uInt tm_mon; /* months since January - [0,11] */ uInt tm_year; /* years - [1980..2044] */ } tm_xzip; |
tm_sec |
tm_min |
tm_hour |
tm_mday |
tm_mon |
tm_year |
FileName |
extraField |
Comment |
file/out "unzip" filehandle from sunzOpen.vi |